Details
-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
The test failure in Java:
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-test1708083212.3371768', 'cbl_log_decoder_build': None, ...} |
replicator_direction = 'pull' |
|
@pytest.mark.listener |
@pytest.mark.channel_revocation |
@pytest.mark.parametrize("replicator_direction", [ |
pytest.param("pull", marks=pytest.mark.sanity), |
pytest.param("push"), |
("pushAndPull") |
])
|
def test_user_removed_from_role(params_from_base_test_setup, replicator_direction):
|
""" |
@summary: |
Channel Access Revocation Test Plan (CBL) #2 |
1. on SGW create role1 and role2, create a user autotest belongs to role1, role2 and channel C |
2. on SGW create docs in channels |
3. on CBL, start a one-time pull replicator with the user credential and verify docs are replicated |
4. on CBL, start a new continuous replication with pull/push/push-pull replicator type |
5. on SGW remove the user from role1 |
6. assertion based on replicator type |
7. if push-pull, create new docs, assertion: newly created docs not replicated to SGW |
8. on SGW remove the user from role2 |
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)
|