Skip to content

Commit 52b5e2b

Browse files
committed
fix: add dummy credentials to tests
1 parent 18a5af9 commit 52b5e2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

services/route53/e2eTest/src/Route53UriTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package aws.sdk.kotlin.services.route53
22

3+
import aws.sdk.kotlin.runtime.auth.credentials.StaticCredentialsProvider
4+
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
35
import aws.smithy.kotlin.runtime.client.ProtocolRequestInterceptorContext
46
import aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor
57
import aws.smithy.kotlin.runtime.http.request.HttpRequest
@@ -23,6 +25,7 @@ class Route53UriTest {
2325
expectedUrl = "/0000-00-00/hostedzone/IDOFMYHOSTEDZONE/rrset",
2426
),
2527
)
28+
credentialsProvider = StaticCredentialsProvider(Credentials("AKID", "SECRETAK"))
2629
}.use { client ->
2730
client.listResourceRecordSets {
2831
hostedZoneId = "IDOFMYHOSTEDZONE"
@@ -43,6 +46,7 @@ class Route53UriTest {
4346
expectedUrl = "/0000-00-00/hostedzone/IDOFMYHOSTEDZONE/rrset",
4447
),
4548
)
49+
credentialsProvider = StaticCredentialsProvider(Credentials("AKID", "SECRETAK"))
4650
}.use { client ->
4751
client.listResourceRecordSets {
4852
hostedZoneId = "hostedzone/IDOFMYHOSTEDZONE"
@@ -63,6 +67,7 @@ class Route53UriTest {
6367
expectedUrl = "/0000-00-00/hostedzone/IDOFMYHOSTEDZONE/rrset",
6468
),
6569
)
70+
credentialsProvider = StaticCredentialsProvider(Credentials("AKID", "SECRETAK"))
6671
}.use { client ->
6772
client.listResourceRecordSets {
6873
hostedZoneId = "/hostedzone/IDOFMYHOSTEDZONE"
@@ -83,6 +88,7 @@ class Route53UriTest {
8388
expectedUrl = "/0000-00-00/hostedzone/IDOFMY%2FHOSTEDZONE/rrset",
8489
),
8590
)
91+
credentialsProvider = StaticCredentialsProvider(Credentials("AKID", "SECRETAK"))
8692
}.use { client ->
8793
client.listResourceRecordSets {
8894
hostedZoneId = "/hostedzone/IDOFMY/HOSTEDZONE"
@@ -103,6 +109,7 @@ class Route53UriTest {
103109
expectedUrl = "/0000-00-00/change/SOMECHANGEID",
104110
),
105111
)
112+
credentialsProvider = StaticCredentialsProvider(Credentials("AKID", "SECRETAK"))
106113
}.use { client ->
107114
client.getChange {
108115
id = "/change/SOMECHANGEID"
@@ -123,6 +130,7 @@ class Route53UriTest {
123130
expectedUrl = "/0000-00-00/delegationset/DELEGATIONSETID",
124131
),
125132
)
133+
credentialsProvider = StaticCredentialsProvider(Credentials("AKID", "SECRETAK"))
126134
}.use { client ->
127135
client.getReusableDelegationSet {
128136
id = "/delegationset/DELEGATIONSETID"

0 commit comments

Comments
 (0)