Home
last modified time | relevance | path

Searched refs:policies_json (Results 1 – 15 of 15) sorted by relevance

/external/autotest/client/cros/
Denterprise_policy_base.py207 def setup_case(self, policy_name, policy_value, policies_json): argument
230 self.setup_policy(self._make_json_blob(policies_json))
304 def _make_json_blob(self, policies_json): argument
311 policies_json = self._move_modeless_to_mandatory(policies_json)
312 policies_json = self._remove_null_policies(policies_json)
321 }""" % (json.dumps(policies_json), self.USERNAME)
324 def _move_modeless_to_mandatory(self, policies_json): argument
341 if 'mandatory' in policies_json:
342 mandatory_policies = policies_json['mandatory']
343 del policies_json['mandatory']
[all …]
/external/autotest/client/site_tests/policy_RestoreOnStartupURLs/
Dpolicy_RestoreOnStartupURLs.py40 def _test_startup_urls(self, policy_value, policies_json): argument
51 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
53 policy_value, policies_json)
88 policies_json = None
92 policies_json = {'RestoreOnStartup': None}
95 policies_json = {'RestoreOnStartup': 4}
97 policies_json.update(policy_json)
100 self._test_startup_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_CookiesBlockedForUrls/
Dpolicy_CookiesBlockedForUrls.py72 def _test_CookiesBlockedForUrls(self, policy_value, policies_json): argument
88 policy_value, policies_json)
89 self.setup_case(POLICY_NAME, policy_value, policies_json)
113 policies_json = None
119 policies_json = None
125 policies_json = SUPPORTING_POLICIES.copy()
126 policies_json.update(policy_json)
129 self._test_CookiesBlockedForUrls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_CookiesAllowedForUrls/
Dpolicy_CookiesAllowedForUrls.py73 def _test_CookiesAllowedForUrls(self, policy_value, policies_json): argument
88 policy_value, policies_json)
89 self.setup_case(POLICY_NAME, policy_value, policies_json)
113 policies_json = None
119 policies_json = None
125 policies_json = SUPPORTING_POLICIES.copy()
126 policies_json.update(policy_json)
129 self._test_CookiesAllowedForUrls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_URLBlacklist/
Dpolicy_URLBlacklist.py123 def _test_URLBlacklist(self, policy_value, policies_json): argument
138 self.setup_case(POLICY_NAME, policy_value, policies_json)
140 policy_value, policies_json)
165 policies_json = None
175 policies_json = None
181 policies_json = {'URLBlacklist': None}
184 policies_json = {'URLBlacklist': SINGLE_BLACKLISTED_FILE_DATA}
188 policies_json = {
193 self._test_URLBlacklist(policy_value, policies_json)
/external/autotest/client/site_tests/policy_EditBookmarksEnabled/
Dpolicy_EditBookmarksEnabled.py56 def _test_edit_bookmarks_enabled(self, policy_value, policies_json): argument
74 policy_value, policies_json)
75 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
120 policies_json = None
126 policies_json = self.SUPPORTING_POLICIES.copy()
127 policies_json.update(policy_json)
130 self._test_edit_bookmarks_enabled(policy_value, policies_json)
/external/autotest/client/site_tests/policy_JavaScriptBlockedForUrls/
Dpolicy_JavaScriptBlockedForUrls.py91 def _test_javascript_blocked_for_urls(self, policy_value, policies_json): argument
103 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
105 policy_value, policies_json)
141 policies_json = None
150 policies_json = self.SUPPORTING_POLICIES.copy()
151 policies_json.update(policy_json)
154 self._test_javascript_blocked_for_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_PopupsBlockedForUrls/
Dpolicy_PopupsBlockedForUrls.py74 def _test_popups_blocked_for_urls(self, policy_value, policies_json): argument
86 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
88 policy_value, policies_json)
120 policies_json = None
126 policies_json = self.SUPPORTING_POLICIES.copy()
127 policies_json.update(policy_json)
130 self._test_popups_blocked_for_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_PopupsAllowedForUrls/
Dpolicy_PopupsAllowedForUrls.py74 def _test_popups_allowed_for_urls(self, policy_value, policies_json): argument
86 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
88 policy_value, policies_json)
120 policies_json = None
126 policies_json = self.SUPPORTING_POLICIES.copy()
127 policies_json.update(policy_json)
130 self._test_popups_allowed_for_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_JavaScriptAllowedForUrls/
Dpolicy_JavaScriptAllowedForUrls.py89 def _test_javascript_allowed_for_urls(self, policy_value, policies_json): argument
101 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
103 policy_value, policies_json)
140 policies_json = None
149 policies_json = self.SUPPORTING_POLICIES.copy()
150 policies_json.update(policy_json)
153 self._test_javascript_allowed_for_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_URLWhitelist/
Dpolicy_URLWhitelist.py128 def _test_URLWhitelist(self, policy_value, policies_json): argument
145 policy_value, policies_json)
146 self.setup_case(POLICY_NAME, policy_value, policies_json)
175 policies_json = None
181 policies_json = None
185 policies_json = SUPPORTING_POLICIES.copy()
190 policies_json.update({'URLWhitelist': self.TEST_CASES[case]})
193 self._test_URLWhitelist(policy_value, policies_json)
/external/autotest/client/site_tests/policy_ManagedBookmarks/
Dpolicy_ManagedBookmarks.py62 def _test_managed_bookmarks(self, policy_value, policies_json): argument
73 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
75 'policies_json=%s)', policy_value, policies_json)
165 policies_json = None
169 policies_json = self.SUPPORTING_POLICIES.copy()
176 policies_json.update(policy_json)
179 self._test_managed_bookmarks(policy_value, policies_json)
/external/autotest/client/site_tests/policy_ImagesBlockedForUrls/
Dpolicy_ImagesBlockedForUrls.py82 def _test_images_blocked_for_urls(self, policy_value, policies_json): argument
95 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
97 policy_value, policies_json)
137 policies_json = None
141 policies_json = self.SUPPORTING_POLICIES.copy()
154 policies_json.update(policy_json)
157 self._test_images_blocked_for_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_ImagesAllowedForUrls/
Dpolicy_ImagesAllowedForUrls.py81 def _test_images_allowed_for_urls(self, policy_value, policies_json): argument
94 self.setup_case(self.POLICY_NAME, policy_value, policies_json)
96 policy_value, policies_json)
136 policies_json = None
140 policies_json = self.SUPPORTING_POLICIES.copy()
153 policies_json.update(policy_json)
156 self._test_images_allowed_for_urls(policy_value, policies_json)
/external/autotest/client/site_tests/policy_ProxySettings/
Dpolicy_ProxySettings.py148 def _test_proxy_configuration(self, policy_value, policies_json): argument
155 policy_value, policies_json)
156 self.setup_case(POLICY_NAME, policy_value, policies_json)
194 policies_json = None
199 policies_json = {POLICY_NAME: self.TEST_CASES[case]}
201 self._test_proxy_configuration(policy_value, policies_json)