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

go-test TestAuthPlain fails when SASL_IMPL is none

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.18.0
    • proton-c-0.18.1
    • go-binding
    • None
    • OSX 10.11.6, Xcode 7.3.1, golang 1.9.1
      Fedora 25, gcc 6.3.1, go1.7.5

    Description

      Initially found this issue when testing the OSX work from PROTON-522, however after testing it fails in the same way on Fedora 25 when SASL_IMPL is none.

      As discussed in this comment when cyrus is configured for the sasl implementation the test fails due to the noted sasl_client_init parameter passing.

      11: Test command: /opt/local/bin/python "/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/proton-c/env.py" "--" "GOPATH=/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/proton-c/bindings/go" "C
      GO_CFLAGS=-I/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/proton-c/include -I/Users/rkieley/LocalProjects/issues/PROTON-522/121/proton-c/include" "CGO_LDFLAGS=-L/Users/rkieley/LocalProjects/issues/PROTON-522/121/p
      roton-c" "PN_INTEROP_DIR=/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/tests/interop" "/opt/local/bin/go" "test" "-ldflags" "-r /Users/rkieley/LocalProjects/issues/PROTON-522/121/proton-c" "-v" "-race" "qpid.apach
      e.org/..."
      .
      .
      .
      11: === RUN   TestAuthPlain
      11: --- FAIL: TestAuthPlain (0.02s)
      11:     electron_test.go:39: (from auth_test.go:64) amqp:unauthorized-access: Authentication failed [mech=PLAIN]
      

      With a sasl implementation of 'none' configured we see that it attempts to use mech='none' and also fails:

      11: Test command: /opt/local/bin/python "/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/proton-c/env.py" "--" "GOPATH=/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/proton-c/bindings/go" "C
      GO_CFLAGS=-I/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/proton-c/include -I/Users/rkieley/LocalProjects/issues/PROTON-522/124/proton-c/include" "CGO_LDFLAGS=-L/Users/rkieley/LocalProjects/issues/PROTON-522/124/p
      roton-c" "PN_INTEROP_DIR=/Users/rkieley/LocalProjects/issues/PROTON-522/qpid-proton-roddiekieley/tests/interop" "/opt/local/bin/go" "test" "-ldflags" "-r /Users/rkieley/LocalProjects/issues/PROTON-522/124/proton-c" "-v" "-race" "qpid.apach
      e.org/..."
      .
      .
      .
      11: === RUN   TestAuthPlain
      11: --- FAIL: TestAuthPlain (0.00s)
      11:     electron_test.go:39: (from auth_test.go:64) amqp:unauthorized-access: Authentication failed [mech=none]
      

      Attachments

        Activity

          People

            aconway Alan Conway
            rkieley Roddie Kieley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: