Skip to content

Commit

Permalink
Run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Richardson committed Jan 9, 2019
1 parent 2f2a8cc commit fce3a10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions formats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

func TestWriteAwsCredentialFileIAMUser(t *testing.T) {
data := map[string]interface{}{
"access_key": "AKIAJIVWU52VCBFROFFA",
"secret_key": "oocha7Wahma3bahmaitoo8ufae6Yahzouphooy2p",
"access_key": "AKIAJIVWU52VCBFROFFA",
"secret_key": "oocha7Wahma3bahmaitoo8ufae6Yahzouphooy2p",
"security_token": nil,
}
expected := `[default]
Expand All @@ -24,7 +24,7 @@ func TestWriteAwsCredentialFileAssumedRole(t *testing.T) {
"access_key": "AKIAJIVWN52VCBFROAFA",
"secret_key": "oocha7Wahma3bahmaitoo8ufae6Yahzouphooy2p",
"security_token": "phe2lahD7oofoo8eibohpu1kuwohn0eir7wieH7E",
"session_token": "phe2lahD7oofoo8eibohpu1kuwohn0eir7wieH7E",
"session_token": "phe2lahD7oofoo8eibohpu1kuwohn0eir7wieH7E",
}

expected := `[default]
Expand All @@ -34,4 +34,4 @@ aws_security_token=phe2lahD7oofoo8eibohpu1kuwohn0eir7wieH7E
aws_session_token=phe2lahD7oofoo8eibohpu1kuwohn0eir7wieH7E
`
assert.Equal(t, expected, string(generateAwsCredentialFile(data)))
}
}

0 comments on commit fce3a10

Please sign in to comment.