Add unpause pipeline (gotcha!)
Add `-w` to the trigger command to make sure the task runs to completion.
@@ -44,11 +44,14 @@ var _ = Describe("Baggageclaim Drivers", func() {
deployConcourseChart(releaseName, helmDeployTestFlags...)
if !c.ShouldWork {
+ Eventually(func() []byte {
workerLogsSession := Start(nil, "kubectl", "logs",
"--namespace="+namespace, "-lapp="+namespace+"-worker")
<-workerLogsSession.Exited
- Expect(workerLogsSession.Out.Contents()).To(ContainSubstring("failed-to-set-up-driver"))
+ return workerLogsSession.Out.Contents()
+
+ }).Should(ContainSubstring("failed-to-set-up-driver"))
return
}
@@ -61,8 +64,9 @@ var _ = Describe("Baggageclaim Drivers", func() {
fly.Login("test", "test", atcEndpoint)
By("Setting and triggering a dumb pipeline")
- fly.Run("set-pipeline", "-n", "-c", "../pipelines/get-task.yml", "-p", "pipeline")
- fly.Run("trigger-job", "-j", "pipeline/simple-job")
+ fly.Run("set-pipeline", "-n", "-c", "../pipelines/get-task.yml", "-p", "some-pipeline")
+ fly.Run("unpause-pipeline", "-p", "some-pipeline")
+ fly.Run("trigger-job", "-w", "-j", "some-pipeline/simple-job")
},
Entry("with btrfs on cos", Case{
Driver: "btrfs",
