Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1230

cpp_container_example_test fails due to /etc/sasl2/proton-server.conf configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.13.0
    • proton-0.14.0
    • cpp-binding
    • None

    Description

      I had an old stale /etc/sasl2/proton-server.conf file lying around that had set mech_list: ANONYMOUS

      This cause the following unit test failure:

      test 23
      Start 23: cpp_container_example_test

      23: Test command: /usr/bin/python "/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/proton-c/env.py" "--" "PATH=/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/BUILD/examples/cpp:/home/kgiusti/.local/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/kgiusti/bin:/opt/coverity/bin" "VALGRIND=/usr/bin/valgrind" "/usr/bin/python" "/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/examples/cpp/example_test.py" "-v" "ContainerExampleTest"
      23: Test timeout computed to be: 1500
      23: test_encode_decode (_main_.ContainerExampleTest) ... ok
      23: test_flow_control (_main_.ContainerExampleTest) ... ok
      23: test_helloworld (_main_.ContainerExampleTest) ... ok
      23: test_helloworld_direct (_main_.ContainerExampleTest) ... ok
      23: test_request_response (_main_.ContainerExampleTest) ... ok
      23: test_request_response_direct (_main_.ContainerExampleTest) ... ok
      23: test_simple_recv_direct_send (_main_.ContainerExampleTest) ... ok
      23: test_simple_recv_send (_main_.ContainerExampleTest) ... ok
      23: test_simple_send_direct_recv (_main_.ContainerExampleTest) ... ok
      23: test_simple_send_recv (_main_.ContainerExampleTest) ... ok
      23: test_ssl (_main_.ContainerExampleTest) ... ok
      23: test_ssl_client_cert (_main_.ContainerExampleTest) ... ERROR
      23:
      23: ======================================================================
      23: ERROR: test_ssl_client_cert (_main_.ContainerExampleTest)
      23: ----------------------------------------------------------------------
      23: Traceback (most recent call last):
      23: File "/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/examples/cpp/example_test.py", line 320, in test_ssl_client_cert
      23: out = self.proc(["ssl_client_cert", addr, self.ssl_certs_dir()], skip_valgrind=True).wait_exit()
      23: File "/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/examples/cpp/example_test.py", line 128, in wait_exit
      23: self.check_()
      23: File "/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/examples/cpp/example_test.py", line 93, in run_
      23: raise ProcError(self)
      23: ProcError: ['ssl_client_cert', 'amqps://127.0.0.1:16333/examples', '/home/kgiusti/work/proton/0.13.0/qpid-proton-0.13.0/examples/cpp/ssl_certs'] non-0 exit, code=1
      23: vvvvvvvvvvvvvvvv
      23: amqp:unauthorized-access: Authentication failed [mech=(null)]
      23: ^^^^^^^^^^^^^^^^
      23:
      23:
      23: ----------------------------------------------------------------------
      23: Ran 12 tests in 10.584s
      23:
      23: FAILED (errors=1)

      The tests should be set up so that they are not influenced by the system's native configuration.

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: