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 14, 2023 in 0s

14 tests run, 3 passed, 0 skipped, 11 failed.

Annotations

Check failure on line 57 in psmdb-testing/pbm-functional/pytest/test_PBM-773.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-773.test_logical

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

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

test_PBM-773.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4dfa910>

    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 65 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_logical

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

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

test_azurite.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4bc9390>

    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 77 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_logical_pitr

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

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

test_azurite.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4bc9390>

    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_fresh_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_fresh_sharded.test_logical

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

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

test_fresh_sharded.py:71: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4bfbb10>

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

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_kerberos.test_logical

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

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

test_kerberos.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4df2310>

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

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_ldap.test_logical

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

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

test_ldap.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4c13c10>

    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 69 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_logical

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

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

test_remap_sharded.py:69: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4a7e6d0>

    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 56 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_logical

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

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

test_sharded.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4aa0510>

    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 80 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_logical_pitr

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

    @pytest.mark.testcase(test_case_key="T194", test_step_key=1)
    @pytest.mark.timeout(500, func_only=True)
    def test_logical_pitr(start_cluster,cluster):
>       cluster.check_pbm_status()

test_sharded.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4aa0510>

    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 57 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_logical

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

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

self = <cluster.Cluster object at 0x7f3db4e01b10>

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

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_x509.test_logical

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

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

test_x509.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <cluster.Cluster object at 0x7f3db4b4a0d0>

    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