Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-5329

QMFv2 tests fail when qmf console code is unavailable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.25
    • Fix Version/s: 0.25
    • Component/s: C++ Broker, QMF
    • Labels:
      None

      Description

      Testing from the release distribution, where the python qmf code isn't available, produces this error, because it's picking up an older system-installed qmf. I wonder if we shouldn't detect the absence of isV2? Otherwise, we'd need to somehow be stricter about when we run the test.

      20/54 Testing: qpidd_qmfv2_tests
      20/54 Test: qpidd_qmfv2_tests
      Command: "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/run_test" "-build-dir=/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/build" "python" "-" "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py"
      Directory: /tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/build/src/tests
      "qpidd_qmfv2_tests" start time: Nov 09 19:50 EST
      Output:
      ----------------------------------------------------------
      qpidd_qmfv2_tests.ConsoleTest.test_async_method ................................................... pass
      qpidd_qmfv2_tests.ConsoleTest.test_async_method_v1 ................................................ pass
      qpidd_qmfv2_tests.ConsoleTest.test_method_call .................................................... pass
      qpidd_qmfv2_tests.ConsoleTest.test_method_call_v1 ................................................. pass
      qpidd_qmfv2_tests.ConsoleTest.test_unsolicited_updates ............................................ fail
      Error during test: Traceback (most recent call last):
      File "/usr/bin/qpid-python-test", line 340, in run
      phase()
      File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", line 249, in test_unsolicited_updates
      self._test_unsolicited_updates()
      File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", line 169, in _test_unsolicited_updates
      assert handler.events, "No event callbacks received"
      AssertionError: No event callbacks received
      Traceback (most recent call last):
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2789, in _v1Dispatch
      self._v1DispatchProtected(msg)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2844, in _v1DispatchProtected
      agent._handleQmfV1Message(opcode, seq, mp, ah, codec)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3648, in _handleQmfV1Message
      elif opcode == 'e': self._v1HandleEventInd(codec, seq)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3380, in _v1HandleEventInd
      self.unsolicitedContext.doEvent(event)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3770, in doEvent
      self.notifiable(qmf_event=data)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3107, in _call_
      self.session.console.event(self.broker, event)
      File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", line 121, in event
      if event.isV2:
      AttributeError: Event instance has no attribute 'isV2'
      Traceback (most recent call last):
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2789, in _v1Dispatch
      self._v1DispatchProtected(msg)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2844, in _v1DispatchProtected
      agent._handleQmfV1Message(opcode, seq, mp, ah, codec)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3648, in _handleQmfV1Message
      elif opcode == 'e': self._v1HandleEventInd(codec, seq)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3380, in _v1HandleEventInd
      self.unsolicitedContext.doEvent(event)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3770, in doEvent
      self.notifiable(qmf_event=data)
      File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3107, in _call_
      self.session.console.event(self.broker, event)
      File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", line 121, in event
      if event.isV2:
      AttributeError: Event instance has no attribute 'isV2'

        Attachments

          Activity

            People

            • Assignee:
              kgiusti Ken Giusti
              Reporter:
              jross Justin Ross
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: