Bug 754153 - python unit test is failing - test_immediate_method
Summary: python unit test is failing - test_immediate_method
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-tests
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: 3.0
: ---
Assignee: Darryl L. Pierce
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 14:46 UTC by Petr Matousek
Modified: 2015-06-22 00:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-25 14:59:53 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petr Matousek 2011-11-15 14:46:29 UTC
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:

Comment 1 Justin Ross 2013-02-22 18:26:51 UTC
Petr, what version was this?

Comment 2 Petr Matousek 2013-02-25 14:59:53 UTC
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


Note You need to log in before you can comment on or make changes to this bug.