fix(mongodb): modernize MongoDB dump handling and filesystem integration
This commit is contained in:
+4
-4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user