[PBM-1171] support mixed env in pre-check validation #641
13 tests run, 6 passed, 0 skipped, 7 failed.
Annotations
Check failure on line 83 in psmdb-testing/pbm-functional/pytest/test_PBM-1155.py
github-actions / JUnit Test Report
test_PBM-1155.test_incremental_base
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7440fe67d0>
@pytest.mark.testcase(test_case_key="T246", test_step_key=1)
@pytest.mark.timeout(6000, func_only=True)
def test_incremental_base(start_cluster,cluster):
> cluster.check_pbm_status()
test_PBM-1155.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f7440fe67d0>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError
Check failure on line 94 in psmdb-testing/pbm-functional/pytest/test_PBM-1155.py
github-actions / JUnit Test Report
test_PBM-1155.test_incremental
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7440fe67d0>
@pytest.mark.testcase(test_case_key="T245", test_step_key=1)
@pytest.mark.timeout(6000, func_only=True)
def test_incremental(start_cluster,cluster):
> cluster.check_pbm_status()
test_PBM-1155.py:94:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f7440fe67d0>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError
Check failure on line 117 in psmdb-testing/pbm-functional/pytest/test_azurite.py
github-actions / JUnit Test Report
test_azurite.test_incremental
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f743c56ad10>
@pytest.mark.timeout(300, func_only=True)
def test_incremental(start_cluster, cluster):
> cluster.check_pbm_status()
test_azurite.py:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f743c56ad10>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError
Check failure on line 99 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py
github-actions / JUnit Test Report
test_fresh_sharded.test_incremental
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7440d221d0>
newcluster = <cluster.Cluster object at 0x7f7440d23d50>
@pytest.mark.testcase(test_case_key="T209", test_step_key=1)
@pytest.mark.timeout(300,func_only=True)
def test_incremental(start_cluster,cluster,newcluster):
> cluster.check_pbm_status()
test_fresh_sharded.py:99:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f7440d221d0>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError
Check failure on line 98 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py
github-actions / JUnit Test Report
test_remap_sharded.test_incremental
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7440ff7150>
newcluster = <cluster.Cluster object at 0x7f743c56aa90>
@pytest.mark.testcase(test_case_key="T243", test_step_key=1)
@pytest.mark.timeout(600,func_only=True)
def test_incremental(start_cluster,cluster,newcluster):
> cluster.check_pbm_status()
test_remap_sharded.py:98:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f7440ff7150>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError
Check failure on line 145 in psmdb-testing/pbm-functional/pytest/test_sharded.py
github-actions / JUnit Test Report
test_sharded.test_incremental
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7440cfad90>
@pytest.mark.timeout(300,func_only=True)
def test_incremental(start_cluster,cluster):
> cluster.check_pbm_status()
test_sharded.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f7440cfad90>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError
Check failure on line 86 in psmdb-testing/pbm-functional/pytest/test_upgrade.py
github-actions / JUnit Test Report
test_upgrade.test_incremental
AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7440d13290>
@pytest.mark.timeout(300,func_only=True)
def test_incremental(start_cluster,cluster):
cluster.check_pbm_status()
cluster.make_backup("incremental --base")
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup = cluster.make_backup("incremental")
result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
assert int(result.deleted_count) == len(documents)
cluster.upgrade()
> cluster.check_pbm_status()
test_upgrade.py:86:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7f7440d13290>
def check_pbm_status(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
result = n.check_output('pbm status --out=json')
parsed_result = json.loads(result)
Cluster.log("PBM status: \n" + str(parsed_result['cluster']))
#Cluster.log(json.dumps(parsed_result['cluster'], indent=4))
hosts = []
for replicaset in parsed_result['cluster']:
for host in replicaset['nodes']:
if host['role'] != "A":
hosts.append(host)
assert host['ok'] == True
> assert len(hosts) == len(self.pbm_hosts)
E AssertionError
cluster.py:715: AssertionError