@@ -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
7474func 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
153153func 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