|
7 | 7 | "github.com/cloudfoundry/switchblade" |
8 | 8 | "github.com/sclevine/spec" |
9 | 9 |
|
| 10 | + . "github.com/cloudfoundry/switchblade/matchers" |
10 | 11 | . "github.com/onsi/gomega" |
11 | 12 | ) |
12 | 13 |
|
@@ -37,15 +38,13 @@ func testOverride(platform switchblade.Platform, fixtures string) func(*testing. |
37 | 38 | ). |
38 | 39 | Execute(name, filepath.Join(fixtures, "simple")) |
39 | 40 | Expect(err).To(HaveOccurred()) |
40 | | - Expect(err).To(MatchError(ContainSubstring("App staging failed"))) |
41 | | - |
42 | | - // Switchblade now automatically captures staging logs in CF API v3 |
43 | | - // by fetching them using 'cf logs --recent' when staging fails |
44 | | - logsStr := logs.String() |
45 | | - Expect(logsStr).To(ContainSubstring("-----> OverrideYML Buildpack")) |
46 | | - Expect(logsStr).To(ContainSubstring("-----> Installing node")) |
47 | | - Expect(logsStr).To(MatchRegexp(`Copy .*/node.tgz`)) |
48 | | - Expect(logsStr).To(ContainSubstring("Unable to install node: dependency sha256 mismatch: expected sha256 062d906c87839d03b243e2821e10653c89b4c92878bfe2bf995dec231e117bfc, actual sha256 b56b58ac21f9f42d032e1e4b8bf8b8823e69af5411caa15aee2b140bc756962f")) |
| 41 | + |
| 42 | + Expect(logs.String()).To(SatisfyAll( |
| 43 | + ContainLines(ContainSubstring("-----> OverrideYML Buildpack")), |
| 44 | + ContainLines(ContainSubstring("-----> Installing node")), |
| 45 | + ContainLines(MatchRegexp("Copy .*/node.tgz")), |
| 46 | + ContainLines(ContainSubstring("Unable to install node: dependency sha256 mismatch: expected sha256 062d906c87839d03b243e2821e10653c89b4c92878bfe2bf995dec231e117bfc, actual sha256 b56b58ac21f9f42d032e1e4b8bf8b8823e69af5411caa15aee2b140bc756962f")), |
| 47 | + )) |
49 | 48 | }) |
50 | 49 | } |
51 | 50 | } |
0 commit comments