Skip to content

[PBM-1171] support mixed env in pre-check validation #641

[PBM-1171] support mixed env in pre-check validation

[PBM-1171] support mixed env in pre-check validation #641

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / JUnit Test Report failed Sep 13, 2023 in 0s

15 tests run, 6 passed, 0 skipped, 9 failed.

Annotations

Check failure on line 46 in psmdb-testing/pbm-functional/pytest/test_PBM-1058.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1058.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba6638d0>

    @pytest.mark.testcase(test_case_key="T205", test_step_key=1)
    @pytest.mark.timeout(300,func_only=True)
    def test_physical(start_cluster,cluster):
>       cluster.check_pbm_status()

test_PBM-1058.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba6638d0>

    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 60 in psmdb-testing/pbm-functional/pytest/test_PBM-1058_upgrade.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1058_upgrade.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba6d4690>

    @pytest.mark.testcase(test_case_key="T235", test_step_key=1)
    @pytest.mark.timeout(300,func_only=True)
    def test_physical(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.upgrade()
>       cluster.check_pbm_status()

test_PBM-1058_upgrade.py:60: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba6d4690>

    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 112 in psmdb-testing/pbm-functional/pytest/test_PBM-1155.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1155.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba5fc110>

    @pytest.mark.testcase(test_case_key="T247", test_step_key=1)
    @pytest.mark.timeout(6000, func_only=True)
    def test_physical(start_cluster,cluster):
>       cluster.check_pbm_status()

test_PBM-1155.py:112: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba5fc110>

    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 105 in psmdb-testing/pbm-functional/pytest/test_azurite.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_azurite.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba9b6e10>

    @pytest.mark.timeout(300, func_only=True)
    def test_physical(start_cluster, cluster):
>       cluster.check_pbm_status()

test_azurite.py:105: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba9b6e10>

    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 85 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_fresh_sharded.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba9b5fd0>
newcluster = <cluster.Cluster object at 0x7f08ba6a54d0>

    @pytest.mark.testcase(test_case_key="T207", test_step_key=1)
    @pytest.mark.timeout(300,func_only=True)
    def test_physical(start_cluster,cluster,newcluster):
>       cluster.check_pbm_status()

test_fresh_sharded.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba9b5fd0>

    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 84 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_remap_sharded.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba1b9c90>
newcluster = <cluster.Cluster object at 0x7f08ba1b9610>

    @pytest.mark.testcase(test_case_key="T242", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_physical(start_cluster,cluster,newcluster):
>       cluster.check_pbm_status()

test_remap_sharded.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba1b9c90>

    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 108 in psmdb-testing/pbm-functional/pytest/test_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_sharded.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba68a010>

    @pytest.mark.timeout(300,func_only=True)
    def test_physical(start_cluster,cluster):
>       cluster.check_pbm_status()

test_sharded.py:108: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba68a010>

    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 121 in psmdb-testing/pbm-functional/pytest/test_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_sharded.test_physical_pitr

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba68a010>

    @pytest.mark.testcase(test_case_key="T244", test_step_key=1)
    @pytest.mark.timeout(600, func_only=True)
    def test_physical_pitr(start_cluster,cluster):
>       cluster.check_pbm_status()

test_sharded.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba68a010>

    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 71 in psmdb-testing/pbm-functional/pytest/test_upgrade.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_upgrade.test_physical

AssertionError
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f08ba1c6f10>

    @pytest.mark.timeout(300,func_only=True)
    def test_physical(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        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:71: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f08ba1c6f10>

    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