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.21:8080', 'cbl_ce': False, 'cbl_db': 'cbl-test1707609606.452961', 'cbl_log_decoder_build': None, ...} |
num_of_docs = 100, x509_cert_auth = True |
|
@pytest.mark.listener |
@pytest.mark.noconflicts |
@pytest.mark.parametrize("num_of_docs, x509_cert_auth", [ |
(10, False), |
(100, True), |
(1000, False) |
])
|
def test_CBL_tombstone_doc(params_from_base_test_setup, num_of_docs, x509_cert_auth):
|
""" |
@summary: |
1. Create docs in SG. |
2. pull replication to CBL with continuous |
3. tombstone doc in sG. |
4. wait for replication to finish |
5. Verify that tombstone doc is deleted in CBL too |
|
""" |
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"] |
sync_gateway_version = params_from_base_test_setup["sync_gateway_version"] |
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"] |
need_sgw_admin_auth = params_from_base_test_setup["need_sgw_admin_auth"] |
|
if sync_gateway_version < "2.0": |
pytest.skip('--no-conflicts is enabled and does not work with sg < 2.0 , so skipping the test') |
|
channels = ["Replication"] |
sg_client = MobileRestClient()
|
|
# Modify sync-gateway config to use no-conflicts config
|
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)
|