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

query tests with mock server not quite properly configured

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • feature-backlog
    • 5.0.0
    • query
    • None

    Description

      Something is not quite right with how the mock server is configured in the multistore tests. The thinking is that something is wrong with how the mock server handles authorization.

      This is handled right now with a workaround inĀ 

      query/test/multistore/test_cases/system/testcs_system/cs.go

      in this line:

      datastore.SetDatastore(nil)

      This nil-ing should not be necessary. Without this workaround, the test breaks:

      2017-01-27T04:55:01.989-08:00 [Error] GetSettingsConfig() failed: Get /_metakv/indexing/settings/config: Unable to initialize cbauth's revrpc: cbauth environment variable CBAUTH_REVRPC_URL is not set
      _time=2017-01-27T04:55:01.989-08:00 _level=ERROR _msg=Unable to initialize cbauth. Error Unable to initialize cbauth's revrpc: cbauth environment variable CBAUTH_REVRPC_URL is not set 
      _time=2017-01-27T04:55:01.990-08:00 _level=INFO _msg=Trying to init cbauth with credentials 127.0.0.1:8091, Administrator, password 
      _time=2017-01-27T04:55:01.992-08:00 _level=INFO _msg= Initialization of cbauth succeeded 
      _time=2017-01-27T04:55:02.002-08:00 _level=INFO _msg=New store created with url http://Administrator:password@127.0.0.1:8091/ 
      --- FAIL: TestAllCaseFiles (0.02s)
       cs_test.go:25: TestCaseFile: ../case_system_completed.json
       cs_test.go:28: Error received : results len don't match, 0 vs 1, [] vs [map[statement:delete from system:completed_requests errorCount:0 resultCount:0 resultSize:0]], for case file: ../case_system_completed.json, index: 1 
      FAIL
      FAIL github.com/couchbase/query/test/multistore/test_cases/system/testcs_system 0.034s
      

      Attachments

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

        Activity

          People

            isha Isha Kandaswamy (Inactive)
            johan.larson Johan Larson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty