Skip to content

Commit

Permalink
Make test readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Robinson committed Mar 4, 2019
1 parent a21f305 commit 4173f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iamy/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Actual: %#v`, nt.description, nt.input, nt.expected, result)
}

func TestNewPolicyDocumentFromJson(t *testing.T) {
_, err := NewPolicyDocumentFromJson("{\"Version\":\"2012-10-17\",\"Id\":\"AllowPublicRead\",\"Statement\":[{\"Sid\":\"PublicReadBucketObjects\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::example.com/*\",\"Condition\":{\"StringEquals\":{\"aws:Referer\":\"%zz\"}}}]}")
_, err := NewPolicyDocumentFromJson(`{"Version":"2012-10-17","Id":"AllowPublicRead","Statement":[{"Sid":"PublicReadBucketObjects","Effect":"Allow","Principal":"*","Action":"s3:GetObject","Resource":"arn:aws:s3:::example.com/*","Condition":{"StringEquals":{"aws:Referer":"%zz"}}}]}`)
if err != nil {
t.Errorf("Error decoding policy %s", err)
}
Expand Down

0 comments on commit 4173f04

Please sign in to comment.