@@ -65,15 +65,15 @@ func TestCreateContextDataByKeys(t *testing.T) {
65
65
assert .Equal (t , data .(store.EcsContext ).Profile , "default" )
66
66
67
67
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" )
69
69
70
70
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" )
72
72
}
73
73
74
74
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
77
77
78
78
defer os .Unsetenv ("AWS_CONFIG_FILE" ) // nolint:errcheck
79
79
defer os .Unsetenv ("AWS_SHARED_CREDENTIALS_FILE" ) // nolint:errcheck
@@ -144,15 +144,15 @@ func TestCreateContextDataByKeysInteractive(t *testing.T) {
144
144
assert .Equal (t , data .(store.EcsContext ).Profile , "default" )
145
145
146
146
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" )
148
148
149
149
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" )
151
151
}
152
152
153
153
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
156
156
157
157
defer os .Unsetenv ("AWS_CONFIG_FILE" ) // nolint:errcheck
158
158
defer os .Unsetenv ("AWS_SHARED_CREDENTIALS_FILE" ) // nolint:errcheck
0 commit comments