Skip to content

Commit

Permalink
Try to fix exporter acceptance
Browse files Browse the repository at this point in the history
Signed-off-by: Natalie Arellano <narellano@vmware.com>
  • Loading branch information
natalieparellano committed Oct 23, 2024
1 parent 4f47869 commit 7123e83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions acceptance/exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func testExporterFunc(platformAPI string) func(t *testing.T, when spec.G, it spe

it("overwrites the original layer", func() {
exportFlags := []string{
"-cache-dir", "/cache/committed",
"-cache-dir", "/cache",
"-log-level", "debug",
}
exportArgs := append([]string{ctrPath(exporterPath)}, exportFlags...)
Expand All @@ -427,10 +427,11 @@ func testExporterFunc(platformAPI string) func(t *testing.T, when spec.G, it spe
"--env", "CNB_PLATFORM_API="+platformAPI,
"--env", "CNB_REGISTRY_AUTH="+exportRegAuthConfig,
"--network", exportRegNetwork,
"--volume", fmt.Sprintf("%s:/cache/committed", cacheDir),
"--volume", fmt.Sprintf("%s:/cache", cacheDir),
),
h.WithArgs(exportArgs...),
)
h.AssertStringContains(t, output, "Skipping reuse for layer corrupted_buildpack:corrupted-layer: expected layer contents to have SHA 'sha256:258dfa0cc987efebc17559694866ebc91139e7c0e574f60d1d4092f53d7dff59'; found 'sha256:9e0b77ed599eafdab8611f7eeefef084077f91f02f1da0a3870c7ff20a08bee8'")
h.AssertStringContains(t, output, "Saving "+exportedImageName)
h.Run(t, exec.Command("docker", "pull", exportedImageName))
defer h.Run(t, exec.Command("docker", "image", "rm", exportedImageName))
Expand Down

0 comments on commit 7123e83

Please sign in to comment.