Skip to content

Commit 5dd3ebd

Browse files
committed
disable various K/N tests
1 parent e4db702 commit 5dd3ebd

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials/EcsCredentialsProviderTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import aws.sdk.kotlin.runtime.auth.credentials.internal.credentials
99
import aws.sdk.kotlin.runtime.config.AwsSdkSetting
1010
import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.AwsBusinessMetric
1111
import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.withBusinessMetric
12+
import aws.smithy.kotlin.runtime.IgnoreNative
1213
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
1314
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderException
1415
import aws.smithy.kotlin.runtime.http.Headers
@@ -143,6 +144,7 @@ class EcsCredentialsProviderTest {
143144
engine.assertRequests()
144145
}
145146

147+
@IgnoreNative
146148
@Test
147149
fun testNonLocalFullUri() = runTest {
148150
val uri = "http://amazonaws.com/full"

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials/LoginCredentialsProviderTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package aws.sdk.kotlin.runtime.auth.credentials
88
import aws.sdk.kotlin.runtime.auth.credentials.internal.credentials
99
import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.AwsBusinessMetric
1010
import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.withBusinessMetric
11+
import aws.smithy.kotlin.runtime.IgnoreNative
1112
import aws.smithy.kotlin.runtime.http.Headers
1213
import aws.smithy.kotlin.runtime.http.HttpBody
1314
import aws.smithy.kotlin.runtime.http.HttpStatusCode
@@ -27,14 +28,15 @@ import kotlin.time.Duration.Companion.minutes
2728
import kotlin.to
2829

2930
class LoginCredentialsProviderTest {
30-
31+
@IgnoreNative
3132
@Test
3233
fun testCacheFilename() {
3334
val expected = "36db1d138ff460920374e4c3d8e01f53f9f73537e89c88d639f68393df0e2726.json"
3435
val actual = getLoginCacheFilename("arn:aws:iam::0123456789012:user/Admin")
3536
assertEquals(expected, actual)
3637
}
3738

39+
@IgnoreNative
3840
@Test
3941
fun testExpiredToken() = runTest(
4042
// TODO: Figure out why this test takes so long to run on some developer machines (@aoperez)
@@ -82,6 +84,7 @@ class LoginCredentialsProviderTest {
8284
}.message.shouldMatch(Regex("Login token for login-session: .* is expired"))
8385
}
8486

87+
@IgnoreNative
8588
@Test
8689
fun testSuccess() = runTest {
8790
val expectedExpiration = Instant.fromIso8601("2020-10-16T04:56:00Z")

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials/LoginTokenProviderTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package aws.sdk.kotlin.runtime.auth.credentials
77

88
import aws.sdk.kotlin.runtime.client.AwsClientOption
9+
import aws.smithy.kotlin.runtime.IgnoreNative
910
import aws.smithy.kotlin.runtime.http.Headers
1011
import aws.smithy.kotlin.runtime.http.HttpBody
1112
import aws.smithy.kotlin.runtime.http.HttpStatusCode
@@ -95,6 +96,7 @@ class LoginTokenProviderTest {
9596
data class Error(val message: String) : TestOutcome()
9697
}
9798

99+
@IgnoreNative
98100
@Test
99101
fun testLoginTokenCacheBehavior() = runTest(timeout = 2.minutes) {
100102
val testList = Json.parseToJsonElement(LOGIN_TOKEN_PROVIDER_TEST_SUITE).jsonArray

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProviderTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import aws.sdk.kotlin.runtime.client.AwsClientOption
1010
import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.AwsBusinessMetric
1111
import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.withBusinessMetric
1212
import aws.sdk.kotlin.runtime.util.testAttributes
13+
import aws.smithy.kotlin.runtime.IgnoreNative
1314
import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
1415
import aws.smithy.kotlin.runtime.auth.awscredentials.copy
1516
import aws.smithy.kotlin.runtime.collections.attributesOf
@@ -106,6 +107,7 @@ class ProfileCredentialsProviderTest {
106107
assertEquals(expected, actual)
107108
}
108109

110+
@IgnoreNative
109111
@Test
110112
fun testBasicAssumeRole() = runTest {
111113
// smoke test for assume role, more involved scenarios are tested through the default chain
@@ -275,6 +277,7 @@ class ProfileCredentialsProviderTest {
275277
assertEquals(Host.Domain("sts.us-west-2.amazonaws.com"), requests.actual.url.host)
276278
}
277279

280+
@IgnoreNative
278281
@Test
279282
fun testPlatformRegion() = runTest {
280283
val testArn = "arn:aws:iam::1234567:role/test-role"
@@ -335,6 +338,7 @@ class ProfileCredentialsProviderTest {
335338
assertEquals(expected, actual)
336339
}
337340

341+
@IgnoreNative
338342
@Test
339343
fun assumeRoleWithNamedProviderBusinessMetrics() = runTest {
340344
val testArn = "arn:aws:iam::1234567:role/test-role"

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/region/DefaultRegionProviderChainTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package aws.sdk.kotlin.runtime.region
77

88
import aws.sdk.kotlin.runtime.util.TestInstanceMetadataProvider
9+
import aws.smithy.kotlin.runtime.IgnoreNative
910
import aws.smithy.kotlin.runtime.util.TestPlatformProvider
1011
import kotlinx.coroutines.test.runTest
1112
import kotlinx.serialization.json.*
@@ -21,6 +22,7 @@ class DefaultRegionProviderChainTest {
2122
val targets: List<String> = emptyList(),
2223
)
2324

25+
@IgnoreNative
2426
@Test
2527
fun testSuite() = runTest {
2628
val tests = Json.parseToJsonElement(REGION_PROVIDER_CHAIN_TEST_SUITE).jsonArray

0 commit comments

Comments
 (0)