| Summary: | python unit test is failing - test_immediate_method | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Petr Matousek <pematous> |
| Component: | qpid-tests | Assignee: | Darryl L. Pierce <dpierce> |
| Status: | CLOSED NOTABUG | QA Contact: | MRG Quality Engineering <mrgqe-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | Development | CC: | jross, tross |
| Target Milestone: | 3.0 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-25 14:59:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Petr, what version was this? This is not a bug, I wasn't aware that there are few unit tests that expects the use of '--broker' option to execute the test properly. When running with following command the test result is PASS: # /usr/bin/qpid-python-test -m qpid_tests --broker localhost:5672 qpid_tests.broker_0_10.management.ManagementTest.test_immediate_method -> NOTABUG |
Description of problem: qpid_tests.broker_0_10.management.ManagementTest.test_immediate_method test is failing, possible cause: self.broker.port is not correctly set (see below) # /usr/bin/qpid-python-test -m qpid_tests qpid_tests.broker_0_10.management.ManagementTest.test_immediate_method qpid_tests.broker_0_10.management.ManagementTest.test_immediate_method ................................................................................................................................. fail Error during test: Traceback (most recent call last): File "/usr/bin/qpid-python-test", line 311, in run phase() File "/usr/lib/python2.6/site-packages/qpid_tests/broker_0_10/management.py", line 457, in test_immediate_method url = "%s://%s:%d" % (self.broker.scheme or "amqp", self.broker.host, self.broker.port) TypeError: %d format: a number is required, not NoneType Totals: 1 tests, 0 passed, 0 skipped, 0 ignored, 1 failed Version-Release number of selected component (if applicable): qpid-tests-0.12-1.el6.noarch How reproducible: 100% Steps to Reproduce: 1. /usr/bin/qpid-python-test -m qpid_tests qpid_tests.broker_0_10.management.ManagementTest.test_immediate_method Actual results: test_immediate_method unit test is failing Expected results: test_immediate_method unit test is passing Additional info: