atc: fix in_parallel test
needed to add the steps key in two places
@@ -405,10 +405,12 @@ var _ = Describe("Plan", func() {
Expect(json).ToNot(BeNil())
Expect([]byte(*json)).To(MatchJSON(`{
"id": "0",
- "in_parallel": [
+ "in_parallel": {
+ "steps": [
{
"id": "1",
- "in_parallel": [
+ "in_parallel": {
+ "steps": [
{
"id": "2",
"task": {
@@ -417,6 +419,7 @@ var _ = Describe("Plan", func() {
}
}
]
+ }
},
{
"id": "3",
@@ -662,7 +665,9 @@ var _ = Describe("Plan", func() {
"set_pipeline": {
"name": "some-pipeline",
"team": "some-team",
- "instance_vars": {"branch": "feature/foo"}
+ "instance_vars": {
+ "branch": "feature/foo"
+ }
}
},
{
@@ -671,12 +676,16 @@ var _ = Describe("Plan", func() {
"vars": [
{
"name": "v1",
- "values": ["a"],
+ "values": [
+ "a"
+ ],
"max_in_flight": 1
},
{
"name": "v2",
- "values": ["b"],
+ "values": [
+ "b"
+ ],
"max_in_flight": "all"
}
],
@@ -689,7 +698,10 @@ var _ = Describe("Plan", func() {
"privileged": false
}
},
- "values": ["a", "b"]
+ "values": [
+ "a",
+ "b"
+ ]
}
],
"fail_fast": true
@@ -697,6 +709,7 @@ var _ = Describe("Plan", func() {
}
]
}
+}
`))
})
})
