Skip to content

Commit cb62380

Browse files
committed
@Ignore
1 parent c2afe51 commit cb62380

File tree

71 files changed

+639
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+639
-9
lines changed

runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import aws.smithy.kotlin.runtime.time.Instant
1010
import aws.smithy.kotlin.runtime.time.ManualClock
1111
import io.kotest.matchers.string.shouldContain
1212
import kotlinx.coroutines.test.runTest
13+
import kotlin.test.Ignore
1314
import kotlin.test.Test
1415
import kotlin.test.assertEquals
1516
import kotlin.test.assertFailsWith
@@ -36,6 +37,7 @@ class CachedCredentialsProviderTest {
3637
}
3738
}
3839

40+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
3941
@Test
4042
fun testLoadFirstCall() = runTest {
4143
// explicit expiration
@@ -50,6 +52,7 @@ class CachedCredentialsProviderTest {
5052
assertEquals(1, source.callCount)
5153
}
5254

55+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
5356
@Test
5457
fun testDefaultExpiration() = runTest {
5558
// expiration should come from the cached provider
@@ -62,6 +65,7 @@ class CachedCredentialsProviderTest {
6265
assertEquals(1, source.callCount)
6366
}
6467

68+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
6569
@Test
6670
fun testReloadExpiredCredentials() = runTest {
6771
val source = TestCredentialsProvider(expiration = testExpiration)
@@ -77,6 +81,7 @@ class CachedCredentialsProviderTest {
7781
assertEquals(2, source.callCount)
7882
}
7983

84+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
8085
@Test
8186
fun testRefreshBufferWindow() = runTest {
8287
val source = TestCredentialsProvider(expiration = testExpiration)
@@ -98,6 +103,7 @@ class CachedCredentialsProviderTest {
98103
assertEquals(2, source.callCount)
99104
}
100105

106+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
101107
@Test
102108
fun testLoadFailed() = runTest {
103109
val source = object : CredentialsProvider {
@@ -120,6 +126,7 @@ class CachedCredentialsProviderTest {
120126
provider.resolve()
121127
}
122128

129+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
123130
@Test
124131
fun testItThrowsOnGetCredentialsAfterClose() = runTest {
125132
val source = TestCredentialsProvider(expiration = testExpiration)
@@ -137,6 +144,7 @@ class CachedCredentialsProviderTest {
137144
assertEquals(1, source.callCount)
138145
}
139146

147+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
140148
@Test
141149
fun testCachedConvenienceFunction() = runTest {
142150
val source = TestCredentialsProvider(expiration = testExpiration)

runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ import aws.smithy.kotlin.runtime.http.request.url
1717
import aws.smithy.kotlin.runtime.net.url.Url
1818
import aws.smithy.kotlin.runtime.operation.ExecutionContext
1919
import kotlinx.coroutines.test.runTest
20+
import kotlin.test.Ignore
2021
import kotlin.test.Test
2122
import kotlin.test.assertEquals
2223
import kotlin.test.assertTrue
2324

2425
class PresignerTest {
2526
// Verify that custom endpoint URL schemes aren't changed.
2627
// See https://github.com/awslabs/aws-sdk-kotlin/issues/938
28+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
2729
@Test
2830
fun testSignedUrlAllowsHttp() = testSigningUrl("http://localhost:8080/path/to/resource?foo=bar")
2931

3032
// Verify that custom endpoint URL schemes aren't changed.
3133
// See https://github.com/awslabs/aws-sdk-kotlin/issues/938
3234
@Test
35+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
3336
fun testSignedUrlAllowsHttps() = testSigningUrl("https://localhost:8088/path/to/resource?bar=foo")
3437

3538
private fun testSigningUrl(url: String) = runTest {

runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ import aws.smithy.kotlin.runtime.net.Host
1212
import aws.smithy.kotlin.runtime.net.url.Url
1313
import aws.smithy.kotlin.runtime.time.Instant
1414
import kotlinx.coroutines.test.runTest
15+
import kotlin.test.Ignore
1516
import kotlin.test.Test
1617
import kotlin.test.assertContains
1718
import kotlin.test.assertEquals
1819

1920
class DefaultCanonicalizerTest {
2021
// Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html
22+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
2123
@Test
2224
fun testCanonicalize() = runTest {
2325
val request = HttpRequest {
@@ -78,6 +80,7 @@ class DefaultCanonicalizerTest {
7880
}
7981

8082
// Targeted test for proper URI path escaping. See https://github.com/smithy-lang/smithy-kotlin/issues/657
83+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
8184
@Test
8285
fun testEscapablePath() {
8386
val uri = Url.Builder()
@@ -94,6 +97,7 @@ class DefaultCanonicalizerTest {
9497
assertEquals("/2013-04-01/healthcheck/foo%253Cbar%253Ebaz%253C%252Fbar%253E", uri.canonicalPath(config))
9598
}
9699

100+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
97101
@Test
98102
fun testCanonicalPath() {
99103
val config = AwsSigningConfig {
@@ -109,6 +113,7 @@ class DefaultCanonicalizerTest {
109113
assertEquals("/foo/%40bar/baz%253Cqux%253Aquux", uri.canonicalPath(config))
110114
}
111115

116+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
112117
@Test
113118
fun testCanonicalQueryParams() {
114119
Url.Builder().apply {
@@ -123,6 +128,7 @@ class DefaultCanonicalizerTest {
123128
}
124129
}
125130

131+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
126132
@Test
127133
fun testUnsignedHeaders() = runTest {
128134
val request = HttpRequest {
@@ -155,6 +161,7 @@ class DefaultCanonicalizerTest {
155161
assertEquals(expectedSignedHeaders, actual.signedHeaders)
156162
}
157163

164+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
158165
@Test
159166
fun testCustomPort() = runTest {
160167
val request = HttpRequest {

runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ import aws.smithy.kotlin.runtime.http.HttpMethod
1111
import aws.smithy.kotlin.runtime.http.request.*
1212
import aws.smithy.kotlin.runtime.net.Host
1313
import aws.smithy.kotlin.runtime.time.Instant
14+
import kotlin.test.Ignore
1415
import kotlin.test.Test
1516
import kotlin.test.assertEquals
1617

1718
class DefaultRequestMutatorTest {
19+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
1820
@Test
1921
fun testAppendAuthHeader() {
2022
val canonical = CanonicalRequest(baseRequest.toBuilder(), "", "action;host;x-amz-date", "")

runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ import aws.smithy.kotlin.runtime.text.encoding.decodeHexBytes
1111
import aws.smithy.kotlin.runtime.text.encoding.encodeToHex
1212
import aws.smithy.kotlin.runtime.time.Instant
1313
import kotlinx.coroutines.test.runTest
14+
import kotlin.test.Ignore
1415
import kotlin.test.Test
1516
import kotlin.test.assertEquals
1617

1718
class DefaultSignatureCalculatorTest {
1819
// Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html
20+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
1921
@Test
2022
fun testCalculate() {
2123
val signingKey = "c4afb1cc5771d871763a393e44b703571b55cc28424d1a5e86da6ed3c154a4b9".decodeHexBytes()
@@ -32,6 +34,7 @@ class DefaultSignatureCalculatorTest {
3234
}
3335

3436
// Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html
37+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
3538
@Test
3639
fun testSigningKey() = runTest {
3740
val config = AwsSigningConfig {
@@ -47,6 +50,7 @@ class DefaultSignatureCalculatorTest {
4750
}
4851

4952
// Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html
53+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
5054
@Test
5155
fun testStringToSign() {
5256
val canonicalRequest = """
@@ -80,6 +84,7 @@ class DefaultSignatureCalculatorTest {
8084

8185
private data class ChunkStringToSignTest(val signatureType: AwsSignatureType, val expectedNonSignatureHeaderHash: String)
8286

87+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
8388
@Test
8489
fun testChunkStringToSign() {
8590
// Test event stream signing

runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import kotlin.test.*
1717
import kotlin.time.Duration.Companion.milliseconds
1818

1919
abstract class AwsChunkedByteReadChannelTestBase : AwsChunkedTestBase(AwsChunkedReaderFactory.Channel) {
20+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
2021
@Test
2122
fun testSlowProducerMultipleChunksPartialLast(): TestResult = runTest {
2223
val numChunks = 6

runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ abstract class AwsChunkedTestBase(
171171
return length
172172
}
173173

174+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
174175
@Test
175176
fun testReadNegativeOffset(): TestResult = runTest {
176177
val dataLengthBytes = CHUNK_SIZE_BYTES
@@ -184,6 +185,7 @@ abstract class AwsChunkedTestBase(
184185
}
185186
}
186187

188+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
187189
@Test
188190
fun testReadExactBytes(): TestResult = runTest {
189191
val dataLengthBytes = CHUNK_SIZE_BYTES
@@ -217,6 +219,7 @@ abstract class AwsChunkedTestBase(
217219
assertTrue(awsChunked.isClosedForRead())
218220
}
219221

222+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
220223
@Test
221224
fun testReadExcessiveBytes(): TestResult = runTest {
222225
val dataLengthBytes = CHUNK_SIZE_BYTES
@@ -246,6 +249,7 @@ abstract class AwsChunkedTestBase(
246249
assertTrue(awsChunked.isClosedForRead())
247250
}
248251

252+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
249253
@Test
250254
fun testReadFewerBytes(): TestResult = runTest {
251255
val dataLengthBytes = CHUNK_SIZE_BYTES
@@ -272,6 +276,7 @@ abstract class AwsChunkedTestBase(
272276
assertFalse(awsChunked.isClosedForRead())
273277
}
274278

279+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
275280
@Test
276281
fun testReadMultipleFullChunks(): TestResult = runTest {
277282
val numChunks = 5
@@ -319,6 +324,7 @@ abstract class AwsChunkedTestBase(
319324
assertTrue(awsChunked.isClosedForRead())
320325
}
321326

327+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
322328
@Test
323329
fun testReadMultipleChunksLastChunkNotFull(): TestResult = runTest {
324330
val numChunks = 6
@@ -384,6 +390,7 @@ abstract class AwsChunkedTestBase(
384390
assertEquals(0, chunkSizes.last())
385391
}
386392

393+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
387394
@Test
388395
fun testReadWithTrailingHeaders(): TestResult = runTest {
389396
val dataLengthBytes = CHUNK_SIZE_BYTES
@@ -434,6 +441,7 @@ abstract class AwsChunkedTestBase(
434441
assertEquals(expectedTrailerSignature.decodeToString(), trailerSignature)
435442
}
436443

444+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
437445
@Test
438446
fun testUnsignedChunk(): TestResult = runTest {
439447
val dataLengthBytes = CHUNK_SIZE_BYTES
@@ -465,6 +473,7 @@ abstract class AwsChunkedTestBase(
465473
assertEquals(chunkSizes[1], 0)
466474
}
467475

476+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
468477
@Test
469478
fun testUnsignedChunkWithTrailingHeaders(): TestResult = runTest {
470479
val dataLengthBytes = CHUNK_SIZE_BYTES

runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import aws.smithy.kotlin.runtime.net.url.Url
1818
import aws.smithy.kotlin.runtime.time.Instant
1919
import kotlinx.coroutines.test.TestResult
2020
import kotlinx.coroutines.test.runTest
21+
import kotlin.test.Ignore
2122
import kotlin.test.Test
2223
import kotlin.test.assertEquals
2324
import kotlin.test.assertFalse
@@ -55,6 +56,7 @@ public abstract class BasicSigningTestBase : HasSigner {
5556
credentials = DEFAULT_TEST_CREDENTIALS
5657
}
5758

59+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
5860
@Test
5961
public fun testSignRequestSigV4(): TestResult = runTest {
6062
// sanity test
@@ -83,6 +85,7 @@ public abstract class BasicSigningTestBase : HasSigner {
8385
assertEquals(expectedSig, result.signature.decodeToString())
8486
}
8587

88+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
8689
@Test
8790
public open fun testSignRequestSigV4Asymmetric(): TestResult = runTest {
8891
// sanity test
@@ -165,6 +168,7 @@ public abstract class BasicSigningTestBase : HasSigner {
165168
return chunk
166169
}
167170

171+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
168172
@Test
169173
public fun testSignChunks(): TestResult = runTest {
170174
val request = createChunkedTestRequest()
@@ -188,6 +192,7 @@ public abstract class BasicSigningTestBase : HasSigner {
188192
assertEquals(EXPECTED_FINAL_CHUNK_SIGNATURE, finalChunkResult.signature.decodeToString())
189193
}
190194

195+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
191196
@Test
192197
public fun testSigningCopiesInput(): TestResult = runTest {
193198
// sanity test the signer doesn't mutate the input and instead copies to a new request

runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import aws.smithy.kotlin.runtime.operation.ExecutionContext
2626
import aws.smithy.kotlin.runtime.time.Instant
2727
import kotlinx.coroutines.test.TestResult
2828
import kotlinx.coroutines.test.runTest
29+
import kotlin.test.Ignore
2930
import kotlin.test.Test
3031
import kotlin.test.assertEquals
3132

@@ -105,6 +106,7 @@ public abstract class AwsHttpSignerTestBase(
105106
return operation.context[HttpOperationContext.HttpCallList].last().request
106107
}
107108

109+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
108110
@Test
109111
public fun testSignRequest(): TestResult = runTest {
110112
val op = buildOperation()
@@ -118,6 +120,7 @@ public abstract class AwsHttpSignerTestBase(
118120
assertEquals(expectedSig, signed.headers["Authorization"])
119121
}
120122

123+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
121124
@Test
122125
public fun testUnsignedRequest(): TestResult = runTest {
123126
val op = buildOperation(unsigned = true)
@@ -131,6 +134,7 @@ public abstract class AwsHttpSignerTestBase(
131134
assertEquals(expectedSig, signed.headers["Authorization"])
132135
}
133136

137+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
134138
@Test
135139
public fun testSignReplayableStreamingRequest(): TestResult = runTest {
136140
val op = buildOperation(streaming = true)
@@ -144,6 +148,7 @@ public abstract class AwsHttpSignerTestBase(
144148
assertEquals(expectedSig, signed.headers["Authorization"])
145149
}
146150

151+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
147152
@Test
148153
public fun testSignAwsChunkedStreamNonReplayable(): TestResult = runTest {
149154
val op = buildOperation(streaming = true, replayable = false, requestBody = "a".repeat(AWS_CHUNKED_THRESHOLD + 1))
@@ -157,6 +162,7 @@ public abstract class AwsHttpSignerTestBase(
157162
assertEquals(expectedSig, signed.headers["Authorization"])
158163
}
159164

165+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
160166
@Test
161167
public fun testSignAwsChunkedStreamReplayable(): TestResult = runTest {
162168
val op = buildOperation(streaming = true, replayable = true, requestBody = "a".repeat(AWS_CHUNKED_THRESHOLD + 1))
@@ -170,6 +176,7 @@ public abstract class AwsHttpSignerTestBase(
170176
assertEquals(expectedSig, signed.headers["Authorization"])
171177
}
172178

179+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
173180
@Test
174181
public fun testSignOneShotStream(): TestResult = runTest {
175182
val op = buildOperation(streaming = true, replayable = false)

runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SdkSourceBodyStreamTest {
2222
return MutableBuffer.of(dest) to dest
2323
}
2424

25-
@Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1
25+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
2626
@Test
2727
fun testReadFully() = runTest {
2828
val data = byteArrayOf(1, 2, 3, 4, 5)
@@ -37,7 +37,7 @@ class SdkSourceBodyStreamTest {
3737
}
3838
}
3939

40-
@Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1
40+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
4141
@Test
4242
fun testPartialRead() = runTest {
4343
val source = "123456".encodeToByteArray().source()
@@ -55,7 +55,7 @@ class SdkSourceBodyStreamTest {
5555
assertEquals("456", sent2.decodeToString())
5656
}
5757

58-
@Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1
58+
@Ignore // FIXME Re-enable after Kotlin/Native implementation
5959
@Test
6060
fun testLargeTransfer() = runTest {
6161
val data = "foobar"

0 commit comments

Comments
 (0)