Skip to content

Commit

Permalink
βœ… : add a plan to sample test data
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Feb 2, 2021
1 parent 0dab84a commit 68227ed
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public void setup_cucumber_spring_context() {
mongo.runScript("40_job.js");
mongo.runScript("50_step.js");
mongo.runScript("60_terraformState.js");
mongo.runScript("80_plan.js");
}

@After
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/db/50_step.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ gaia.step.insert([
"type" : "PLAN",
"status" : "FINISHED",
"logs" : "",
"plan": {
"$ref" : "plan",
"$id" : "1f38d7e3-b7d5-4bbb-9a75-1c1ea35dfee9"
},
"_class" : "io.gaia_app.stacks.bo.Step"
},
{
Expand Down
21 changes: 21 additions & 0 deletions src/test/resources/db/80_plan.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
gaia = db.getSiblingDB('gaia');
gaia.plan.drop();
gaia.plan.insert([
{
'_id': '1f38d7e3-b7d5-4bbb-9a75-1c1ea35dfee9',
'terraform_version': '0.12.29',
'resource_changes': [
{
'address': 'docker_container.mongo',
'provider_name': 'docker',
'type': 'docker_container',
'change': { 'actions': ['CREATE'] },
}, {
'address': 'docker_image.mongo',
'provider_name': 'docker',
'type': 'docker_image',
'change': { 'actions': ['CREATE'] },
}],
'_class': 'io.gaia_app.stacks.bo.Plan',
},
]);

0 comments on commit 68227ed

Please sign in to comment.