Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-832

Test issues with cluster and opening new buckets

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta.3
    • 3.0.0
    • tests
    • None
    • 1
    • SDK13: Coll/Txn/Docs More Chip, SDK15: Ruby/Coll/Docs

    Description

      When you are in a ClusterTestCase (or one derived from that), the self.cluster works fine, except if you try to open another bucket. If you do, cluster.bucket("bucket_name") always raises an AuthenticationException.

      Perhaps there are a few things going on here - with regards to v2 style bucket auth and so on. However for the purposes of this ticket, maybe we can just get this to work within the tests? Perhaps all that is necessary is converting to a different Authenticator (maybe PasswordAuthenticator)? I recall trying that, running into other issues, and moving on as I had other things to do. But this is worth fixing - PYCBC-831 for instance would be great to actually test by opening up a few buckets – also diagnostics would benefit from this extra testing, etc...

      Attachments

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

        Activity

          david.kelly David Kelly added a comment -

          Fixed with earlier work which refactored the test base classes. I have a test that specifically does this (self.cluster.bucket(...)) and uses that bucket without issue.

          david.kelly David Kelly added a comment - Fixed with earlier work which refactored the test base classes. I have a test that specifically does this (self.cluster.bucket(...)) and uses that bucket without issue.

          People

            david.kelly David Kelly
            david.kelly David Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty