PBM. Add fix for trivy #1275
GitHub Actions / JUnit Test Report
failed
Feb 17, 2025 in 0s
54 tests run, 49 passed, 4 skipped, 1 failed.
Annotations
Check failure on line 95 in psmdb-testing/pbm-functional/pytest/test_azurite.py
github-actions / JUnit Test Report
test_azurite.test_logical_pitr
AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd364fa7550>, exit_status=1, command=b'pbm delete-backup -y 2025-02-17T18:04:44Z', _stdout=b'', _stderr=b'Error: another operation in progress, Delete/67b37a946bbfc52ddc339168 [rscfg/rscfg01:27017]\n')
assert 1 == 0
+ where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd364fa7550>, exit_status=1, command=b'pbm ... _stdout=b'', _stderr=b'Error: another operation in progress, Delete/67b37a946bbfc52ddc339168 [rscfg/rscfg01:27017]\n').rc
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fd36500b150>
@pytest.mark.timeout(500, func_only=True)
def test_logical_pitr(start_cluster,cluster):
cluster.check_pbm_status()
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup_l1=cluster.make_backup("logical")
cluster.enable_pitr(pitr_extra_args="--set pitr.oplogSpanMin=0.5")
time.sleep(60)
# make several following backups and then remove them to check the continuity of PITR timeframe
pymongo.MongoClient(cluster.connection)["test"]["test2"].insert_many(documents)
backup_l2=cluster.make_backup("logical")
time.sleep(60)
pymongo.MongoClient(cluster.connection)["test"]["test3"].insert_many(documents)
backup_l3=cluster.make_backup("logical")
pitr = datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%S")
backup="--time=" + pitr
Cluster.log("Time for PITR is: " + pitr)
time.sleep(60)
cluster.delete_backup(backup_l2)
> cluster.delete_backup(backup_l3)
test_azurite.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <cluster.Cluster object at 0x7fd36500b150>, name = '2025-02-17T18:04:44Z'
def delete_backup(self, name):
n = testinfra.get_host("docker://" + self.pbm_cli)
> result = n.check_output('pbm delete-backup -y ' + name)
E AssertionError: Unexpected exit code 1 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd364fa7550>, exit_status=1, command=b'pbm delete-backup -y 2025-02-17T18:04:44Z', _stdout=b'', _stderr=b'Error: another operation in progress, Delete/67b37a946bbfc52ddc339168 [rscfg/rscfg01:27017]\n')
E assert 1 == 0
E + where 1 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7fd364fa7550>, exit_status=1, command=b'pbm ... _stdout=b'', _stderr=b'Error: another operation in progress, Delete/67b37a946bbfc52ddc339168 [rscfg/rscfg01:27017]\n').rc
cluster.py:844: AssertionError
Loading