fix(mongodb): modernize MongoDB dump handling and filesystem integration

This commit is contained in:
2026-05-01 15:32:05 +00:00
parent 7ee4a48ee2
commit a4950ef358
15 changed files with 2671 additions and 13638 deletions
+4 -4
View File
@@ -17,8 +17,8 @@ tap.test('should create a mongodump instance', async () => {
});
tap.test('should deploy sample data', async () => {
await sampledata.generateTestData(await testSmartMongo.getMongoDescriptor())
})
await sampledata.generateTestData(await testSmartMongo.getMongoDescriptor());
});
tap.test('should add a mongotarget to mongodump instance', async () => {
const target = await testMongodump.addMongoTargetByMongoDescriptor(await testSmartMongo.getMongoDescriptor());
@@ -27,8 +27,8 @@ tap.test('should add a mongotarget to mongodump instance', async () => {
tap.test('should dump a collection to a directory', async () => {
const target = await testMongodump.addMongoTargetByMongoDescriptor(await testSmartMongo.getMongoDescriptor());
await target.dumpAllCollectionsToDir('.nogit', docArg => docArg.id, true);
})
await target.dumpAllCollectionsToDir('.nogit', (docArg) => String(docArg.id), true);
});
tap.test('should stop the smartmongo instance', async () => {
await sampledata.stop();