PBM-CUSTOM #33
GitHub Actions / JUnit Test Report
failed
Mar 18, 2024 in 0s
1 tests run, 0 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 62 in pbm-functional/pytest/test_PBM-1252.py
github-actions / JUnit Test Report
test_PBM-1252.test_load
AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd935ceccd0>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'{"Error":"connect to mongodb: create mongo connection: ping: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: 127.0.0.1:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }"}\n', _stderr=b'')
assert 1 == 0
+ where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd935ceccd0>, exit_status=1, command=b'pbm ...0.0.1:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }"}\n', _stderr=b'').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd9355578d0>
@pytest.mark.timeout(3600,func_only=True)
def test_load(start_cluster,cluster):
cluster.check_pbm_status()
indexes = []
for i in range(63):
indexes.append(pymongo.IndexModel(str(i),background=True))
for i in range(1500):
database = ''.join(random.choice(string.ascii_lowercase) for _ in range(63))
client=pymongo.MongoClient(cluster.connection)
db = client[database]
db.create_collection("test_collection")
db["test_collection"].create_indexes(indexes)
Cluster.log( database + ": " + str(i))
backup = cluster.make_backup("physical")
> cluster.make_restore(backup,restart_cluster=True, check_pbm_status=True,timeout=1200)
test_PBM-1252.py:62:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cluster.py:462: in make_restore
self.make_resync()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7fd9355578d0>
def make_resync(self):
n = testinfra.get_host("docker://" + self.pbm_cli)
> result = n.check_output('pbm config --force-resync --out json')
E AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd935ceccd0>, exit_status=1, command=b'pbm config --force-resync --out json', _stdout=b'{"Error":"connect to mongodb: create mongo connection: ping: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: 127.0.0.1:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }"}\n', _stderr=b'')
E assert 1 == 0
E + where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd935ceccd0>, exit_status=1, command=b'pbm ...0.0.1:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused }, ] }"}\n', _stderr=b'').rc
cluster.py:359: AssertionError
Loading