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

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 0x7f882fc44d90>

    @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 0x7f882fc44d90>

    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 0x7f882f2c9a50>

    @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 0x7f882f2c9a50>

    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 0x7f882f2c9a50>

    @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 0x7f882f2c9a50>

    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 0x7f882f2b9150>
newcluster = <cluster.Cluster object at 0x7f882f2bbc90>

    @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 0x7f882f2b9150>

    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 0x7f882f3bdcd0>

    @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 0x7f882f3bdcd0>

    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 0x7f882f248c90>

    @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 0x7f882f248c90>

    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 0x7f882f3a04d0>
newcluster = <cluster.Cluster object at 0x7f882f3a2550>

    @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 0x7f882f3a04d0>

    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 0x7f882f3a7850>

    @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 0x7f882f3a7850>

    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 0x7f882f3a7850>

    @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 0x7f882f3a7850>

    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 0x7f882f2a3e90>

    @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 0x7f882f2a3e90>

    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 0x7f882f3e25d0>

    @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 0x7f882f3e25d0>

    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