Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
add new post-start output to acceptance expectations
Browse files Browse the repository at this point in the history
[#119814751]

Signed-off-by: Christopher Brown <[email protected]>
  • Loading branch information
tylerschultz authored and Christopher Brown committed May 19, 2016
1 parent c14fd34 commit da7d814
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions acceptance/lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,13 @@ var _ = Describe("bosh-init", func() {
Expect(deployingSteps[3]).To(MatchRegexp("^ Attaching disk '.*' to VM '.*'" + stageFinishedPattern))
Expect(deployingSteps[4]).To(MatchRegexp("^ Rendering job templates" + stageFinishedPattern))

for _, line := range deployingSteps[5 : numDeployingSteps-2] {
for _, line := range deployingSteps[5 : numDeployingSteps-3] {
Expect(line).To(MatchRegexp("^ Compiling package '.*/.*'" + stageCompiledPackageSkippedPattern))
}

Expect(deployingSteps[numDeployingSteps-2]).To(MatchRegexp("^ Updating instance 'dummy_compiled_job/0'" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-1]).To(MatchRegexp("^ Waiting for instance 'dummy_compiled_job/0' to be running" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-3]).To(MatchRegexp("^ Updating instance 'dummy_compiled_job/0'" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-2]).To(MatchRegexp("^ Waiting for instance 'dummy_compiled_job/0' to be running" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-1]).To(MatchRegexp("^ Running the post-start scripts 'dummy_compiled_job/0'" + stageFinishedPattern))

Expect(outputLines[numOutputLines-2]).To(MatchRegexp("^Cleaning up rendered CPI jobs" + stageFinishedPattern))

Expand Down Expand Up @@ -415,12 +416,13 @@ var _ = Describe("bosh-init", func() {
Expect(deployingSteps[3]).To(MatchRegexp("^ Attaching disk '.*' to VM '.*'" + stageFinishedPattern))
Expect(deployingSteps[4]).To(MatchRegexp("^ Rendering job templates" + stageFinishedPattern))

for _, line := range deployingSteps[5 : numDeployingSteps-2] {
for _, line := range deployingSteps[5 : numDeployingSteps-3] {
Expect(line).To(MatchRegexp("^ Compiling package '.*/.*'" + stageFinishedPattern))
}

Expect(deployingSteps[numDeployingSteps-2]).To(MatchRegexp("^ Updating instance 'dummy_job/0'" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-1]).To(MatchRegexp("^ Waiting for instance 'dummy_job/0' to be running" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-3]).To(MatchRegexp("^ Updating instance 'dummy_job/0'" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-2]).To(MatchRegexp("^ Waiting for instance 'dummy_job/0' to be running" + stageFinishedPattern))
Expect(deployingSteps[numDeployingSteps-1]).To(MatchRegexp("^ Running the post-start scripts 'dummy_job/0'" + stageFinishedPattern))

Expect(outputLines[numOutputLines-2]).To(MatchRegexp("^Cleaning up rendered CPI jobs" + stageFinishedPattern))

Expand Down

0 comments on commit da7d814

Please sign in to comment.