diff --git a/mongo/docker-entrypoint-initdb.d/mongo-init.js b/mongo/docker-entrypoint-initdb.d/mongo-init.js index ed8e2a2265cb646137b4a6f3882f14262f3c2b14..34cd22e0ddc735c06d05f687c202ae4c9413b1c4 100644 --- a/mongo/docker-entrypoint-initdb.d/mongo-init.js +++ b/mongo/docker-entrypoint-initdb.d/mongo-init.js @@ -60,6 +60,71 @@ db.taskTemplates.insertMany( "finalPolicy":"", "cacheNamespace":"", "cacheScope":"" + }, + { + "name":"exampleTask2", + "url":"https://jsonplaceholder.typicode.com/todos/1", + "method":"GET", + "requestPolicy":"", + "responsePolicy":"", + "finalPolicy":"", + "cacheNamespace":"", + "cacheScope":"" + } + ] +); + +db.createCollection('taskListTemplates'); +db.taskListTemplates.insertMany( + [ + { + "name": "sequentialTaskList", + "cacheNamespace": "login", + "cacheScope": "user", + "groups": [ + { + "execution": "sequential", + "tasks": [ + "exampleTask", + "exampleTask2" + ] + } + ] + }, + { + "name": "parallelTaskList", + "cacheNamespace": "login", + "cacheScope": "user", + "groups": [ + { + "execution": "parallel", + "tasks": [ + "exampleTask", + "exampleTask2" + ] + } + ] + }, + { + "name": "mixedTaskList", + "cacheNamespace": "login", + "cacheScope": "user", + "groups": [ + { + "execution": "parallel", + "tasks": [ + "exampleTask", + "exampleTask2" + ] + }, + { + "execution": "sequential", + "tasks": [ + "exampleTask", + "exampleTask2" + ] + } + ] } ] );