GLOB sdist-make: /Users/steveguan/code/OpenStack/oslo.policy/setup.py py37 inst-nodeps: /Users/steveguan/code/OpenStack/oslo.policy/.tox/.tmp/package/1/oslo.policy-2.4.2.dev1.zip py37 installed: alabaster==0.7.12,appdirs==1.4.3,Babel==2.7.0,bandit==1.5.1,certifi==2019.11.28,cffi==1.13.2,chardet==3.0.4,cliff==2.16.0,cmd2==0.8.9,coverage==4.5.4,cryptography==2.8,debtcollector==1.22.0,decorator==4.4.1,docutils==0.15.2,dogpile.cache==0.9.0,dulwich==0.19.14,extras==1.0.0,fixtures==3.0.0,flake8==2.6.2,future==0.18.2,gitdb2==2.0.6,GitPython==3.0.5,hacking==1.1.0,idna==2.8,imagesize==1.1.0,iso8601==0.1.12,Jinja2==2.10.3,jmespath==0.9.4,jsonpatch==1.24,jsonpointer==2.0,keystoneauth1==3.18.0,linecache2==1.0.0,MarkupSafe==1.1.1,mccabe==0.5.3,mock==3.0.5,mox3==0.28.0,msgpack==0.6.2,munch==2.5.0,netaddr==0.7.19,netifaces==0.10.9,openstackdocstheme==1.31.2,openstacksdk==0.39.0,os-client-config==1.33.0,os-service-types==1.7.0,oslo.config==6.12.0,oslo.context==2.23.0,oslo.i18n==3.25.0,oslo.policy==2.4.2.dev1,oslo.serialization==2.29.2,oslo.utils==3.42.1,oslotest==3.8.1,packaging==19.2,pbr==5.4.4,prettytable==0.7.2,pycodestyle==2.0.0,pycparser==2.19,pyflakes==1.2.3,Pygments==2.5.2,pyparsing==2.4.5,pyperclip==1.7.0,python-mimeparse==1.6.0,python-subunit==1.3.0,pytz==2019.3,PyYAML==5.2,reno==2.11.3,requests==2.22.0,requests-mock==1.6.0,requestsexceptions==1.4.0,rfc3986==1.3.2,six==1.13.0,smmap2==2.0.5,snowballstemmer==2.0.0,Sphinx==2.2.2,sphinxcontrib-apidoc==0.3.0,sphinxcontrib-applehelp==1.0.1,sphinxcontrib-devhelp==1.0.1,sphinxcontrib-htmlhelp==1.0.2,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.2,sphinxcontrib-serializinghtml==1.1.3,stestr==2.5.1,stevedore==1.31.0,testtools==2.3.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.25.7,voluptuous==0.11.7,wcwidth==0.1.7,wrapt==1.11.2 py37 run-test-pre: PYTHONHASHSEED='727722955' py37 run-test: commands[0] | stestr run --slowest {0} oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check_decorator [0.001768s] ... ok {0} oslo_policy.tests.test_checks.FalseCheckTestCase.test_call [0.000564s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_mismatch [0.004352s] ... ok {1} oslo_policy.tests.test_checks.AndCheckTestCase.test_call_all_false [0.002167s] ... ok {1} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_mismatch [0.001790s] ... ok {1} oslo_policy.tests.test_checks.OrCheckTestCase.test_add_check [0.000673s] ... ok {1} oslo_policy.tests.test_checks.OrCheckTestCase.test_call_first_true [0.000762s] ... ok {1} oslo_policy.tests.test_checks.OrCheckTestCase.test_pop_check [0.000589s] ... ok {0} oslo_policy.tests.test_checks.GenericCheckTestCase.test_deep_credentials_dictionary_lookup [0.002038s] ... ok {1} oslo_policy.tests.test_checks.RoleCheckTestCase.test_format_value [0.001964s] ... ok {0} oslo_policy.tests.test_checks.NotCheckTestCase.test_call_false [0.000896s] ... ok {1} oslo_policy.tests.test_checks.RoleCheckTestCase.test_no_roles_case [0.001597s] ... ok {1} oslo_policy.tests.test_checks.TrueCheckTestCase.test_str [0.000528s] ... ok {0} oslo_policy.tests.test_checks.RoleCheckTestCase.test_accept [0.001403s] ... ok {0} oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_true [0.001401s] ... ok {0} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_true [0.001598s] ... ok {1} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_objects_in_target [0.006735s] ... ok {0} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_empty_line_formatting [0.003262s] ... ok {1} oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_generate_loadable_json [0.002557s] ... ok {0} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_literal_block_formatting [0.004559s] ... ok {0} oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_raises_error [0.000267s] ... ok {1} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_are_aliased_to_new_names [0.002031s] ... ok {0} oslo_policy.tests.test_generator.GetEnforcerTestCase.test_get_enforcer_missing [0.002318s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:670: UserWarning: Policy "old_rule":"role:bang" was deprecated in N in favor of "new_rule":"role:bang". Reason: "old_rule" is a bad name. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {3} oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_takes_current_rule [0.001378s] ... ok {3} oslo_policy.tests.test_checks.CheckTestCase.test_str [0.001057s] ... ok {1} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_generate_loadable_yaml [0.003790s] ... ok {0} oslo_policy.tests.test_parser.ParseCheckTestCase.test_check [0.000623s] ... ok {0} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_oneele [0.000608s] ... ok {1} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_paragraph_formatting [0.002259s] ... ok WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. {3} oslo_policy.tests.test_checks.GenericCheckTestCase.test_accept [0.003327s] ... ok {1} oslo_policy.tests.test_parser.ParseCheckTestCase.test_false [0.000524s] ... ok {4} oslo_policy.tests.test_checks.AndCheckTestCase.test_call_second_true [0.002107s] ... ok {4} oslo_policy.tests.test_checks.AndCheckTestCase.test_str [0.000682s] ... ok {3} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_nested_lists_accepted [0.001965s] ... ok {4} oslo_policy.tests.test_checks.FalseCheckTestCase.test_str [0.000845s] ... ok {4} oslo_policy.tests.test_checks.GenericCheckTestCase.test_entry_not_in_list_rejected [0.002014s] ... ok {3} oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_does_not_take_current_rule [0.000673s] ... ok {1} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_empty [0.000478s] ... ok {1} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_bare [0.000502s] ... ok {3} oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_missing [0.001487s] ... ok {0} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_multi [0.000524s] ... ok {4} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entries_one_matches [0.001695s] ... ok {4} oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_does_not_take_current_rule [0.000708s] ... ok {1} oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_list [0.000801s] ... ok WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_or_D [0.000858s] ... ok {4} oslo_policy.tests.test_checks.RoleCheckTestCase.test_reject [0.001590s] ... ok {4} oslo_policy.tests.test_checks.TrueCheckTestCase.test_call [0.000513s] ... ok {1} oslo_policy.tests.test_parser.ParseRuleTestCase.test_parse_rule_string [0.001126s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_1 [0.001576s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_1 [0.001033s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_4 [0.001941s] ... ok ERROR [oslo_policy._parser] No handler for matches of kind no {2} oslo_policy.tests.test_checks.CheckRegisterTestCase.test_register_check [0.001694s] ... ok {1} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_shifts [0.001188s] ... ok {0} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C [0.001096s] ... ok ERROR [oslo_policy._parser] Failed to understand rule test rule Traceback (most recent call last): File "/Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/_parser.py", line 340, in _parse_text_rule return state.result File "/Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/_parser.py", line 141, in result raise ValueError('Could not parse rule') ValueError: Could not parse rule {2} oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_cred [0.002232s] ... ok {2} oslo_policy.tests.test_checks.NotCheckTestCase.test_str [0.000812s] ... ok {2} oslo_policy.tests.test_checks.OrCheckTestCase.test_rule_takes_current_rule [0.000833s] ... ok {1} oslo_policy.tests.test_parser.ParseTokenizeTestCase.test_tokenize [0.000582s] ... ok {3} oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_objects_in_target [0.008214s] ... ok {5} oslo_policy.tests.test_checks.CheckTestCase.test_init [0.001879s] ... ok {2} oslo_policy.tests.test_external.HttpCheckTestCase.test_reject [0.007303s] ... ok {1} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_no_rules [0.002461s] ... ok {4} oslo_policy.tests.test_external.HttpCheckTestCase.test_accept [0.009667s] ... ok {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_for_removal_must_include_deprecated_since [0.001943s] ... ok {5} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_list_accepted [0.002064s] ... ok {5} oslo_policy.tests.test_checks.NotCheckTestCase.test_rule_takes_current_rule [0.000680s] ... ok {5} oslo_policy.tests.test_checks.OrCheckTestCase.test_call_all_false [0.000698s] ... ok {5} oslo_policy.tests.test_checks.OrCheckTestCase.test_str [0.000592s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:706: UserWarning: Policy "foo:create_bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {5} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_and_client_certs [0.010730s] ... ok {3} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_json [0.004172s] ... ok {0} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_deprecated_policy_with_new_rule [0.002831s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_name [0.002515s] ... ok {5} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_reject [0.003478s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:706: UserWarning: Policy "foo:create_bar":"" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: because of reasons. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {2} oslo_policy.tests.test_generator.GeneratePolicyTestCase.test_merged_rules [0.009867s] ... ok ERROR [oslo_policy._parser] Failed to understand rule foobar Traceback (most recent call last): File "/Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/_parser.py", line 212, in _parse_check kind, match = rule.split(':', 1) ValueError: not enough values to unpack (expected 2, got 1) {4} oslo_policy.tests.test_external.HttpCheckTestCase.test_http_with_strings_in_target [0.004129s] ... ok {2} oslo_policy.tests.test_generator.GeneratorRaiseErrorTestCase.test_generator_call_with_no_arguments_raises_error [0.001047s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_for_removal_suppress_does_not_log_warning [0.002275s] ... ok {0} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule_raises [0.002719s] ... ok {5} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_deprecated_policies_with_same_name [0.003425s] ... ok {1} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_reason [0.001846s] ... ok {3} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_with_strings_in_target [0.004851s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_clear [0.003513s] ... ok {1} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules [0.002164s] ... ok {4} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept [0.006002s] ... ok {3} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_https_false [0.002710s] ... ok {5} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_invalid_formatting [0.003657s] ... ok {2} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_json_stdout [0.005976s] ... ok {1} oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_rules [0.001583s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:706: UserWarning: Policy "foo:create_bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"". Reason: because of reasons. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {5} oslo_policy.tests.test_parser.ParseCheckTestCase.test_check_default [0.000737s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_default_rule_name [0.002581s] ... ok {5} oslo_policy.tests.test_parser.ParseCheckTestCase.test_no_handler [0.000756s] ... ok {3} oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content_stdout [0.002044s] ... ok {5} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_oneele [0.000692s] ... ok {2} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_oneele_zeroele [0.000581s] ... ok WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies ['foo', 'bar'] are part of a cyclical reference. {2} oslo_policy.tests.test_parser.ParseStateTestCase.test_result_unreduced [0.000588s] ... ok {4} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_true [0.002436s] ... ok {0} oslo_policy.tests.test_policy.EnforcerTest.test_rule_with_check [0.002003s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C [0.000623s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_context_objects [0.002113s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_3 [0.000647s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_consolidates_context_attributes_with_creds [0.001738s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_3 [0.000625s] ... ok {3} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content_stdout [0.002422s] ... ok {4} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_expected_content [0.002553s] ... ok {5} oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_reducer [0.000662s] ... ok {0} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_type_strings_fails [0.001618s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_and_D [0.000713s] ... ok {5} oslo_policy.tests.test_parser.ParseStateTestCase.test_make_not_expr [0.000708s] ... ok {5} oslo_policy.tests.test_parser.ParseStateTestCase.test_make_or_expr [0.000630s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_load_json [0.000848s] ... ok WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. WARNING [oslo_policy.policy] Policies ['foo'] reference a rule that is not defined. {5} oslo_policy.tests.test_parser.ParseStateTestCase.test_wrap_check [0.000707s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C_or_D [0.001181s] ... ok {3} oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_and_expr [0.000796s] ... ok {0} oslo_policy.tests.test_policy.RulesTestCase.test_with_default [0.000664s] ... ok {5} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_or_D [0.001046s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_raises_invalid_scope_with_domain_scope_type [0.002393s] ... ok {3} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_multi [0.001163s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C_and_D [0.000687s] ... ok {5} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_2 [0.000731s] ... ok {2} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_fail [0.001932s] ... ok {5} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_6 [0.000699s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_2 [0.000763s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_rejects_non_context_objects [0.002198s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_5 [0.000736s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_1 [0.000667s] ... ok {4} oslo_policy.tests.test_generator.ListRedundantTestCase.test_matched_rules [0.005661s] ... ok {5} oslo_policy.tests.test_policy.BaseCheckTypesTestCase.test_base_check_types_are_public [0.001783s] ... ok {6} oslo_policy.tests.test_checks.AndCheckTestCase.test_call_first_true [0.008306s] ... ok {2} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_default [0.002379s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_not_2 [0.000690s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_rule [0.001921s] ... ok {3} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_and_D [0.000732s] ... ok {2} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_policy_must_include_deprecated_since [0.001893s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_get_policy_path_raises_exc [0.002056s] ... ok {4} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_yaml_stdout [0.003912s] ... ok {5} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_check_string [0.003972s] ... ok {2} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_multiple_operations [0.001728s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_an_empty_policy_check_string [0.003511s] ... ok {4} oslo_policy.tests.test_parser.ParseCheckTestCase.test_bad_rule [0.001007s] ... ok {6} oslo_policy.tests.test_checks.AndCheckTestCase.test_rule_does_not_take_current_rule [0.004303s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:670: UserWarning: Policy "foo:bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {4} oslo_policy.tests.test_parser.ParseListRuleTestCase.test_multi_multi [0.000609s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:706: UserWarning: Policy "foo:bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {2} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list_of_dicts [0.001903s] ... ok {1} oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories_opts_registered [0.003417s] ... ok {4} oslo_policy.tests.test_parser.ParseStateMetaTestCase.test_parse_state_meta [0.000593s] ... ok {3} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_be_list [0.001939s] ... ok {5} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_logs_warning_when_overridden [0.002994s] ... ok {4} oslo_policy.tests.test_parser.ParseStateTestCase.test_init [0.000687s] ... ok {1} oslo_policy.tests.test_policy.RegisterCheckTestCase.test_register_check [0.001536s] ... ok {4} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_short [0.000875s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_clear_opts_registered [0.001998s] ... ok {4} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_and_C [0.000579s] ... ok {1} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_obvious [0.001468s] ... ok {4} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_or_C_or_D [0.000661s] ... ok {3} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_true [0.002690s] ... ok {4} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_empty [0.000602s] ... ok {5} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_replace_with_empty_policy_check_string [0.003148s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_policy_values_from_context [0.002253s] ... ok {1} oslo_policy.tests.test_policy.RulesTestCase.test_load_json_invalid_exc [0.002844s] ... ok {1} oslo_policy.tests.test_policy.RulesTestCase.test_retrieval [0.000605s] ... ok {3} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_cyclical_rules_raises [0.003071s] ... ok {4} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_explicit [0.002645s] ... ok {5} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_deprecated_policy_with_new_name [0.003306s] ... ok {1} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_minimal [0.000680s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_raises_invalid_scope_with_system_scope_type [0.003262s] ... ok {4} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_raise_custom_exception [0.002018s] ... ok {3} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_no_violations [0.002282s] ... ok {5} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_method [0.001669s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_understands_domain_scope [0.002550s] ... ok {6} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_literal_accept [0.011913s] ... ok {5} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_not_empty_list [0.001798s] ... ok {4} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_with_rule [0.001932s] ... ok {3} oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_load_directory [0.003275s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_understands_project_scope [0.003175s] ... ok {7} oslo_policy.tests.test_checks.AndCheckTestCase.test_add_check [0.001855s] ... ok {7} oslo_policy.tests.test_checks.AndCheckTestCase.test_init [0.000486s] ... ok {6} oslo_policy.tests.test_checks.GenericCheckTestCase.test_cred_mismatch [0.001589s] ... ok {4} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_check_str_suppress_does_not_log_warning [0.002785s] ... ok {5} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_undefined_rule [0.002848s] ... ok {6} oslo_policy.tests.test_checks.GenericCheckTestCase.test_single_entry_in_list_accepted [0.001401s] ... ok {7} oslo_policy.tests.test_checks.GenericCheckTestCase.test_constant_string_accept [0.001652s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_accepts_subclassed_context_objects [0.002797s] ... ok {6} oslo_policy.tests.test_checks.OrCheckTestCase.test_call_second_true [0.000628s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_understands_system_scope [0.002625s] ... ok {7} oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_missing_role_does_not_matches [0.001524s] ... ok {4} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_name_suppress_does_not_log_warning [0.003123s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_call_map_context_attributes [0.002623s] ... ok {7} oslo_policy.tests.test_checks.GenericCheckTestCase.test_generic_role_check_matches [0.001416s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_update_rules [0.002264s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload [0.005130s] ... ok {7} oslo_policy.tests.test_checks.GenericCheckTestCase.test_missing_credentials_dictionary_lookup [0.001533s] ... ok {4} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecated_rule_requires_deprecated_rule_object [0.002770s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_register_twice_raises [0.002809s] ... ok {7} oslo_policy.tests.test_checks.GenericCheckTestCase.test_multiple_entry_in_nested_list_accepted [0.001416s] ... ok {6} oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_json [0.006040s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_overwrite_rules [0.002665s] ... ok {7} oslo_policy.tests.test_checks.GenericCheckTestCase.test_no_key_match_in_target [0.001404s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_policy_file [0.004550s] ... ok {7} oslo_policy.tests.test_checks.NotCheckTestCase.test_call_true [0.000630s] ... ok {7} oslo_policy.tests.test_checks.NotCheckTestCase.test_init [0.000537s] ... ok {4} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_deprecated_policy_with_old_name [0.004373s] ... ok {7} oslo_policy.tests.test_checks.OrCheckTestCase.test_init [0.000510s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_with_default_policy_file [0.003382s] ... ok {6} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify [0.004129s] ... ok {7} oslo_policy.tests.test_checks.RuleCheckTestCase.test_rule_false [0.001457s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_opts_registered [0.004270s] ... ok {4} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_contain_operations [0.002059s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory_opts_registered [0.004210s] ... ok {6} oslo_policy.tests.test_fixtures.FixtureTestCase.test_enforce_http_false [0.001660s] ... ok {4} oslo_policy.tests.test_policy.EnforcerNoPolicyFileTest.test_opts_registered [0.001822s] ... ok {6} oslo_policy.tests.test_generator.GenerateSampleYAMLTestCase.test_policies_deprecated_for_removal [0.002019s] ... ok {2} oslo_policy.tests.test_policy.EnforcerTest.test_set_rules_type [0.002627s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same_but_overwrite_false [0.005290s] ... ok {4} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_false [0.003543s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice [0.006588s] ... ok {2} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_multiple_scope_types [0.002750s] ... ok {7} oslo_policy.tests.test_external.HttpCheckTestCase.test_accept_with_rule_in_argument [0.007190s] ... ok {6} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_yaml_file [0.003898s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_file_opts_registered [0.002678s] ... ok {6} oslo_policy.tests.test_opts.OptsTestCase.test_set_defaults_policy_file [0.001986s] ... ok {2} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_create_opt_with_scope_types [0.003093s] ... ok {7} oslo_policy.tests.test_external.HttpCheckTestCase.test_reject_with_rule_in_argument [0.002944s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated [0.004806s] ... ok {6} oslo_policy.tests.test_parser.ParseStateTestCase.test_extend_or_expr [0.001036s] ... ok {4} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite [0.005184s] ... ok /Users/steveguan/code/OpenStack/oslo.policy/oslo_policy/policy.py:670: UserWarning: Policy "foo:bar":"role:fizz" was deprecated in N in favor of "foo:create_bar":"role:bang". Reason: "role:bang" is a better default. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually. warnings.warn(deprecated_msg) {6} oslo_policy.tests.test_parser.ParseStateTestCase.test_make_and_expr [0.000577s] ... ok {2} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_class [0.002064s] ... ok {6} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_none [0.000727s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_multiple_directories [0.003962s] ... ok {2} oslo_policy.tests.test_policy.RulesTestCase.test_init_basic [0.000917s] ... ok {7} oslo_policy.tests.test_external.HttpsCheckTestCase.test_https_accept_with_verify_cert [0.003260s] ... ok {6} oslo_policy.tests.test_parser.ParseStateTestCase.test_shift [0.001018s] ... ok {4} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_set_rules [0.002553s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_opts_registered [0.003288s] ... ok {6} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_and_D [0.000674s] ... ok {2} oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml_invalid_exc [0.001181s] ... ok {6} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_or_B_and_C [0.000649s] ... ok {7} oslo_policy.tests.test_generator.GenerateSampleJSONTestCase.test_expected_content [0.002107s] ... ok {3} oslo_policy.tests.test_policy.EnforcerTest.test_load_policy_dirs_with_non_directory [0.002693s] ... ok {4} oslo_policy.tests.test_policy.EnforcerTest.test_load_file [0.002239s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_changed [0.003487s] ... ok WARNING [oslo_policy.policy] Policies ['foo', 'bar', 'baz'] are part of a cyclical reference. WARNING [oslo_policy.policy] Policies ['foo', 'bar', 'baz'] are part of a cyclical reference. {3} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_ensure_scope_types_are_unique [0.001916s] ... ok {7} oslo_policy.tests.test_generator.GetEnforcerTestCase.test_get_enforcer [0.002128s] ... ok {2} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters [0.003568s] ... ok {6} oslo_policy.tests.test_policy.CheckFunctionTestCase.test_check_rule_not_exist_not_empty_policy_file [0.002643s] ... ok {4} oslo_policy.tests.test_policy.EnforcerTest.test_load_non_existed_directory [0.002894s] ... ok {3} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_rule_is_parsed [0.002110s] ... ok {6} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_deprecate_a_policy_for_removal_does_not_log_warning [0.002643s] ... ok {3} oslo_policy.tests.test_policy.RulesTestCase.test_from_dict [0.000659s] ... ok {5} oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_force [0.003039s] ... ok {7} oslo_policy.tests.test_generator.UpgradePolicyTestCase.test_upgrade_policy_json_file [0.003219s] ... ok {4} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equal_subclass [0.001772s] ... ok {3} oslo_policy.tests.test_policy.RulesTestCase.test_str [0.000641s] ... ok {2} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_with_custom_target [0.003769s] ... ok {7} oslo_policy.tests.test_parser.ParseCheckTestCase.test_true [0.000542s] ... ok {5} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_subclass [0.001707s] ... ok {4} oslo_policy.tests.test_policy.RulesTestCase.test_load_json_deprecated [0.001432s] ... ok {6} oslo_policy.tests.test_policy.DocumentedRuleDefaultDeprecationTestCase.test_override_both_new_and_old_policy [0.003161s] ... ok {3} oslo_policy.tests.test_shell.CheckerTestCase.test_flatten_from_file [0.002376s] ... ok {5} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_str [0.001513s] ... ok {2} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_with_owner [0.003063s] ... ok {5} oslo_policy.tests.test_policy.RulesTestCase.test_missing_default [0.000605s] ... ok {6} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_description_not_empty [0.001613s] ... ok {4} oslo_policy.tests.test_shell.CheckerTestCase.test_all_nonadmin [0.002692s] ... ok {7} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_one [0.003920s] ... ok {2} oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file [0.001294s] ... ok {4} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_scope_types [0.000764s] ... ok {5} oslo_policy.tests.test_shell.CheckerTestCase.test_flatten_from_dict [0.002195s] ... ok {6} oslo_policy.tests.test_policy.EnforcerCheckRulesTest.test_complex_cyclical_rules_false [0.002628s] ... ok {5} oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_multiple_config_files [0.001605s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_not_registered [0.002321s] ... ok {7} oslo_policy.tests.test_parser.ParseStateTestCase.test_reduce_two [0.006092s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_authorize_opt_registered [0.002489s] ... ok {7} oslo_policy.tests.test_parser.ParseStateTestCase.test_result [0.001021s] ... ok {7} oslo_policy.tests.test_parser.ParseStateTestCase.test_result_empty [0.000880s] ... ok {7} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_7 [0.001641s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite_opts_registered [0.003583s] ... ok {7} oslo_policy.tests.test_parser.ParseTextRuleTestCase.test_A_and_B_or_C_with_group_and_not_8 [0.000905s] ... ok {7} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_contain_method_and_path_only [0.001696s] ... ok {7} oslo_policy.tests.test_policy.DocumentedRuleDefaultTestCase.test_operation_must_have_path [0.001530s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_keep_use_conf_flag_after_reload_opts_registered [0.004549s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_raises_invalid_scope_with_project_scope_type [0.002756s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_with_overwrite_opts_registered [0.003367s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_load_dir_caching_with_files_same_overwrite_false_opts_reg [0.002970s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_enforcer_force_reload_without_overwrite [0.003122s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory [0.003082s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_updated_opts_registered [0.003663s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_caching_with_files_same [0.002954s] ... ok {6} oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice_clear [0.002951s] ... ok {6} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_equality_less_obvious [0.001617s] ... ok {6} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_name [0.001541s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_load_directory_twice_force [0.004017s] ... ok {6} oslo_policy.tests.test_policy.RulesTestCase.test_init [0.000552s] ... ok {6} oslo_policy.tests.test_policy.RulesTestCase.test_load_empty_data [0.000610s] ... ok {6} oslo_policy.tests.test_policy.RulesTestCase.test_no_default [0.000566s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_load_rules_twice [0.002566s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_map_context_attributes_populated_system [0.001902s] ... ok {6} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_with_scope [0.003582s] ... ok {6} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_description [0.000757s] ... ok {6} oslo_policy.tests.test_sphinxext.FormatPolicyTest.test_with_operations [0.000589s] ... ok {7} oslo_policy.tests.test_policy.EnforcerTest.test_non_reversible_check [0.002283s] ... ok {6} oslo_policy.tests.test_sphinxpolicygen.SingleSampleGenerationTest.test_sample_gen_with_single_config_file_no_base [0.001340s] ... ok {7} oslo_policy.tests.test_policy.RuleDefaultTestCase.test_not_equal_check [0.001528s] ... ok {7} oslo_policy.tests.test_policy.RulesTestCase.test_load_yaml [0.001420s] ... ok {7} oslo_policy.tests.test_policy.RulesTestCase.test_str_true [0.000590s] ... ok {7} oslo_policy.tests.test_shell.CheckerTestCase.test_pass_rule_parameters_sorted [0.003215s] ... ok {7} oslo_policy.tests.test_sphinxext.IndentTest.test_indent [0.000667s] ... ok