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

Commit 9678c4b

Browse files
Ulysses Souzachris-crone
authored andcommitted
Fix EXPERIMENTAL=on tests
Signed-off-by: Ulysses Souza <[email protected]>
1 parent 064a917 commit 9678c4b

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

e2e/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func testRenderApp(appPath string, env ...string) func(*testing.T) {
5656
}
5757
result := icmd.RunCmd(icmd.Cmd{
5858
Command: args,
59-
Env: env,
59+
Env: append(os.Environ(), env...),
6060
}).Assert(t, icmd.Success)
6161
assert.Assert(t, is.Equal(readFile(t, filepath.Join(appPath, "expected.txt")), result.Stdout()), "rendering mismatch")
6262
}

e2e/plugin_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ func TestInvokePluginFromCLI(t *testing.T) {
1919
// docker app --help prints docker-app help
2020
cmd.Command = dockerCli.Command("app", "--help")
2121
usage := icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined()
22-
golden.Assert(t, usage, "plugin-usage.golden")
22+
23+
goldenFile := "plugin-usage.golden"
24+
if hasExperimental {
25+
goldenFile = "plugin-usage-experimental.golden"
26+
}
27+
golden.Assert(t, usage, goldenFile)
2328

2429
// docker info should print app version and short description
2530
cmd.Command = dockerCli.Command("info")
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Usage: docker app COMMAND
3+
4+
Build and deploy Docker Application Packages.
5+
6+
Commands:
7+
bundle Create a CNAB invocation image and bundle.json for the application.
8+
completion Generates completion scripts for the specified shell (bash or zsh)
9+
init Start building a Docker application
10+
inspect Shows metadata, parameters and a summary of the compose file for a given application
11+
install Install an application
12+
merge Merge a multi-file application into a single file
13+
pull Pull an application from a registry
14+
push Push the application to a registry
15+
render Render the Compose file for the application
16+
split Split a single-file application into multiple files
17+
status Get the installation status. If the installation is a docker application, the status shows the stack services.
18+
uninstall Uninstall an application
19+
upgrade Upgrade an installed application
20+
validate Checks the rendered application is syntactically correct
21+
version Print version information
22+
23+
Run 'docker app COMMAND --help' for more information on a command.

0 commit comments

Comments
 (0)