update togun tests due to
@@ -22,10 +22,10 @@ var _ = Describe("A pipeline-provided resource type", func() {
<-buildSession.Exited
Expect(buildSession.ExitCode()).To(Equal(1))
- By("expecting a container for the resource check, resource type check, and task image check")
- Expect(ContainersBy("type", "check")).To(HaveLen(3))
+ By("expecting a container for the resource check, resource type check, task resource type check and task image check")
+ Expect(ContainersBy("type", "check")).To(HaveLen(4))
- By("expecting a container for the resource check, resource type check, resource type get, build resource get, build task image check, build task image get and build task")
+ By("expecting a container for resource type check, resource check, resource get in get step. expecting a container for nested resource type check, image check, image get and task run in task step. In total 7 containers.")
expectedContainersBefore := 7
Expect(FlyTable("containers")).Should(HaveLen(expectedContainersBefore))
@@ -34,11 +34,11 @@ var _ = Describe("A pipeline-provided resource type", func() {
<-buildSession.Exited
Expect(buildSession.ExitCode()).To(Equal(1))
- By("expecting only one additional check container for the task's image check")
- Expect(ContainersBy("type", "check")).To(HaveLen(4))
+ By("expecting additional check containers for the task's image check and nested resource type check.")
+ Expect(ContainersBy("type", "check")).To(HaveLen(6))
- By("expecting to only have new containers for build task image check and build task")
- Expect(FlyTable("containers")).Should(HaveLen(expectedContainersBefore + 2))
+ By("expecting to only have new containers for build task image check, nested resource type check and build task")
+ Expect(FlyTable("containers")).Should(HaveLen(expectedContainersBefore + 3))
})
})
