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

Commit 4822d4f

Browse files
Clean all the e2e tests using now appropriate description, domains and name/email.
Signed-off-by: Silvin Lubecki <[email protected]>
1 parent d5cf434 commit 4822d4f

28 files changed

+85
-93
lines changed

e2e/commands_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ name: app-test
109109
description: my cool app
110110
# List of application maintainers with name and email for each
111111
maintainers:
112-
- name: bob
112+
- name: dev1
113113
email:
114-
- name: joe
115-
email: joe@joe.com
114+
- name: dev2
115+
email: dev2@example.com
116116
`
117117
envData := "# some comment\nNGINX_DRY_RUN=-t"
118118
tmpDir := fs.NewDir(t, "app_input",
@@ -129,8 +129,8 @@ maintainers:
129129
"init", testAppName,
130130
"--compose-file", tmpDir.Join(internal.ComposeFileName),
131131
"--description", "my cool app",
132-
"--maintainer", "bob",
133-
"--maintainer", "joe:joe@joe.com")
132+
"--maintainer", "dev1",
133+
"--maintainer", "dev2:dev2@example.com")
134134
icmd.RunCmd(cmd).Assert(t, icmd.Success)
135135

136136
manifest := fs.Expected(
@@ -148,23 +148,23 @@ maintainers:
148148

149149
// test single-file init
150150
cmd.Command = dockerCli.Command("app",
151-
"init", "tac",
151+
"init", "myapp",
152152
"--compose-file", tmpDir.Join(internal.ComposeFileName),
153-
"--description", "my cool app",
154-
"--maintainer", "bob",
155-
"--maintainer", "joe:joe@joe.com",
153+
"--description", "some description",
154+
"--maintainer", "dev1",
155+
"--maintainer", "dev2:dev2@example.com",
156156
"--single-file",
157157
)
158158
icmd.RunCmd(cmd).Assert(t, icmd.Success)
159159

160-
appData, err := ioutil.ReadFile(tmpDir.Join("tac.dockerapp"))
160+
appData, err := ioutil.ReadFile(tmpDir.Join("myapp.dockerapp"))
161161
assert.NilError(t, err)
162162
golden.Assert(t, string(appData), "init-singlefile.dockerapp")
163163
// Check various commands work on single-file app package
164-
cmd.Command = dockerCli.Command("app", "inspect", "tac")
164+
cmd.Command = dockerCli.Command("app", "inspect", "myapp")
165165
icmd.RunCmd(cmd).Assert(t, icmd.Success)
166166

167-
cmd.Command = dockerCli.Command("app", "render", "tac")
167+
cmd.Command = dockerCli.Command("app", "render", "myapp")
168168
icmd.RunCmd(cmd).Assert(t, icmd.Success)
169169
}
170170

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
version: 0.1.0
22
name: myapp
3-
description: ""
43
maintainers:
5-
- name: bearclaw
6-
email: bearclaw@bearclaw.com
7-
- name: bob
8-
email: bob@bob.com
4+
- name: dev1
5+
email: dev1@example.com
6+
- name: dev2
7+
email: dev2@example.com

e2e/testdata/attachments.dockerapp/parameters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ tty: true
88
aport: 10000
99
sport: 11000
1010
dport: 12000
11-
memory: "100000000"
11+
memory: 1024M
1212
timeout: 10s

e2e/testdata/envvariables-inspect.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
myapp 0.1.0
22

3-
Maintained by: bearclaw <[email protected]>
3+
Maintained by: dev <[email protected]>
44

55
Service (1) Replicas Ports Image
66
----------- -------- ----- -----

e2e/testdata/expected-json-render.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"back": null,
2323
"front": {
2424
"aliases": [
25-
"corp.app.api.com",
26-
"coolapp.com"
25+
"api.example.com",
26+
"example.com"
2727
]
2828
}
2929
}

e2e/testdata/expected-yaml-render.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ services:
66
back: null
77
front:
88
aliases:
9-
- corp.app.api.com
10-
- coolapp.com
9+
- api.example.com
10+
- example.com
1111
db:
1212
image: postgres:9.3
1313
networks:

e2e/testdata/image-inspect-labels.golden

Lines changed: 0 additions & 1 deletion
This file was deleted.

e2e/testdata/init-singlefile.dockerapp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# Version of the application
33
version: 0.1.0
44
# Name of the application
5-
name: tac
5+
name: myapp
66
# A short description of the application
7-
description: my cool app
7+
description: some description
88
# List of application maintainers with name and email for each
99
maintainers:
10-
- name: bob
10+
- name: dev1
1111
email:
12-
- name: joe
13-
email: joe@joe.com
12+
- name: dev2
13+
email: dev2@example.com
1414

1515
---
1616
# This section contains the Compose file that describes your application services.

e2e/testdata/push-pull/push-pull.dockerapp/metadata.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ name: push-pull
33
description: "new fancy webapp with microservices"
44
maintainers:
55
- name: John Developer
6-
email: john.dev@acmecorp.cool
6+
email: john.dev@example.com
77
- name: Jane Developer
8-
email: jane.dev@acmecorp.cool
8+
email: jane.dev@example.com
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
web_port: '8082'
2-
api_host: coolapp.com
3-
static_subdir: data/static

0 commit comments

Comments
 (0)