You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (Jira)" <ji...@apache.org> on 2020/04/28 09:37:00 UTC

[jira] [Created] (DISPATCH-1631) system_tests_bad_configuration fails if the router is not already installed

Robbie Gemmell created DISPATCH-1631:
----------------------------------------

             Summary: system_tests_bad_configuration fails if the router is not already installed
                 Key: DISPATCH-1631
                 URL: https://issues.apache.org/jira/browse/DISPATCH-1631
             Project: Qpid Dispatch
          Issue Type: Test
          Components: Tests
    Affects Versions: 1.12.0
            Reporter: Robbie Gemmell


_test_verify_reject_id_with_ctrl_char_ and _test_verify_reject_id_with_whitespace_ from _system_tests_bad_configuration_ fail unless the router is already installed, which is annoying given it is typical to test before installing.

If the tests do need an install for some reason they could perhaps verify one exists which works with good config, rather than fail because one doesnt exist.

I have noted similar issues with tests in the past, which seems to point to a change needed in the CI to actually catch such things as they happen.
{noformat}
 Start 51: system_tests_bad_configuration

51: Test command: /usr/bin/python "/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/build/tests/run.py" "-m" "unittest" "-v" "system_tests_bad_configuration"
51: Test timeout computed to be: 600
51: test_qdmanage_query (system_tests_bad_configuration.RouterTestBadConfiguration) ... ok
51: test_unresolvable_host_caught (system_tests_bad_configuration.RouterTestBadConfiguration) ... ok
51: 
51: Router QDR.A debug dump file:
51: alloc.c: Items of type 'qd_timer_t' remain allocated at shutdown: 1
51: alloc.c: Items of type 'qd_connector_t' remain allocated at shutdown: 1
51: test_verify_reject_id_with_ctrl_char (system_tests_bad_configuration.RouterTestIdFailCtrlChar) ... FAIL
51: test_verify_reject_id_with_whitespace (system_tests_bad_configuration.RouterTestIdFailWhiteSpace) ... FAIL
51: 
51: ======================================================================
51: FAIL: test_verify_reject_id_with_ctrl_char (system_tests_bad_configuration.RouterTestIdFailCtrlChar)
51: ----------------------------------------------------------------------
51: Traceback (most recent call last):
51: File "/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/tests/system_tests_bad_configuration.py", line 203, in test_verify_reject_id_with_ctrl_char
51: assert False, "AttributeError not in process output"
51: AssertionError: AttributeError not in process output
51: 
51: ======================================================================
51: FAIL: test_verify_reject_id_with_whitespace (system_tests_bad_configuration.RouterTestIdFailWhiteSpace)
51: ----------------------------------------------------------------------
51: Traceback (most recent call last):
51: File "/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/tests/system_tests_bad_configuration.py", line 243, in test_verify_reject_id_with_whitespace
51: assert False, "AttributeError not in process output"
51: AssertionError: AttributeError not in process output
51: 
51: ----------------------------------------------------------------------
51: Ran 4 tests in 1.293s
51: 
51: FAILED (failures=2)
51: output: 2020-04-28 09:57:22.734890 +0100 ERROR (error) Cannot find Python library path '/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/build/install/lib/qpid-dispatch/python': Unknown error 2
51: qdrouterd: Cannot find Python library path '/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/build/install/lib/qpid-dispatch/python': Unknown error 2
51: 
51: output: 2020-04-28 09:57:22.838318 +0100 ERROR (error) Cannot find Python library path '/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/build/install/lib/qpid-dispatch/python': Unknown error 2
51: qdrouterd: Cannot find Python library path '/path/to/testing/dispatch/1.12.0-rc1/qpid-dispatch-1.12.0/build/install/lib/qpid-dispatch/python': Unknown error 2
51: 
1/1 Test #51: system_tests_bad_configuration ...***Failed 1.35 sec
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org