Fix S3 spec (#10893)

Fixes the issue with the S3 test on CI:
```
- [FAILED] should fail to write a file if permissions are lacking [1108ms]
Reason: The value (S3 Error: User: arn:aws:iam::539646847106:user/enso_ci_s3_tester is not authorized to perform: s3:PutObject on resource: "arn:aws:s3:::enso-data-samples/examples/no-write-permissions-here.txt.bak" because no identity-based policy allows the s3:PutObject action (AccessDenied)) did not contain the element (Access Denied) (at /runner/_work/enso/enso/test/AWS_Tests/src/S3_Spec.enso:488:13-68).
```
This commit is contained in:
Dmitry Bushev 2024-08-26 20:51:50 +03:00 committed by GitHub
parent e9d3f59a91
commit 4d286e02b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -485,7 +485,7 @@ add_specs suite_builder =
new_file = S3_File.new "s3://"+bucket_name+"/examples/no-write-permissions-here.txt" credentials=test_credentials new_file = S3_File.new "s3://"+bucket_name+"/examples/no-write-permissions-here.txt" credentials=test_credentials
r = "Hello".write new_file r = "Hello".write new_file
r.should_fail_with S3_Error r.should_fail_with S3_Error
r.catch.to_display_text . should_contain "Access Denied" r.catch.to_display_text . should_contain "AccessDenied"
group_builder.specify "should fail to open an output stream if Output context is not enabled" <| group_builder.specify "should fail to open an output stream if Output context is not enabled" <|
Context.Output.with_disabled <| Context.Output.with_disabled <|