Uploaded image for project: 'Couchbase Mobile'
  1. Couchbase Mobile
  2. CM-1181

Investigate and fix the failure in test_users_role_revoked

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None

    Description

      The failure:

       

      Error MessageAssertionError: Failed to start to Sync GatewayStacktraceparams_from_base_test_setup = {'base_url': 'http://10.100.150.138:8080', 'cbl_ce': False, 'cbl_db': 'cbl-test1708088597.7572584', 'cbl_log_decoder_build': None, ...}
      replicator_type = 'pushAndPull'
       
          @pytest.mark.listener
          @pytest.mark.channel_revocation
          @pytest.mark.parametrize("replicator_type", [
              pytest.param("pull", marks=pytest.mark.sanity),
              pytest.param("push"),
              ("pushAndPull")
          ])
          def test_users_role_revoked(params_from_base_test_setup, replicator_type):
              """
                  @summary:
                  Channel Access Revocation Test Plan (CBL) #3
                  1. on SGW create role1, and a user autotest belongs to role1 and channel C
                  2. on SGW create docs on channels
                  3. on CBL start a one-time pull replicator with the user credential, and verify docs are replicated to SGW
                  4. on CBL, start a new continuous replication with pull/push/push-pull replicator type
                  5. role1 lost access to channel A
                  6. assertion based on replicator type
                  7. if push-pull, create new docs, assert the newly created docs rejected by SGW
                  8. on SGW role1 lost access to channel B as well
                  9. assertion based on replicator type
              """
              sg_db = "db"
              sync_gateway_version = params_from_base_test_setup["sync_gateway_version"]
              liteserv_version = params_from_base_test_setup["liteserv_version"]
              cluster_config = params_from_base_test_setup["cluster_config"]
              sg_config = params_from_base_test_setup["sg_config"]
              sg_url = params_from_base_test_setup["sg_url"]
              sg_admin_url = params_from_base_test_setup["sg_admin_url"]
              base_url = params_from_base_test_setup["base_url"]
              cbl_db = params_from_base_test_setup["source_db"]
              sg_blip_url = params_from_base_test_setup["target_url"]
              db = params_from_base_test_setup["db"]
              need_sgw_admin_auth = params_from_base_test_setup["need_sgw_admin_auth"]
          
              if sync_gateway_version < "3.0.0" or liteserv_version < "3.0.0":
                  pytest.skip('This test cannot run with version below 3.0')
          
              c = cluster.Cluster(config=cluster_config)
      >       c.reset(sg_config_path=sg_config)
       

      Attachments

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

        Activity

          People

            gilad.kalchheim Gilad Kalchheim
            gilad.kalchheim Gilad Kalchheim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty