-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws_api_tests.jl
27 lines (25 loc) · 981 Bytes
/
aws_api_tests.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@testitem "AWSConfig" begin
# access key is obscured when printing
@test repr(AWSConfig(;
region="a",
bucket_name="b",
access_key_id="c",
secret_access_key="d"
)) == "AWSConfig(region=\"a\", bucket_name=\"b\", access_key_id=*****, secret_access_key=*****, opts=ClientOptions())"
# session token is obscured when printing
@test repr(AWSConfig(;
region="a",
bucket_name="b",
access_key_id="c",
secret_access_key="d",
session_token="d"
)) == "AWSConfig(region=\"a\", bucket_name=\"b\", access_key_id=*****, secret_access_key=*****, session_token=*****, opts=ClientOptions())"
# host is supported
@test repr(AWSConfig(;
region="a",
bucket_name="b",
access_key_id="c",
secret_access_key="d",
host="d"
)) == "AWSConfig(region=\"a\", bucket_name=\"b\", access_key_id=*****, secret_access_key=*****, host=\"d\", opts=ClientOptions())"
end