Skip to content

Commit 95e8554

Browse files
committed
Restore removed asserts
1 parent aa4c048 commit 95e8554

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/integration/awsconfig_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,14 @@ func TestStartPromptsWhenAWSProfileMissingEverywhere(t *testing.T) {
7979
configContent, err := os.ReadFile(filepath.Join(tmpHome, ".aws", "config"))
8080
require.NoError(t, err, "~/.aws/config should have been created")
8181
assert.Contains(t, string(configContent), "[profile localstack]")
82+
assert.Contains(t, string(configContent), "endpoint_url")
8283

8384
credsContent, err := os.ReadFile(filepath.Join(tmpHome, ".aws", "credentials"))
8485
require.NoError(t, err, "~/.aws/credentials should have been created")
85-
assert.Contains(t, string(credsContent), "[localstack]")
86+
normalizedCreds := strings.Join(strings.Fields(string(credsContent)), " ")
87+
assert.Contains(t, normalizedCreds, "[localstack]")
88+
assert.Contains(t, normalizedCreds, "aws_access_key_id = test")
89+
assert.Contains(t, normalizedCreds, "aws_secret_access_key = test")
8690
}
8791

8892
func TestStartSkipsAWSProfilePromptWhenAlreadyConfigured(t *testing.T) {

0 commit comments

Comments
 (0)