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

Investigate and fix the failure in the CBL test test_replication_configuration_valid_values

    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.148:8080', 'cbl_ce': False, 'cbl_db': 'cbl-test1707702747.460157', 'cbl_log_decoder_build': None, ...}
      num_of_docs = 10, continuous = True, x509_cert_auth = True
       
          @pytest.mark.listener
          @pytest.mark.replication
          @pytest.mark.parametrize("num_of_docs, continuous, x509_cert_auth", [
              pytest.param(10, True, True, marks=pytest.mark.sanity)
          ])
          def test_replication_configuration_valid_values(params_from_base_test_setup, num_of_docs, continuous, x509_cert_auth):
              """
                  @summary:
                  1. Create CBL DB and create bulk doc in CBL
                  2. Configure replication with valid values of valid cbl Db, valid target url
                  3. Start replication with push and pull
                  4. Verify replication is successful and verify docs exist
              """
              sg_db = "db"
              sg_url = params_from_base_test_setup["sg_url"]
              sg_admin_url = params_from_base_test_setup["sg_admin_url"]
              cluster_config = params_from_base_test_setup["cluster_config"]
              sg_blip_url = params_from_base_test_setup["target_url"]
              base_url = params_from_base_test_setup["base_url"]
              sg_config = params_from_base_test_setup["sg_config"]
              db = params_from_base_test_setup["db"]
              cbl_db = params_from_base_test_setup["source_db"]
              mode = params_from_base_test_setup["mode"]
              sync_gateway_version = params_from_base_test_setup["sync_gateway_version"]
              need_sgw_admin_auth = params_from_base_test_setup["need_sgw_admin_auth"]
          
              if sync_gateway_version < "2.0.0":
                  pytest.skip('This test cannot run with sg version below 2.0')
              channels_sg = ["ABC"]
              username = "autotest"
              password = "password"
              number_of_updates = 2
          
              # Create CBL database
              sg_client = MobileRestClient()
          
              # Reset cluster to ensure no data in system
              disable_tls_server = params_from_base_test_setup["disable_tls_server"]
              if x509_cert_auth and disable_tls_server:
                  pytest.skip("x509 test cannot run tls server disabled")
              if x509_cert_auth:
                  temp_cluster_config = copy_to_temp_conf(cluster_config, mode)
                  persist_cluster_config_environment_prop(temp_cluster_config, 'x509_certs', True)
                  persist_cluster_config_environment_prop(temp_cluster_config, 'server_tls_skip_verify', False)
                  cluster_config = temp_cluster_config
              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