You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/06/28 17:46:00 UTC

[jira] [Commented] (DISPATCH-1046) system_tests_policy fail in python3 environment

    [ https://issues.apache.org/jira/browse/DISPATCH-1046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16526600#comment-16526600 ] 

ASF subversion and git services commented on DISPATCH-1046:
-----------------------------------------------------------

Commit 69c61341344ccf737023e4a473f0f1e62ac75b2b in qpid-dispatch's branch refs/heads/master from Kenneth Giusti
[ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=69c6134 ]

DISPATCH-1046: fixes for running the policy code under python3

This closes #334


> 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
>            Assignee: Ken Giusti
>            Priority: Major
>             Fix For: 1.2.0
>
>         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:password@0.0.0.0: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:password@0.0.0.0: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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org