Ken Giusti created DISPATCH-1046:
------------------------------------
Summary: system_tests_policy fail in python3 environment
Key: DISPATCH-1046
URL: https://issues.apache.org/jira/browse/DISPATCH-1046
Project: Qpid Dispatch
Issue Type: Bug
Reporter: Ken Giusti
Attachments: Dockerfile-ctest
Can be reproduced by building and running the attached dockerfile
---------------------
Start 21: system_tests_policy
21: Test command: /usr/bin/python
"/main/qpid-dispatch-master/BUILD/tests/run.py" "-x" "unit2" "-v"
"system_tests_policy"
21: Test timeout computed to be: 1500
21: test_verify_maximum_connections
(system_tests_policy.AbsoluteConnectionCountLimit) ... ok
21: test_01_router_links_allowed (system_tests_policy.InterrouterLinksAllowed)
... ok
21: test_repeated_create_delete (system_tests_policy.LoadPolicyFromFolder) ...
ok
21: test_verify_policies_are_loaded (system_tests_policy.LoadPolicyFromFolder)
... ok
21: test_verify_policy_add_update_delete
(system_tests_policy.LoadPolicyFromFolder) ... ok
21: ERROR
21: test_link_name_parse_tree_patterns
(system_tests_policy.PolicyLinkNamePatternTest) ... ERROR
21: test_03_policy_warnings (system_tests_policy.PolicyWarnings) ... ok
21: test_verify_n_receivers (system_tests_policy.SenderReceiverLimits) ... ok
21: test_verify_n_senders (system_tests_policy.SenderReceiverLimits) ... ok
21: test_verify_vhost_maximum_connections
(system_tests_policy.VhostPolicyFromRouterConfig) ... ok
21: test_vhost_allowed_addresses
(system_tests_policy.VhostPolicyFromRouterConfig) ... ok
21: test_vhost_denied_addresses
(system_tests_policy.VhostPolicyFromRouterConfig) ... ok
21: test_01_id_vs_hostname (system_tests_policy.VhostPolicyNameField) ... ok
21:
21: ======================================================================
21: ERROR: setUpClass (system_tests_policy.PolicyHostamePatternTest)
21: ----------------------------------------------------------------------
21: Traceback (most recent call last):
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 175, in
wait_port
21: **retry_kwargs)
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 134, in
retry_exception
21: return function()
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 174, in
<lambda>
21: retry_exception(lambda: s.connect((host, port)), exception_test=check,
21: ConnectionRefusedError: [Errno 111] Connection refused
21:
21: During handling of the above exception, another exception occurred:
21:
21: Traceback (most recent call last):
21: File "/main/qpid-dispatch-master/tests/system_tests_policy.py", line 852,
in setUpClass
21: cls.router = cls.tester.qdrouterd('PolicyVhostNamePatternTest', config,
wait=True)
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 562, in
qdrouterd
21: return self.cleanup(Qdrouterd(*args, **kwargs))
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 352, in
__init__
21: self.wait_ready()
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 483, in
wait_ready
21: self.wait_ports(**retry_kwargs)
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 468, in
wait_ports
21: wait_ports(self.ports_family, **retry_kwargs)
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 185, in
wait_ports
21: wait_port(port=port, protocol_family=protocol_family, **retry_kwargs)
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 177, in
wait_port
21: raise Exception("wait_port timeout on host %s port %s: %s"%(host, port,
e))
21: Exception: wait_port timeout on host 127.0.0.1 port 21435: [Errno 111]
Connection refused
21:
21: ======================================================================
21: ERROR: test_link_name_parse_tree_patterns
(system_tests_policy.PolicyLinkNamePatternTest)
21: ----------------------------------------------------------------------
21: Traceback (most recent call last):
21: File "/main/qpid-dispatch-master/tests/system_tests_policy.py", line 642,
in run_qdmanage
21: p.teardown()
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 264, in
teardown
21: error("exit code %s, expected %s" % (status, self.expect))
21: File "/main/qpid-dispatch-master/tests/system_test.py", line 254, in error
21: self.outfile + '.cmd', f.read()));
21: RuntimeError: Process 352 error: exit code 1, expected 0
21: qdmanage create --type=vhost --name=DISPATCH-1993-3 --stdin --bus
amqp://u1:[email protected]:21436 --indent=-1 --timeout 60.0
21:
/main/qpid-dispatch-master/BUILD/tests/system_test.dir/system_tests_policy/PolicyLinkNamePatternTest/test_link_name_parse_tree_patterns/qdmanage-62.cmd
21: >>>>
21: <<<<
21:
21: During handling of the above exception, another exception occurred:
21:
21: Traceback (most recent call last):
21: File "/main/qpid-dispatch-master/tests/system_tests_policy.py", line 817,
in test_link_name_parse_tree_patterns
21: qdm_out = self.run_qdmanage('create --type=vhost --name=DISPATCH-1993-3
--stdin', input=self.disallowed_source_pattern1())
21: File "/main/qpid-dispatch-master/tests/system_tests_policy.py", line 644,
in run_qdmanage
21: raise Exception("%s\n%s" % (e, out))
21: Exception: Process 352 error: exit code 1, expected 0
21: qdmanage create --type=vhost --name=DISPATCH-1993-3 --stdin --bus
amqp://u1:[email protected]:21436 --indent=-1 --timeout 60.0
21:
/main/qpid-dispatch-master/BUILD/tests/system_test.dir/system_tests_policy/PolicyLinkNamePatternTest/test_link_name_parse_tree_patterns/qdmanage-62.cmd
21: >>>>
21: <<<<
21: InternalServerErrorStatus: PolicyError: Policy 'DISPATCH-1993-3' is
invalid: Policy vhost 'DISPATCH-1993-3' user group '$default' policy key
'sourcePattern' item 'abc-${user}.xyz' may contain match pattern '${user}' as a
prefix or a suffix only.
21:
21:
21: During handling of the above exception, another exception occurred:
21:
21: Traceback (most recent call last):
21: File "/main/qpid-dispatch-master/tests/system_tests_policy.py", line 820,
in test_link_name_parse_tree_patterns
21: self.assertTrue("InternalServerErrorStatus: PolicyError:" in e.message)
21: AttributeError: 'Exception' object has no attribute 'message'
21:
21: ----------------------------------------------------------------------
21: Ran 13 tests in 72.742s
21:
21: FAILED (errors=2)
21/47 Test #21: system_tests_policy ...............................***Failed
72.95 sec
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]