Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-54541

[TC] [CBREST] TestClientExecuteUnknownAuthority is flaky

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      Within tools-common TestClientUnknownAuthiority is flaky when run on an M1 mac, may also be on linux but I haven't tested it on another machine. The test can be rerun from inside an IDE.

      === RUN   TestClientExecuteUnknownAuthority
      2006-01-02T15:04:05.999999999Z07:00 DEBU: (REST) (Attempt 1) (GET) Dispatching request to 'https://127.0.0.1:64499/pools/default/nodeServices'
      2006-01-02T15:04:05.999999999Z07:00 ERRO: (REST) (Attempt 1) (GET) Failed to perform request to 'https://127.0.0.1:64499/pools/default/nodeServices': Get "https://127.0.0.1:64499/pools/default/nodeServices": x509: “Acme Co” certificate is not trusted
      2022/11/14 15:38:20 http: TLS handshake error from 127.0.0.1:64500: remote error: tls: bad certificate
          /Users/jackwestwood/Desktop/tools-common/cbrest/client_test.go:1064:
                      Error Trace:    /Users/jackwestwood/Desktop/tools-common/cbrest/client_test.go:1064
                      Error:          Should be in error chain:
                                      expected: %!q(**cbrest.UnknownAuthorityError=0x140000100f8)
                                      in chain: "failed to bootstrap client: failed to execute request: Get \"https://127.0.0.1:64499/pools/default/nodeServices\": x509: “Acme Co” certificate is not trusted"
                                              "failed to execute request: Get \"https://127.0.0.1:64499/pools/default/nodeServices\": x509: “Acme Co” certificate is not trusted"
                                              "Get \"https://127.0.0.1:64499/pools/default/nodeServices\": x509: “Acme Co” certificate is not trusted"
                                              "Get \"https://127.0.0.1:64499/pools/default/nodeServices\": x509: “Acme Co” certificate is not trusted"
                                              "Get \"https://127.0.0.1:64499/pools/default/nodeServices\": x509: “Acme Co” certificate is not trusted"
                                              "x509: “Acme Co” certificate is not trusted"
                      Test:           TestClientExecuteUnknownAuthority
      --- FAIL: TestClientExecuteUnknownAuthority (0.01s)
      FAIL
      FAIL    github.com/couchbase/tools-common/cbrest        0.427s
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            jack.westwood Jack Westwood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty