[PBM-907] slice oplog during logical backup #177
16 tests run, 12 passed, 0 skipped, 4 failed.
Annotations
Check failure on line 111 in psmdb-testing/pbm-functional/pytest/test_azurite.py
github-actions / JUnit Test Report
test_azurite.test_physical
AssertionError: assert 3 == 4
+ where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
+ where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
+ and 4 = len([{'_id': ObjectId('65b90d4b5c89215ca9834109'), 'a': 1}, {'_id': ObjectId('65b90d4b5c89215ca983410a'), 'b': 2}, {'_id': ObjectId('65b90d4b5c89215ca983410b'), 'c': 3}, {'_id': ObjectId('65b90d4b5c89215ca983410c'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7e3e6fdf50>
@pytest.mark.timeout(300, func_only=True)
def test_physical(start_cluster, cluster):
cluster.check_pbm_status()
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup = cluster.make_backup("physical")
result = pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
assert int(result.deleted_count) == len(documents)
cluster.make_restore(backup, restart_cluster=True,check_pbm_status=True)
> assert pymongo.MongoClient(cluster.connection)["test"]["test"].count_documents({}) == len(documents)
E AssertionError: assert 3 == 4
E + where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E + where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E + and 4 = len([{'_id': ObjectId('65b90d4b5c89215ca9834109'), 'a': 1}, {'_id': ObjectId('65b90d4b5c89215ca983410a'), 'b': 2}, {'_id': ObjectId('65b90d4b5c89215ca983410b'), 'c': 3}, {'_id': ObjectId('65b90d4b5c89215ca983410c'), 'd': 4}])
test_azurite.py:111: AssertionError
Check failure on line 92 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py
github-actions / JUnit Test Report
test_fresh_sharded.test_physical
AssertionError: assert 3 == 4
+ where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
+ where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
+ and 4 = len([{'_id': ObjectId('65b910515c89215ca9834123'), 'a': 1}, {'_id': ObjectId('65b910515c89215ca9834124'), 'b': 2}, {'_id': ObjectId('65b910515c89215ca9834125'), 'c': 3}, {'_id': ObjectId('65b910515c89215ca9834126'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7e3e886d50>
newcluster = <cluster.Cluster object at 0x7f7e3e8851d0>
@pytest.mark.testcase(test_case_key="T207", test_step_key=1)
@pytest.mark.timeout(600,func_only=True)
def test_physical(start_cluster,cluster,newcluster):
cluster.check_pbm_status()
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup=cluster.make_backup("physical")
cluster.destroy()
newcluster.make_resync()
newcluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
> assert pymongo.MongoClient(newcluster.connection)["test"]["test"].count_documents({}) == len(documents)
E AssertionError: assert 3 == 4
E + where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E + where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E + and 4 = len([{'_id': ObjectId('65b910515c89215ca9834123'), 'a': 1}, {'_id': ObjectId('65b910515c89215ca9834124'), 'b': 2}, {'_id': ObjectId('65b910515c89215ca9834125'), 'c': 3}, {'_id': ObjectId('65b910515c89215ca9834126'), 'd': 4}])
test_fresh_sharded.py:92: AssertionError
Check failure on line 92 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py
github-actions / JUnit Test Report
test_remap_sharded.test_physical
AssertionError: assert 1 == 4
+ where 1 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
+ where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
+ and 4 = len([{'_id': ObjectId('65b9127d5c89215ca9834135'), 'a': 1}, {'_id': ObjectId('65b9127d5c89215ca9834136'), 'b': 2}, {'_id': ObjectId('65b9127d5c89215ca9834137'), 'c': 3}, {'_id': ObjectId('65b9127d5c89215ca9834138'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7e3e876510>
newcluster = <cluster.Cluster object at 0x7f7e3e80dbd0>
@pytest.mark.testcase(test_case_key="T242", test_step_key=1)
@pytest.mark.timeout(600,func_only=True)
def test_physical(start_cluster,cluster,newcluster):
cluster.check_pbm_status()
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup=cluster.make_backup("physical")
backup = backup + ' --replset-remapping="newrs1=rs1,newrs2=rs2,newrscfg=rscfg"'
cluster.destroy()
newcluster.make_resync()
newcluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
> assert pymongo.MongoClient(newcluster.connection)["test"]["test"].count_documents({}) == len(documents)
E AssertionError: assert 1 == 4
E + where 1 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E + where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E + and 4 = len([{'_id': ObjectId('65b9127d5c89215ca9834135'), 'a': 1}, {'_id': ObjectId('65b9127d5c89215ca9834136'), 'b': 2}, {'_id': ObjectId('65b9127d5c89215ca9834137'), 'c': 3}, {'_id': ObjectId('65b9127d5c89215ca9834138'), 'd': 4}])
test_remap_sharded.py:92: AssertionError
Check failure on line 114 in psmdb-testing/pbm-functional/pytest/test_sharded.py
github-actions / JUnit Test Report
test_sharded.test_physical
AssertionError: assert 3 == 4
+ where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
+ where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
+ and 4 = len([{'_id': ObjectId('65b9147e5c89215ca9834146'), 'a': 1}, {'_id': ObjectId('65b9147e5c89215ca9834147'), 'b': 2}, {'_id': ObjectId('65b9147e5c89215ca9834148'), 'c': 3}, {'_id': ObjectId('65b9147e5c89215ca9834149'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f7e3e6da6d0>
@pytest.mark.timeout(600,func_only=True)
def test_physical(start_cluster,cluster):
cluster.check_pbm_status()
pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
backup=cluster.make_backup("physical")
result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
assert int(result.deleted_count) == len(documents)
cluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
> assert pymongo.MongoClient(cluster.connection)["test"]["test"].count_documents({}) == len(documents)
E AssertionError: assert 3 == 4
E + where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E + where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E + and 4 = len([{'_id': ObjectId('65b9147e5c89215ca9834146'), 'a': 1}, {'_id': ObjectId('65b9147e5c89215ca9834147'), 'b': 2}, {'_id': ObjectId('65b9147e5c89215ca9834148'), 'c': 3}, {'_id': ObjectId('65b9147e5c89215ca9834149'), 'd': 4}])
test_sharded.py:114: AssertionError