Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit d20c612

Browse files
Fix e2e
Signed-off-by: Caroline Briaud <[email protected]>
1 parent 2ec23c8 commit d20c612

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

e2e/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
238238
cmd.Command = dockerCli.Command("app", "update", appName)
239239
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
240240
ExitCode: 1,
241-
Err: fmt.Sprintf("Installation %q has failed and cannot be updated, reinstall it using 'docker app run'", appName),
241+
Err: fmt.Sprintf("Running App %q cannot be updated, please use 'docker app run' instead", appName),
242242
})
243243

244244
// Install a Docker Application Package with an existing failed installation is fine

e2e/images_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ a-simple-app:latest simple
155155
dockerAppImageTag("b-simple-app", "target")
156156
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
157157
ExitCode: 1,
158-
Err: `could not tag 'b-simple-app': no such application image`,
158+
Err: `could not tag 'b-simple-app': no such App image`,
159159
})
160160

161161
// with unexisting source tag
162162
dockerAppImageTag("a-simple-app:not-a-tag", "target")
163163
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
164164
ExitCode: 1,
165-
Err: `could not tag 'a-simple-app:not-a-tag': no such application image`,
165+
Err: `could not tag 'a-simple-app:not-a-tag': no such App image`,
166166
})
167167

168168
// tag image with only names

e2e/testdata/credential-install-full.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ bar
44
SECRET_THREE: baz
55
/var/secret_three/data.txt
66
baz
7-
Application "full" installed on context "default"
7+
App "full" running on context "default"

e2e/testdata/credential-install-mixed-credstore.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ secret2value
44
SECRET_THREE: xyzzy
55
/var/secret_three/data.txt
66
xyzzy
7-
Application "mixed-credstore" installed on context "default"
7+
App "mixed-credstore" running on context "default"

e2e/testdata/credential-install-mixed-local-cred.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ secret2value
44
SECRET_THREE: xyzzy
55
/var/secret_three/data.txt
66
xyzzy
7-
Application "mixed-local-cred" installed on context "default"
7+
App "mixed-local-cred" running on context "default"

internal/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ func runBundle(dockerCli command.Cli, bndl *bundle.Bundle, opts runOptions, ref
160160
return err2
161161
}
162162

163-
fmt.Fprintf(os.Stdout, "App %q is running on context %q\n", installationName, opts.targetContext)
163+
fmt.Fprintf(os.Stdout, "App %q running on context %q\n", installationName, opts.targetContext)
164164
return nil
165165
}

0 commit comments

Comments
 (0)