Fix live server test (#142)
* Update travis ghc to 8.8.2 * Fix live server test
This commit is contained in:
parent
d2a78df4eb
commit
9739376227
@ -18,7 +18,7 @@ matrix:
|
|||||||
# Cabal
|
# Cabal
|
||||||
- ghc: 8.4.4
|
- ghc: 8.4.4
|
||||||
- ghc: 8.6.5
|
- ghc: 8.6.5
|
||||||
- ghc: 8.8.1
|
- ghc: 8.8.2
|
||||||
|
|
||||||
# Stack
|
# Stack
|
||||||
- ghc: 8.6.5
|
- ghc: 8.6.5
|
||||||
|
|||||||
@ -615,7 +615,7 @@ bucketPolicyFunTest = funTestWithBucket "Bucket Policy tests" $
|
|||||||
step "try a malformed policy, expect error"
|
step "try a malformed policy, expect error"
|
||||||
resE'' <- try $ setBucketPolicy bucket expectedPolicyJSON
|
resE'' <- try $ setBucketPolicy bucket expectedPolicyJSON
|
||||||
case resE'' of
|
case resE'' of
|
||||||
Left exn -> liftIO $ exn @?= ServiceErr "MalformedPolicy" "Policy has invalid resource."
|
Left exn -> liftIO $ exn @?= ServiceErr "MalformedPolicy" "bucket name does not match"
|
||||||
_ -> return ()
|
_ -> return ()
|
||||||
|
|
||||||
let expectedPolicyJSON' = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:GetBucketLocation\",\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"*\"]},\"Resource\":[\"arn:aws:s3:::" <> bucket <> "\"]},{\"Action\":[\"s3:GetObject\"],\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"*\"]},\"Resource\":[\"arn:aws:s3:::" <> bucket <> "/*\"]}]}"
|
let expectedPolicyJSON' = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Action\":[\"s3:GetBucketLocation\",\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"*\"]},\"Resource\":[\"arn:aws:s3:::" <> bucket <> "\"]},{\"Action\":[\"s3:GetObject\"],\"Effect\":\"Allow\",\"Principal\":{\"AWS\":[\"*\"]},\"Resource\":[\"arn:aws:s3:::" <> bucket <> "/*\"]}]}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user