@@ -275,6 +275,21 @@ func (op *operation) run(ctx context.Context, loopDone <-chan struct{}) (*operat
275275 case "decrypt" :
276276 return executeDecrypt (ctx , op )
277277
278+ case "assertIndexNotExists" :
279+ db := lookupString (op .Arguments , "databaseName" )
280+ coll := lookupString (op .Arguments , "collectionName" )
281+ index := lookupString (op .Arguments , "indexName" )
282+ return newErrorResult (nil ), verifyIndexExists (ctx , db , coll , index , false )
283+ case "assertIndexExists" :
284+ db := lookupString (op .Arguments , "databaseName" )
285+ coll := lookupString (op .Arguments , "collectionName" )
286+ index := lookupString (op .Arguments , "indexName" )
287+ return newErrorResult (nil ), verifyIndexExists (ctx , db , coll , index , true )
288+ case "assertCollectionExists" :
289+ db := lookupString (op .Arguments , "databaseName" )
290+ coll := lookupString (op .Arguments , "collectionName" )
291+ return newErrorResult (nil ), verifyCollectionExists (ctx , db , coll , true )
292+
278293 // Unsupported operations
279294 case "count" , "listIndexNames" , "mapReduce" :
280295 return nil , newSkipTestError (fmt .Sprintf ("the %q operation is not supported" , op .Name ))
0 commit comments