Skip to content

Commit d57468a

Browse files
author
Natalie Arellano
committed
Fix acceptance by passing --force to rebaser when new run image not found in existing metadata
Signed-off-by: Natalie Arellano <narellano@vmware.com>
1 parent 090e030 commit d57468a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

acceptance/acceptance_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,6 +2643,7 @@ include = [ "*.jar", "media/mountain.jpg", "/media/person.png", ]
26432643
"rebase", repoName,
26442644
"--run-image", runAfter,
26452645
"--pull-policy", "never",
2646+
"--force",
26462647
)
26472648

26482649
assert.Contains(output, fmt.Sprintf("Successfully rebased image '%s'", repoName))
@@ -2668,7 +2669,7 @@ include = [ "*.jar", "media/mountain.jpg", "/media/person.png", ]
26682669
})
26692670

26702671
it("prefers the local mirror", func() {
2671-
output := pack.RunSuccessfully("rebase", repoName, "--pull-policy", "never")
2672+
output := pack.RunSuccessfully("rebase", repoName, "--pull-policy", "never", "--force")
26722673

26732674
assertOutput := assertions.NewOutputAssertionManager(t, output)
26742675
assertOutput.ReportsSelectingRunImageMirrorFromLocalConfig(localRunImageMirror)
@@ -2723,7 +2724,7 @@ include = [ "*.jar", "media/mountain.jpg", "/media/person.png", ]
27232724
})
27242725

27252726
it("uses provided run image", func() {
2726-
output := pack.RunSuccessfully("rebase", repoName, "--publish", "--run-image", runAfter)
2727+
output := pack.RunSuccessfully("rebase", repoName, "--publish", "--run-image", runAfter, "--force")
27272728

27282729
assertions.NewOutputAssertionManager(t, output).ReportsSuccessfulRebase(repoName)
27292730
assertImage.CanBePulledFromRegistry(repoName)

0 commit comments

Comments
 (0)