Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 906e434

Browse files
committed
Fix golden files usage
This follows https://github.com/docker/compose-cli/pull/1220/files Signed-off-by: Ulysses Souza <[email protected]>
1 parent 4fb2057 commit 906e434

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

ecs/context_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ func TestCreateContextDataByKeys(t *testing.T) {
6565
assert.Equal(t, data.(store.EcsContext).Profile, "default")
6666

6767
s := golden.Get(t, dir.Join("config"))
68-
golden.Assert(t, string(s), "context/by-keys/config.golden")
68+
golden.Assert(t, string(s), "context-by-keys-config.golden")
6969

7070
s = golden.Get(t, dir.Join("credentials"))
71-
golden.Assert(t, string(s), "context/by-keys/credentials.golden")
71+
golden.Assert(t, string(s), "context-by-keys-credentials.golden")
7272
}
7373

7474
func TestCreateContextDataFromProfile(t *testing.T) {
75-
os.Setenv("AWS_CONFIG_FILE", "testdata/context/by-profile/config.golden") // nolint:errcheck
76-
os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/context/by-profile/credentials.golden") // nolint:errcheck
75+
os.Setenv("AWS_CONFIG_FILE", "testdata/context-by-profile-config.golden") // nolint:errcheck
76+
os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/context-by-profile-credentials.golden") // nolint:errcheck
7777

7878
defer os.Unsetenv("AWS_CONFIG_FILE") // nolint:errcheck
7979
defer os.Unsetenv("AWS_SHARED_CREDENTIALS_FILE") // nolint:errcheck
@@ -144,15 +144,15 @@ func TestCreateContextDataByKeysInteractive(t *testing.T) {
144144
assert.Equal(t, data.(store.EcsContext).Profile, "default")
145145

146146
s := golden.Get(t, dir.Join("config"))
147-
golden.Assert(t, string(s), "context/by-keys/config.golden")
147+
golden.Assert(t, string(s), "context-by-keys-config.golden")
148148

149149
s = golden.Get(t, dir.Join("credentials"))
150-
golden.Assert(t, string(s), "context/by-keys/credentials.golden")
150+
golden.Assert(t, string(s), "context-by-keys-credentials.golden")
151151
}
152152

153153
func TestCreateContextDataByProfileInteractive(t *testing.T) {
154-
os.Setenv("AWS_CONFIG_FILE", "testdata/context/by-profile/config.golden") // nolint:errcheck
155-
os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/context/by-profile/credentials.golden") // nolint:errcheck
154+
os.Setenv("AWS_CONFIG_FILE", "testdata/context-by-profile-config.golden") // nolint:errcheck
155+
os.Setenv("AWS_SHARED_CREDENTIALS_FILE", "testdata/context-by-profile-credentials.golden") // nolint:errcheck
156156

157157
defer os.Unsetenv("AWS_CONFIG_FILE") // nolint:errcheck
158158
defer os.Unsetenv("AWS_SHARED_CREDENTIALS_FILE") // nolint:errcheck

0 commit comments

Comments
 (0)