Skip to content

PBM-1114

PBM-1114 #173

GitHub Actions / JUnit Test Report failed Sep 19, 2024 in 0s

20 tests run, 16 passed, 3 skipped, 1 failed.

Annotations

Check failure on line 57 in pbm-functional/pytest/test_PBM-1171.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_PBM-1171.test_physical_mixed_env_PBM_T248

AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fc7b70ef010>, exit_status=1, command=b'supervisorctl start mongod-ce', _stdout=b'mongod-ce: ERROR (no such file)\n', _stderr=b'')
assert 1 == 0
 +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fc7b70ef010>, exit_status=1, command=b'supervisorctl start mongod-ce', _stdout=b'mongod-ce: ERROR (no such file)\n', _stderr=b'').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fc7b5d4eb10>

    @pytest.mark.timeout(600,func_only=True)
    def test_physical_mixed_env_PBM_T248(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
    
        #primary cfgsrv - CE, else - PSMDB, backup should pass
>       Cluster.psmdb_to_ce("rscfg01")

test_PBM-1171.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

host = 'rscfg01'

    @staticmethod
    def psmdb_to_ce(host):
        n=testinfra.get_host("docker://" + host)
        state=n.check_output("mongo --quiet --eval 'db.hello().secondary'")
        Cluster.log("Is mongodb on " + host + " secondary? - " + state)
        n.check_output('supervisorctl stop mongod')
>       n.check_output('supervisorctl start mongod-ce')
E       AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fc7b70ef010>, exit_status=1, command=b'supervisorctl start mongod-ce', _stdout=b'mongod-ce: ERROR (no such file)\n', _stderr=b'')
E       assert 1 == 0
E        +  where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fc7b70ef010>, exit_status=1, command=b'supervisorctl start mongod-ce', _stdout=b'mongod-ce: ERROR (no such file)\n', _stderr=b'').rc

cluster.py:948: AssertionError