From a4734c7551694dd90a71aa5d1e4818ec9ae7b47f Mon Sep 17 00:00:00 2001 From: 0marperez <60363173+0marperez@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:30:46 -0500 Subject: [PATCH 01/33] fix: create JMESPATH flattenIfPossible functions for Lists (#1169) --- .../smithy/kotlin/runtime/util/JMESPath.kt | 10 ++++ .../kotlin/runtime/util/JmesPathTest.kt | 49 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/JmesPathTest.kt diff --git a/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/util/JMESPath.kt b/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/util/JMESPath.kt index 2a7cdd9791..9b691a79a2 100644 --- a/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/util/JMESPath.kt +++ b/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/util/JMESPath.kt @@ -66,6 +66,7 @@ public fun Any?.type(): String = when (this) { else -> throw Exception("Undetected type for: $this") } +// Collection `flattenIfPossible` functions @InternalApi @JvmName("noOpUnnestedCollection") public inline fun Collection.flattenIfPossible(): Collection = this @@ -73,3 +74,12 @@ public inline fun Collection.flattenIfPossible(): Collection = @InternalApi @JvmName("flattenNestedCollection") public inline fun Collection>.flattenIfPossible(): Collection = flatten() + +// List `flattenIfPossible` functions +@InternalApi +@JvmName("noOpUnnestedCollection") +public inline fun List.flattenIfPossible(): List = this + +@InternalApi +@JvmName("flattenNestedCollection") +public inline fun List>.flattenIfPossible(): List = flatten() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/JmesPathTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/JmesPathTest.kt new file mode 100644 index 0000000000..e867f1e8a1 --- /dev/null +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/JmesPathTest.kt @@ -0,0 +1,49 @@ +package aws.smithy.kotlin.runtime.util + +import kotlin.test.Test +import kotlin.test.assertEquals +import kotlin.test.assertTrue + +class JmesPathTest { + @Test + fun flattenNestedLists() { + val nestedList = listOf( + listOf(1, 2, 3), + listOf(4, 5), + listOf(6), + ) + val flattenedList = nestedList.flattenIfPossible() + assertEquals(listOf(1, 2, 3, 4, 5, 6), flattenedList) + } + + @Test + fun flattenEmptyNestedLists() { + val nestedList = listOf( + listOf(), + listOf(), + listOf(), + ) + val flattenedList = nestedList.flattenIfPossible() + assertTrue(flattenedList.isEmpty()) + } + + @Test + fun flattenNestedEmptyAndNonEmptyNestedLists() { + val nestedList = listOf( + listOf(1, 2), + listOf(), + listOf(3, 4, 5), + ) + val flattenedList = nestedList.flattenIfPossible() + assertEquals(listOf(1, 2, 3, 4, 5), flattenedList) + } + + @Test + fun flattenList() { + val nestedList = listOf( + listOf(1, 2, 3), + ) + val flattenedList = nestedList.flattenIfPossible() + assertEquals(listOf(1, 2, 3), flattenedList) + } +} From 7911a94dd5f6ee27f2652aeb7c8031e2dce79215 Mon Sep 17 00:00:00 2001 From: aws-sdk-kotlin-ci Date: Mon, 16 Dec 2024 16:51:49 +0000 Subject: [PATCH 02/33] chore: release 1.3.30 --- CHANGELOG.md | 2 ++ gradle.properties | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 892e2b1248..5633a30d73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [1.3.30] - 12/16/2024 + ## [1.3.29] - 12/12/2024 ## [1.3.28] - 12/03/2024 diff --git a/gradle.properties b/gradle.properties index f35cfc1d5a..377ff6666b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G # SDK -sdkVersion=1.3.30-SNAPSHOT +sdkVersion=1.3.30 # codegen -codegenVersion=0.33.30-SNAPSHOT \ No newline at end of file +codegenVersion=0.33.30 \ No newline at end of file From 7085c8ab0d4b34d3ddb77bbb31a2fd41c47c288c Mon Sep 17 00:00:00 2001 From: aws-sdk-kotlin-ci Date: Mon, 16 Dec 2024 16:51:50 +0000 Subject: [PATCH 03/33] chore: bump snapshot version to 1.3.31-SNAPSHOT --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 377ff6666b..3628520e5a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G # SDK -sdkVersion=1.3.30 +sdkVersion=1.3.31-SNAPSHOT # codegen -codegenVersion=0.33.30 \ No newline at end of file +codegenVersion=0.33.31-SNAPSHOT \ No newline at end of file From 45750232626bbe4e279142e486be8bbbfccab33f Mon Sep 17 00:00:00 2001 From: Matas Date: Wed, 18 Dec 2024 14:20:08 -0500 Subject: [PATCH 04/33] misc: enhance support for replayable instances of `InputStream` (#1197) --- .../2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json | 8 ++++++ .../kotlin/runtime/content/ByteStreamJVM.kt | 23 +++++++++++++-- .../runtime/content/ByteStreamJVMTest.kt | 28 +++++++++++++++++++ 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json diff --git a/.changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json b/.changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json new file mode 100644 index 0000000000..fb16fa5843 --- /dev/null +++ b/.changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json @@ -0,0 +1,8 @@ +{ + "id": "2de8162f-e5a0-4618-b00d-8da3cfdbc6a2", + "type": "feature", + "description": "Enhance support for replayable instances of `InputStream`", + "issues": [ + "https://github.com/awslabs/aws-sdk-kotlin/issues/1473" + ] +} \ No newline at end of file diff --git a/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/content/ByteStreamJVM.kt b/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/content/ByteStreamJVM.kt index 1d6124357a..5647ac15af 100644 --- a/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/content/ByteStreamJVM.kt +++ b/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/content/ByteStreamJVM.kt @@ -114,11 +114,30 @@ public fun ByteStream.Companion.fromInputStream( * @param contentLength If specified, indicates how many bytes remain in this stream. Defaults to `null`. */ public fun InputStream.asByteStream(contentLength: Long? = null): ByteStream.SourceStream { - val source = source() + if (markSupported() && contentLength != null) { + mark(contentLength.toInt()) + } + return object : ByteStream.SourceStream() { override val contentLength: Long? = contentLength override val isOneShot: Boolean = !markSupported() - override fun readFrom(): SdkSource = source + override fun readFrom(): SdkSource { + if (markSupported() && contentLength != null) { + reset() + mark(contentLength.toInt()) + return object : SdkSource by source() { + /* + * This is a no-op close to prevent body hashing from closing the underlying InputStream, which causes + * `IOException: Stream closed` on subsequent reads. Consider making [ByteStream.ChannelStream]/[ByteStream.SourceStream] + * (or possibly even [ByteStream] itself) implement [Closeable] to better handle closing streams. + * This should allow us to clean up our usage of [ByteStream.cancel()]. + */ + override fun close() { } + } + } + + return source() + } } } diff --git a/runtime/runtime-core/jvm/test/aws/smithy/kotlin/runtime/content/ByteStreamJVMTest.kt b/runtime/runtime-core/jvm/test/aws/smithy/kotlin/runtime/content/ByteStreamJVMTest.kt index 054387b2e5..e8324fb11f 100644 --- a/runtime/runtime-core/jvm/test/aws/smithy/kotlin/runtime/content/ByteStreamJVMTest.kt +++ b/runtime/runtime-core/jvm/test/aws/smithy/kotlin/runtime/content/ByteStreamJVMTest.kt @@ -5,8 +5,11 @@ package aws.smithy.kotlin.runtime.content +import aws.smithy.kotlin.runtime.io.readToByteArray import aws.smithy.kotlin.runtime.testing.RandomTempFile import kotlinx.coroutines.test.runTest +import java.io.BufferedInputStream +import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream import java.io.InputStream import java.io.OutputStream @@ -228,6 +231,31 @@ class ByteStreamJVMTest { assertFalse(sos.closed) } + // https://github.com/awslabs/aws-sdk-kotlin/issues/1473 + @Test + fun testReplayableInputStreamAsByteStream() = runTest { + val content = "Hello, Bytes!".encodeToByteArray() + val byteArrayIns = ByteArrayInputStream(content) + val nonReplayableIns = NonReplayableInputStream(byteArrayIns) + + // buffer the non-replayable stream, making it replayable... + val bufferedIns = BufferedInputStream(nonReplayableIns) + + val byteStream = bufferedIns.asByteStream(content.size.toLong()) + + // Test that it can be read at least twice (e.g. once for hashing the body, once for transmitting the body) + assertContentEquals(content, byteStream.readFrom().use { it.readToByteArray() }) + assertContentEquals(content, byteStream.readFrom().use { it.readToByteArray() }) + } + + private class NonReplayableInputStream(val inputStream: InputStream) : InputStream() { + override fun markSupported(): Boolean = false // not replayable + + override fun read(): Int = inputStream.read() + override fun mark(readlimit: Int) = inputStream.mark(readlimit) + override fun reset() = inputStream.reset() + } + private class StatusTrackingOutputStream(val os: OutputStream) : OutputStream() { var closed: Boolean = false From b0a4bacc3626bf2c9e8cfe9607ef8d5ece03ee4e Mon Sep 17 00:00:00 2001 From: aws-sdk-kotlin-ci Date: Wed, 18 Dec 2024 19:23:06 +0000 Subject: [PATCH 05/33] chore: release 1.3.31 --- .changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json | 8 -------- CHANGELOG.md | 5 +++++ gradle.properties | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 .changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json diff --git a/.changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json b/.changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json deleted file mode 100644 index fb16fa5843..0000000000 --- a/.changes/2de8162f-e5a0-4618-b00d-8da3cfdbc6a2.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "id": "2de8162f-e5a0-4618-b00d-8da3cfdbc6a2", - "type": "feature", - "description": "Enhance support for replayable instances of `InputStream`", - "issues": [ - "https://github.com/awslabs/aws-sdk-kotlin/issues/1473" - ] -} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5633a30d73..5473a56d69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [1.3.31] - 12/18/2024 + +### Features +* [#1473](https://github.com/awslabs/aws-sdk-kotlin/issues/1473) Enhance support for replayable instances of `InputStream` + ## [1.3.30] - 12/16/2024 ## [1.3.29] - 12/12/2024 diff --git a/gradle.properties b/gradle.properties index 3628520e5a..cf967edd0b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G # SDK -sdkVersion=1.3.31-SNAPSHOT +sdkVersion=1.3.31 # codegen -codegenVersion=0.33.31-SNAPSHOT \ No newline at end of file +codegenVersion=0.33.31 \ No newline at end of file From 80f453814d8b0c4e20ef7e729d47a364ca8b5753 Mon Sep 17 00:00:00 2001 From: aws-sdk-kotlin-ci Date: Wed, 18 Dec 2024 19:23:08 +0000 Subject: [PATCH 06/33] chore: bump snapshot version to 1.3.32-SNAPSHOT --- gradle.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index cf967edd0b..f902a36719 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G # SDK -sdkVersion=1.3.31 +sdkVersion=1.3.32-SNAPSHOT # codegen -codegenVersion=0.33.31 \ No newline at end of file +codegenVersion=0.33.32-SNAPSHOT \ No newline at end of file From e9d16a98b8030468e35a05f63c79cae2444e6759 Mon Sep 17 00:00:00 2001 From: Matas Date: Wed, 18 Dec 2024 16:28:30 -0500 Subject: [PATCH 07/33] fix: CBOR protocol test assertions / blob serialization (#1198) --- .changes/1021e75a-45f3-4f3a-820c-700d9ec6e782.json | 5 +++++ .../protocol/HttpProtocolUnitTestRequestGenerator.kt | 4 ++-- .../codegen/rendering/serde/SerializeStructGenerator.kt | 1 - .../codegen/rendering/serde/SerializeStructGeneratorTest.kt | 2 +- .../src/aws/smithy/kotlin/runtime/serde/xml/XmlSerializer.kt | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .changes/1021e75a-45f3-4f3a-820c-700d9ec6e782.json diff --git a/.changes/1021e75a-45f3-4f3a-820c-700d9ec6e782.json b/.changes/1021e75a-45f3-4f3a-820c-700d9ec6e782.json new file mode 100644 index 0000000000..0fad5e0349 --- /dev/null +++ b/.changes/1021e75a-45f3-4f3a-820c-700d9ec6e782.json @@ -0,0 +1,5 @@ +{ + "id": "1021e75a-45f3-4f3a-820c-700d9ec6e782", + "type": "bugfix", + "description": "Fix serialization of CBOR blobs" +} \ No newline at end of file diff --git a/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpProtocolUnitTestRequestGenerator.kt b/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpProtocolUnitTestRequestGenerator.kt index 74bd7db782..6fcc47c3e5 100644 --- a/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpProtocolUnitTestRequestGenerator.kt +++ b/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpProtocolUnitTestRequestGenerator.kt @@ -117,11 +117,11 @@ open class HttpProtocolUnitTestRequestGenerator protected constructor(builder: B write("return") } write("requireNotNull(expectedBytes) { #S }", "expected application/cbor body cannot be null") - write("requireNotNull(expectedBytes) { #S }", "actual application/cbor body cannot be null") + write("requireNotNull(actualBytes) { #S }", "actual application/cbor body cannot be null") write("") write("val expectedRequest = #L(#T(expectedBytes))", inputDeserializer.name, RuntimeTypes.Serde.SerdeCbor.CborDeserializer) - write("val actualRequest = #L(#T(expectedBytes))", inputDeserializer.name, RuntimeTypes.Serde.SerdeCbor.CborDeserializer) + write("val actualRequest = #L(#T(actualBytes))", inputDeserializer.name, RuntimeTypes.Serde.SerdeCbor.CborDeserializer) write("assertEquals(expectedRequest, actualRequest)") } writer.write("") diff --git a/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGenerator.kt b/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGenerator.kt index e7f2e261ef..d8810044a5 100644 --- a/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGenerator.kt +++ b/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGenerator.kt @@ -647,7 +647,6 @@ open class SerializeStructGenerator( val target = member.targetOrSelf(ctx.model) val encoded = when { - target.type == ShapeType.BLOB -> writer.format("#L.#T()", identifier, RuntimeTypes.Core.Text.Encoding.encodeBase64String) target.type == ShapeType.TIMESTAMP -> { writer.addImport(RuntimeTypes.Core.TimestampFormat) val tsFormat = member diff --git a/codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGeneratorTest.kt b/codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGeneratorTest.kt index 40d9c9db7d..347da007cb 100644 --- a/codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGeneratorTest.kt +++ b/codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGeneratorTest.kt @@ -1822,7 +1822,7 @@ class SerializeStructGeneratorTest { val expected = """ serializer.serializeStruct(OBJ_DESCRIPTOR) { - input.fooBlob?.let { field(FOOBLOB_DESCRIPTOR, it.encodeBase64String()) } + input.fooBlob?.let { field(FOOBLOB_DESCRIPTOR, it) } } """.trimIndent() diff --git a/runtime/serde/serde-xml/common/src/aws/smithy/kotlin/runtime/serde/xml/XmlSerializer.kt b/runtime/serde/serde-xml/common/src/aws/smithy/kotlin/runtime/serde/xml/XmlSerializer.kt index 35618cb49e..d1356f848c 100644 --- a/runtime/serde/serde-xml/common/src/aws/smithy/kotlin/runtime/serde/xml/XmlSerializer.kt +++ b/runtime/serde/serde-xml/common/src/aws/smithy/kotlin/runtime/serde/xml/XmlSerializer.kt @@ -134,7 +134,7 @@ public class XmlSerializer(private val xmlWriter: XmlStreamWriter = xmlStreamWri field(descriptor, value.format(format)) override fun field(descriptor: SdkFieldDescriptor, value: ByteArray): Unit = - field(descriptor, value) + field(descriptor, value.encodeBase64String()) override fun field(descriptor: SdkFieldDescriptor, value: Document?): Unit = throw SerializationException( "cannot serialize field ${descriptor.serialName}; Document type is not supported by xml encoding", From ce50237a86f7acd74703c9b186caae2d3fed0657 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 20 Dec 2024 16:37:48 -0500 Subject: [PATCH 08/33] Show me the failing tests From c2afe5134597c566d77e73752e8f166c312f9649 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 20 Dec 2024 16:44:46 -0500 Subject: [PATCH 09/33] Ignore failing tests --- .../smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt | 6 ++++++ .../smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt index eb0acf777e..86db3c4eae 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt @@ -14,6 +14,7 @@ import kotlinx.coroutines.Job import kotlinx.coroutines.launch import kotlinx.coroutines.test.runTest import kotlinx.coroutines.yield +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith @@ -26,6 +27,7 @@ class ReadChannelBodyStreamTest { return MutableBuffer.of(dest) to dest } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testClose() = runTest { val chan = SdkByteChannel() @@ -42,6 +44,7 @@ class ReadChannelBodyStreamTest { assertTrue(stream.sendRequestBody(sendBuffer)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testCancellation() = runTest { val chan = SdkByteChannel() @@ -56,6 +59,7 @@ class ReadChannelBodyStreamTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.NotImplementedError at null:-1 @Test fun testReadFully() = runTest { val data = byteArrayOf(1, 2, 3, 4, 5) @@ -71,6 +75,7 @@ class ReadChannelBodyStreamTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.NotImplementedError at null:-1 @Test fun testPartialRead() = runTest { val chan = SdkByteReadChannel("123456".encodeToByteArray()) @@ -89,6 +94,7 @@ class ReadChannelBodyStreamTest { assertEquals("456", sent2.decodeToString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testLargeTransfer() = runTest { val chan = SdkByteChannel() diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt index 4c8ee5c3ba..d39f957664 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt @@ -10,6 +10,7 @@ import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.io.SdkSource import aws.smithy.kotlin.runtime.io.source import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse @@ -21,6 +22,7 @@ class SdkSourceBodyStreamTest { return MutableBuffer.of(dest) to dest } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testReadFully() = runTest { val data = byteArrayOf(1, 2, 3, 4, 5) @@ -35,6 +37,7 @@ class SdkSourceBodyStreamTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testPartialRead() = runTest { val source = "123456".encodeToByteArray().source() @@ -52,6 +55,7 @@ class SdkSourceBodyStreamTest { assertEquals("456", sent2.decodeToString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testLargeTransfer() = runTest { val data = "foobar" From cb62380df6b561ec1055448c1f00279241f5b0f9 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 20 Dec 2024 18:18:35 -0500 Subject: [PATCH 10/33] `@Ignore` --- .../CachedCredentialsProviderTest.kt | 8 + .../runtime/auth/awssigning/PresignerTest.kt | 3 + .../awssigning/DefaultCanonicalizerTest.kt | 7 + .../awssigning/DefaultRequestMutatorTest.kt | 2 + .../DefaultSignatureCalculatorTest.kt | 5 + .../AwsChunkedByteReadChannelTestBase.kt | 1 + .../awssigning/tests/AwsChunkedTestBase.kt | 9 + .../awssigning/tests/BasicSigningTestBase.kt | 5 + .../http/auth/AwsHttpSignerTestBase.kt | 7 + .../runtime/crt/SdkSourceBodyStreamTest.kt | 6 +- .../eventstream/EventStreamSigningTest.kt | 3 + .../eventstream/FrameDecoderTest.kt | 5 +- .../eventstream/FrameEncoderTest.kt | 3 + .../eventstream/HeaderValueTest.kt | 3 + .../awsprotocol/eventstream/MessageTest.kt | 11 ++ .../awsprotocol/json/AwsJsonProtocolTest.kt | 5 +- .../common/test/ClockSkewInterceptorTest.kt | 8 + .../http/engine/crt/AsyncStressTest.kt | 2 + .../http/engine/crt/RequestConversionTest.kt | 2 + .../crt/SdkStreamResponseHandlerTest.kt | 2 + .../http/engine/crt/SendChunkedBodyTest.kt | 4 + .../http/engine/HttpCallContextTest.kt | 2 + .../http/engine/HttpClientEngineTest.kt | 7 + .../AbstractChecksumInterceptorTest.kt | 3 + ...FlexibleChecksumsRequestInterceptorTest.kt | 8 + ...lexibleChecksumsResponseInterceptorTest.kt | 5 + .../Md5ChecksumInterceptorTest.kt | 4 + .../RequestCompressionInterceptorTest.kt | 8 + ...ResponseLengthValidationInterceptorTest.kt | 5 + .../middleware/DefaultValidateResponseTest.kt | 3 + .../http/middleware/MutateHeadersTest.kt | 4 + .../http/middleware/RetryMiddlewareTest.kt | 2 + .../operation/HttpInterceptorOrderTest.kt | 19 ++ .../http/operation/HttpInterceptorTest.kt | 5 + .../HttpInterceptorTypeValidationTest.kt | 3 + .../http/operation/SdkHttpOperationTest.kt | 3 + .../operation/SdkOperationExecutionTest.kt | 3 +- .../runtime/httptest/TestConnectionTest.kt | 7 + .../smithy/kotlin/runtime/http/HeadersTest.kt | 3 +- .../kotlin/runtime/http/HttpBodyTest.kt | 3 + .../runtime/http/HttpRequestBuilderTest.kt | 2 + .../runtime/http/response/HttpResponseTest.kt | 2 + ...hyProtocolResponseHeaderInterceptorTest.kt | 3 + .../cbor/Rpcv2CborErrorDeserializerTest.kt | 2 + .../collections/ReadThroughCacheTest.kt | 3 + .../kotlin/runtime/content/BigDecimalTest.kt | 4 + .../kotlin/runtime/content/BigIntegerTest.kt | 7 + .../runtime/content/ByteStreamFlowTest.kt | 3 + .../kotlin/runtime/io/ByteArraySourceTest.kt | 2 + .../runtime/io/GzipByteReadChannelTest.kt | 12 ++ .../kotlin/runtime/io/GzipSdkSourceTest.kt | 6 + .../runtime/io/HashingByteReadChannelTest.kt | 6 + .../kotlin/runtime/io/HashingSinkTest.kt | 3 + .../kotlin/runtime/io/HashingSourceTest.kt | 3 + .../smithy/kotlin/runtime/io/ObserversTest.kt | 3 + .../kotlin/runtime/io/SdkBufferedSinkTest.kt | 20 +++ .../runtime/io/SdkBufferedSourceTest.kt | 28 +++ .../runtime/io/SdkByteChannelSuspendTest.kt | 23 +++ .../kotlin/runtime/io/SdkByteChannelTest.kt | 9 + .../smithy/kotlin/runtime/time/InstantTest.kt | 20 ++- .../kotlin/runtime/time/ManualClockTest.kt | 2 + .../kotlin/runtime/time/ParseEpochTest.kt | 2 + .../kotlin/runtime/util/CachedValueTest.kt | 6 + .../serde/cbor/CborDeserializerErrorTest.kt | 60 +++++++ .../serde/cbor/CborDeserializerSuccessTest.kt | 167 ++++++++++++++++++ .../serde/cbor/CborDeserializerTest.kt | 2 + .../runtime/serde/cbor/CborSerializerTest.kt | 15 ++ .../serde/formurl/FormUrlSerializerTest.kt | 18 ++ .../serde/json/JsonDeserializerTest.kt | 2 + .../smithy/test/HttpRequestTestBuilderTest.kt | 13 ++ .../test/HttpResponseTestBuilderTest.kt | 2 + 71 files changed, 639 insertions(+), 9 deletions(-) diff --git a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt index 6eb9b0d034..587cd9bdee 100644 --- a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt +++ b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt @@ -10,6 +10,7 @@ import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.ManualClock import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith @@ -36,6 +37,7 @@ class CachedCredentialsProviderTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testLoadFirstCall() = runTest { // explicit expiration @@ -50,6 +52,7 @@ class CachedCredentialsProviderTest { assertEquals(1, source.callCount) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDefaultExpiration() = runTest { // expiration should come from the cached provider @@ -62,6 +65,7 @@ class CachedCredentialsProviderTest { assertEquals(1, source.callCount) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReloadExpiredCredentials() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) @@ -77,6 +81,7 @@ class CachedCredentialsProviderTest { assertEquals(2, source.callCount) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRefreshBufferWindow() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) @@ -98,6 +103,7 @@ class CachedCredentialsProviderTest { assertEquals(2, source.callCount) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testLoadFailed() = runTest { val source = object : CredentialsProvider { @@ -120,6 +126,7 @@ class CachedCredentialsProviderTest { provider.resolve() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testItThrowsOnGetCredentialsAfterClose() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) @@ -137,6 +144,7 @@ class CachedCredentialsProviderTest { assertEquals(1, source.callCount) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCachedConvenienceFunction() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) diff --git a/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt b/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt index ec7a9d4ec7..1d2e52ff26 100644 --- a/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt +++ b/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt @@ -17,6 +17,7 @@ import aws.smithy.kotlin.runtime.http.request.url import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.operation.ExecutionContext import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue @@ -24,12 +25,14 @@ import kotlin.test.assertTrue class PresignerTest { // Verify that custom endpoint URL schemes aren't changed. // See https://github.com/awslabs/aws-sdk-kotlin/issues/938 + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSignedUrlAllowsHttp() = testSigningUrl("http://localhost:8080/path/to/resource?foo=bar") // Verify that custom endpoint URL schemes aren't changed. // See https://github.com/awslabs/aws-sdk-kotlin/issues/938 @Test + @Ignore // FIXME Re-enable after Kotlin/Native implementation fun testSignedUrlAllowsHttps() = testSigningUrl("https://localhost:8088/path/to/resource?bar=foo") private fun testSigningUrl(url: String) = runTest { diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt index 7fc20ddb83..423bc379a4 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt @@ -12,12 +12,14 @@ import aws.smithy.kotlin.runtime.net.Host import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals class DefaultCanonicalizerTest { // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCanonicalize() = runTest { val request = HttpRequest { @@ -78,6 +80,7 @@ class DefaultCanonicalizerTest { } // Targeted test for proper URI path escaping. See https://github.com/smithy-lang/smithy-kotlin/issues/657 + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEscapablePath() { val uri = Url.Builder() @@ -94,6 +97,7 @@ class DefaultCanonicalizerTest { assertEquals("/2013-04-01/healthcheck/foo%253Cbar%253Ebaz%253C%252Fbar%253E", uri.canonicalPath(config)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCanonicalPath() { val config = AwsSigningConfig { @@ -109,6 +113,7 @@ class DefaultCanonicalizerTest { assertEquals("/foo/%40bar/baz%253Cqux%253Aquux", uri.canonicalPath(config)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCanonicalQueryParams() { Url.Builder().apply { @@ -123,6 +128,7 @@ class DefaultCanonicalizerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testUnsignedHeaders() = runTest { val request = HttpRequest { @@ -155,6 +161,7 @@ class DefaultCanonicalizerTest { assertEquals(expectedSignedHeaders, actual.signedHeaders) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCustomPort() = runTest { val request = HttpRequest { diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt index 7eb10ab692..85827c5521 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt @@ -11,10 +11,12 @@ import aws.smithy.kotlin.runtime.http.HttpMethod import aws.smithy.kotlin.runtime.http.request.* import aws.smithy.kotlin.runtime.net.Host import aws.smithy.kotlin.runtime.time.Instant +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class DefaultRequestMutatorTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAppendAuthHeader() { val canonical = CanonicalRequest(baseRequest.toBuilder(), "", "action;host;x-amz-date", "") diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt index fc5c23304c..139cf9d26f 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt @@ -11,11 +11,13 @@ import aws.smithy.kotlin.runtime.text.encoding.decodeHexBytes import aws.smithy.kotlin.runtime.text.encoding.encodeToHex import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class DefaultSignatureCalculatorTest { // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCalculate() { val signingKey = "c4afb1cc5771d871763a393e44b703571b55cc28424d1a5e86da6ed3c154a4b9".decodeHexBytes() @@ -32,6 +34,7 @@ class DefaultSignatureCalculatorTest { } // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSigningKey() = runTest { val config = AwsSigningConfig { @@ -47,6 +50,7 @@ class DefaultSignatureCalculatorTest { } // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testStringToSign() { val canonicalRequest = """ @@ -80,6 +84,7 @@ class DefaultSignatureCalculatorTest { private data class ChunkStringToSignTest(val signatureType: AwsSignatureType, val expectedNonSignatureHeaderHash: String) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChunkStringToSign() { // Test event stream signing diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt index f86ef5ba3a..1510e6987c 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt @@ -17,6 +17,7 @@ import kotlin.test.* import kotlin.time.Duration.Companion.milliseconds abstract class AwsChunkedByteReadChannelTestBase : AwsChunkedTestBase(AwsChunkedReaderFactory.Channel) { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSlowProducerMultipleChunksPartialLast(): TestResult = runTest { val numChunks = 6 diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt index 10247109ae..58faeb2142 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt @@ -171,6 +171,7 @@ abstract class AwsChunkedTestBase( return length } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadNegativeOffset(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -184,6 +185,7 @@ abstract class AwsChunkedTestBase( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadExactBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -217,6 +219,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadExcessiveBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -246,6 +249,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFewerBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -272,6 +276,7 @@ abstract class AwsChunkedTestBase( assertFalse(awsChunked.isClosedForRead()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadMultipleFullChunks(): TestResult = runTest { val numChunks = 5 @@ -319,6 +324,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadMultipleChunksLastChunkNotFull(): TestResult = runTest { val numChunks = 6 @@ -384,6 +390,7 @@ abstract class AwsChunkedTestBase( assertEquals(0, chunkSizes.last()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadWithTrailingHeaders(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -434,6 +441,7 @@ abstract class AwsChunkedTestBase( assertEquals(expectedTrailerSignature.decodeToString(), trailerSignature) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testUnsignedChunk(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -465,6 +473,7 @@ abstract class AwsChunkedTestBase( assertEquals(chunkSizes[1], 0) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testUnsignedChunkWithTrailingHeaders(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt index 2a517fc090..03f71ad7fb 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt @@ -18,6 +18,7 @@ import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.TestResult import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse @@ -55,6 +56,7 @@ public abstract class BasicSigningTestBase : HasSigner { credentials = DEFAULT_TEST_CREDENTIALS } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignRequestSigV4(): TestResult = runTest { // sanity test @@ -83,6 +85,7 @@ public abstract class BasicSigningTestBase : HasSigner { assertEquals(expectedSig, result.signature.decodeToString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public open fun testSignRequestSigV4Asymmetric(): TestResult = runTest { // sanity test @@ -165,6 +168,7 @@ public abstract class BasicSigningTestBase : HasSigner { return chunk } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignChunks(): TestResult = runTest { val request = createChunkedTestRequest() @@ -188,6 +192,7 @@ public abstract class BasicSigningTestBase : HasSigner { assertEquals(EXPECTED_FINAL_CHUNK_SIGNATURE, finalChunkResult.signature.decodeToString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSigningCopiesInput(): TestResult = runTest { // sanity test the signer doesn't mutate the input and instead copies to a new request diff --git a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt index 2ce308df8f..30c5005033 100644 --- a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt +++ b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt @@ -26,6 +26,7 @@ import aws.smithy.kotlin.runtime.operation.ExecutionContext import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.TestResult import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -105,6 +106,7 @@ public abstract class AwsHttpSignerTestBase( return operation.context[HttpOperationContext.HttpCallList].last().request } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignRequest(): TestResult = runTest { val op = buildOperation() @@ -118,6 +120,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testUnsignedRequest(): TestResult = runTest { val op = buildOperation(unsigned = true) @@ -131,6 +134,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignReplayableStreamingRequest(): TestResult = runTest { val op = buildOperation(streaming = true) @@ -144,6 +148,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignAwsChunkedStreamNonReplayable(): TestResult = runTest { val op = buildOperation(streaming = true, replayable = false, requestBody = "a".repeat(AWS_CHUNKED_THRESHOLD + 1)) @@ -157,6 +162,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignAwsChunkedStreamReplayable(): TestResult = runTest { val op = buildOperation(streaming = true, replayable = true, requestBody = "a".repeat(AWS_CHUNKED_THRESHOLD + 1)) @@ -170,6 +176,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignOneShotStream(): TestResult = runTest { val op = buildOperation(streaming = true, replayable = false) diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt index d39f957664..2aa94f1df3 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt @@ -22,7 +22,7 @@ class SdkSourceBodyStreamTest { return MutableBuffer.of(dest) to dest } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFully() = runTest { val data = byteArrayOf(1, 2, 3, 4, 5) @@ -37,7 +37,7 @@ class SdkSourceBodyStreamTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testPartialRead() = runTest { val source = "123456".encodeToByteArray().source() @@ -55,7 +55,7 @@ class SdkSourceBodyStreamTest { assertEquals("456", sent2.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testLargeTransfer() = runTest { val data = "foobar" diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt index b672571184..7611ed14d1 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt @@ -19,6 +19,7 @@ import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.toList import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -28,6 +29,7 @@ class EventStreamSigningTest { override suspend fun resolve(attributes: Attributes) = testCredentials } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSignPayload() = runTest { val messageToSign = buildMessage { @@ -66,6 +68,7 @@ class EventStreamSigningTest { assertEquals(expected, actualSignature) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEmptyEndFrameSent() = runTest { val messageToSign = buildMessage { diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt index dd118def5a..a2588e6c8d 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt @@ -9,12 +9,13 @@ import aws.smithy.kotlin.runtime.io.* import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.flow.* import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith class FrameDecoderTest { - + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFrameStreamSingleMessage() = runTest { val encoded = validMessageWithAllHeaders() @@ -28,6 +29,7 @@ class FrameDecoderTest { assertEquals(expected, actual.first()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFrameStreamMultipleMessagesChunked() = runTest { val encoded = SdkBuffer().apply { @@ -51,6 +53,7 @@ class FrameDecoderTest { assertEquals(expected3, actual[2]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelClosed() = runTest { // contents don't matter diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt index ccc80102ed..3e5add19a1 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt @@ -11,11 +11,13 @@ import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.toList import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals class FrameEncoderTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEncode() = runTest { val expected = listOf( @@ -42,6 +44,7 @@ class FrameEncoderTest { assertContentEquals(expected[2], actual[2].readByteArray()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAsEventStreamHttpBody() = runTest { val messages = flowOf( diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt index 12895d367f..1e09c61600 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt @@ -8,12 +8,15 @@ package aws.smithy.kotlin.runtime.awsprotocol.eventstream import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.util.Uuid import io.kotest.matchers.string.shouldContain +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals import kotlin.test.assertFails class HeaderValueTest { + + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testExpectAs() { assertEquals(true, HeaderValue.Bool(true).expectBool()) diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt index 4b37771253..6cfe75fe3a 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt @@ -52,6 +52,7 @@ fun validMessageNoHeaders(): ByteArray = byteArrayFrom( class MessageTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMessageNoHeaders() { // Test message taken from the CRT: @@ -68,6 +69,7 @@ class MessageTest { assertEquals(expectedPayload, actual.payload.decodeToString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMessageOneHeader() { // Test message taken from the CRT: @@ -89,6 +91,7 @@ class MessageTest { assertEquals(expectedHeaders, actual.headers) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRoundTripAllHeadersPayload() { val encoded = validMessageWithAllHeaders() @@ -118,6 +121,7 @@ class MessageTest { assertContentEquals(message.payload, result.payload) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderStringValueLength() { // header length = -1 @@ -139,6 +143,7 @@ class MessageTest { }.message.shouldContain("Invalid HeaderValue; type=STRING, len=65535") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderStringLengthCutoff() { val encoded = byteArrayFrom( @@ -155,6 +160,7 @@ class MessageTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderValueType() { val encoded = byteArrayFrom( @@ -175,6 +181,7 @@ class MessageTest { }.message.shouldContain("Unknown HeaderType: 96") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderNameLength() { val encoded = byteArrayFrom( @@ -195,6 +202,7 @@ class MessageTest { }.message.shouldContain("Invalid header name length") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeadersLength() { val encoded = byteArrayFrom( @@ -211,6 +219,7 @@ class MessageTest { }.message.shouldContain("Not enough bytes to read header name; needed: 3; remaining: 1") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidPreludeChecksum() { val encoded = byteArrayFrom( @@ -231,6 +240,7 @@ class MessageTest { }.message.shouldContain("Prelude checksum mismatch; expected=0xdeadbeef; calculated=0x8bb495fb") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidMessageChecksum() { val encoded = byteArrayFrom( @@ -251,6 +261,7 @@ class MessageTest { }.message.shouldContain("Message checksum mismatch; expected=0xdeadbeef; calculated=0x01a05860") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderNameLengthTooLong() { val encoded = byteArrayFrom( diff --git a/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt b/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt index ac53fc26a8..19cc141b2f 100644 --- a/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt +++ b/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt @@ -13,11 +13,12 @@ import aws.smithy.kotlin.runtime.http.response.HttpResponse import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.operation.ExecutionContext import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class AwsJsonProtocolTest { - + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSetJsonProtocolHeaders() = runTest { @Suppress("DEPRECATION") @@ -40,6 +41,7 @@ class AwsJsonProtocolTest { assertEquals("FooService_blah.Bar", request.headers["X-Amz-Target"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEmptyBody() = runTest { @Suppress("DEPRECATION") @@ -59,6 +61,7 @@ class AwsJsonProtocolTest { assertEquals("{}", actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDoesNotOverride() = runTest { @Suppress("DEPRECATION") diff --git a/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt b/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt index 930b8ee646..d4191d33dd 100644 --- a/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt +++ b/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt @@ -31,6 +31,7 @@ private val POSSIBLE_SKEWED_RESPONSE_CODE_DESCRIPTION = "InvalidSignatureExcepti private val NOT_SKEWED_RESPONSE_CODE_DESCRIPTION = "RequestThrottled" class ClockSkewInterceptorTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNotSkewed() { val clientTime = Instant.fromRfc5322("Wed, 6 Oct 2023 16:20:50 -0400") @@ -39,6 +40,7 @@ class ClockSkewInterceptorTest { assertFalse(clientTime.isSkewed(serverTime, NOT_SKEWED_RESPONSE_CODE_DESCRIPTION)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkewedByResponseCode() { // clocks are exactly the same, but service returned skew error @@ -48,6 +50,7 @@ class ClockSkewInterceptorTest { assertEquals(0.days, clientTime.until(serverTime)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkewedByTime() { val clientTime = Instant.fromRfc5322("Wed, 6 Oct 2023 16:20:50 -0400") @@ -56,6 +59,7 @@ class ClockSkewInterceptorTest { assertEquals(1.days, clientTime.until(serverTime)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNegativeSkewedByTime() { val clientTime = Instant.fromRfc5322("Wed, 7 Oct 2023 16:20:50 -0400") @@ -64,6 +68,7 @@ class ClockSkewInterceptorTest { assertEquals(-1.days, clientTime.until(serverTime)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkewThreshold() { val minute = 20 @@ -125,6 +130,7 @@ class ClockSkewInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testClockSkewApplied() = runTest { testRoundTrip( @@ -135,6 +141,7 @@ class ClockSkewInterceptorTest { ) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testClockSkewNotApplied_NoSkew() = runTest { testRoundTrip( @@ -145,6 +152,7 @@ class ClockSkewInterceptorTest { ) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testClockSkewNotApplied_BadDate() = runTest { testRoundTrip( diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt index 39f4170550..525aefbbc3 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt @@ -21,6 +21,7 @@ import kotlinx.coroutines.async import kotlinx.coroutines.runBlocking import kotlinx.coroutines.withTimeout import kotlinx.coroutines.yield +import kotlin.test.Ignore import kotlin.test.Test import kotlin.time.Duration.Companion.seconds @@ -36,6 +37,7 @@ class AsyncStressTest : TestWithLocalServer() { } }.start() + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamNotConsumed() = runBlocking { // test that filling the stream window and not consuming the body stream still cleans up resources diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt index 88e88561e7..90ade48b73 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt @@ -53,6 +53,7 @@ class RequestConversionTest { assertFalse(crtRequest.body is ReadChannelBodyStream) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkToCrtRequestStreamingBody() { val stream = byteStreamFromContents("foobar") @@ -71,6 +72,7 @@ class RequestConversionTest { crtBody.cancel() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEngineAddsContentLengthHeader() { val stream = byteStreamFromContents("foobar") diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt index 005d577f74..1611568796 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt @@ -124,6 +124,7 @@ class SdkStreamResponseHandlerTest { assertTrue(respChan.isClosedForWrite) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRespBody() = runTest { val handler = SdkStreamResponseHandler(mockConn, coroutineContext) @@ -152,6 +153,7 @@ class SdkStreamResponseHandlerTest { assertEquals(data, respChan.readToBuffer().readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamError() = runTest { val handler = SdkStreamResponseHandler(mockConn, coroutineContext) diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt index 88366c41f0..cf271cd436 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt @@ -27,6 +27,7 @@ class SendChunkedBodyTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSourceContent() = runTest { val stream = MockHttpStream(200) @@ -44,6 +45,7 @@ class SendChunkedBodyTest { assertEquals(1, stream.numChunksWritten) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelContentMultipleChunks() = runTest { val stream = MockHttpStream(200) @@ -65,6 +67,7 @@ class SendChunkedBodyTest { assertTrue(stream.numChunksWritten > 1) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelContent() = runTest { val stream = MockHttpStream(200) @@ -83,6 +86,7 @@ class SendChunkedBodyTest { assertEquals(1, stream.numChunksWritten) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSourceContentMultipleChunks() = runTest { val stream = MockHttpStream(200) diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt index cb41cff0d4..9e0fab6c26 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt @@ -18,12 +18,14 @@ import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.job import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue import kotlin.coroutines.coroutineContext as currentCoroutineContext class HttpCallContextTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @OptIn(ExperimentalCoroutinesApi::class) @Test fun testStructuredConcurrency() = runTest { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt index 4468534cb8..4ce8d7d99b 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt @@ -18,6 +18,7 @@ import kotlinx.coroutines.* import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.test.runTest import kotlin.test.BeforeTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith @@ -60,6 +61,7 @@ class HttpClientEngineTest { private val HttpCall.job: Job get() = coroutineContext.job + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCallComplete() = runTest { val call = client.call(HttpRequestBuilder()) @@ -69,6 +71,7 @@ class HttpClientEngineTest { assertTrue(call.job.isCompleted) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testUserContextCancelsRequestJob() = runTest { val job = launch { @@ -85,6 +88,7 @@ class HttpClientEngineTest { assertTrue(callJob.isCancelled) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInFlightRequestJobsAreIndependent() = runTest { val job1 = launch { @@ -109,6 +113,7 @@ class HttpClientEngineTest { job2.cancel() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEngineJobNotCancelledByRequestJobs() = runTest { launch { @@ -126,6 +131,7 @@ class HttpClientEngineTest { assertTrue(engine.coroutineContext.job.isActive) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testShutdownOnlyAfterInFlightDone() = runTest { val waiter = Channel(1) @@ -160,6 +166,7 @@ class HttpClientEngineTest { assertTrue(engine.shutdownCalled) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequestAfterClose() = runTest { engine.close() diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt index 3de8e557c2..ecc3a8491a 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt @@ -16,6 +16,7 @@ import aws.smithy.kotlin.runtime.http.request.header import aws.smithy.kotlin.runtime.http.request.toBuilder import aws.smithy.kotlin.runtime.httptest.TestEngine import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -24,6 +25,7 @@ private val CHECKSUM_TEST_HEADER = "x-amz-kotlin-sdk-test-checksum-header" class AbstractChecksumInterceptorTest { private val client = SdkHttpClient(TestEngine()) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChecksumIsCalculatedAndApplied() = runTest { val req = HttpRequestBuilder().apply { @@ -40,6 +42,7 @@ class AbstractChecksumInterceptorTest { assertEquals(expectedChecksumValue, call.request.headers[CHECKSUM_TEST_HEADER]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCachedChecksumIsUsed() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt index c4c85de66b..543f03ceca 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt @@ -31,6 +31,7 @@ class FlexibleChecksumsRequestInterceptorTest { "sha256" to "1dXchshIKqXiaKCqueqR7AOz1qLpiqayo7gbnaxzaQo=", ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSetsChecksumHeader() = runTest { checksums.forEach { (checksumAlgorithmName, expectedChecksumValue) -> @@ -52,6 +53,7 @@ class FlexibleChecksumsRequestInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAllowsOnlyOneChecksumHeader() = runTest { val req = HttpRequestBuilder().apply { @@ -77,6 +79,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(1, call.request.headers.getNumChecksumHeaders()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itThrowsOnUnsupportedChecksumAlgorithm() = runTest { val req = HttpRequestBuilder().apply { @@ -98,6 +101,7 @@ class FlexibleChecksumsRequestInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itRemovesChecksumHeadersForAwsChunked() = runTest { val data = ByteArray(65536 * 32) { 'a'.code.toByte() } @@ -126,6 +130,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(0, call.request.headers.getNumChecksumHeaders()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSetsChecksumHeaderViaExecutionContext() = runTest { checksums.forEach { (checksumAlgorithmName, expectedChecksumValue) -> @@ -143,6 +148,7 @@ class FlexibleChecksumsRequestInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCompletingSource() = runTest { val hashFunctionName = "crc32" @@ -164,6 +170,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(expectedHash.digest().encodeBase64String(), completableDeferred.await()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCompletingByteReadChannel() = runTest { val hashFunctionName = "sha256" @@ -186,6 +193,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(expectedHash.digest().encodeBase64String(), completableDeferred.await()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itUsesPrecalculatedChecksum() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt index 2c04ee680d..764774dc10 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt @@ -66,6 +66,7 @@ class FlexibleChecksumsResponseInterceptorTest { return SdkHttpClient(mockEngine) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testResponseChecksumValid() = runTest { checksums.forEach { (checksumAlgorithmName, expectedChecksum) -> @@ -92,6 +93,7 @@ class FlexibleChecksumsResponseInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testResponseServiceChecksumInvalid() = runTest { checksums.forEach { (checksumAlgorithmName, _) -> @@ -120,6 +122,7 @@ class FlexibleChecksumsResponseInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMultipleChecksumsReturned() = runTest { val req = HttpRequestBuilder() @@ -144,6 +147,7 @@ class FlexibleChecksumsResponseInterceptorTest { assertEquals("x-amz-checksum-crc32c", op.context[ChecksumHeaderValidated]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkipsValidationOfMultipartChecksum() = runTest { val req = HttpRequestBuilder() @@ -164,6 +168,7 @@ class FlexibleChecksumsResponseInterceptorTest { op.roundTrip(client, TestInput("input")) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkipsValidationWhenDisabled() = runTest { val req = HttpRequestBuilder() diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt index 109d2e3e8d..e0b24e5f10 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt @@ -15,6 +15,7 @@ import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNull @@ -22,6 +23,7 @@ import kotlin.test.assertNull class Md5ChecksumInterceptorTest { private val client = SdkHttpClient(TestEngine()) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSetsContentMd5Header() = runTest { val req = HttpRequestBuilder().apply { @@ -41,6 +43,7 @@ class Md5ChecksumInterceptorTest { assertEquals(expected, call.request.headers["Content-MD5"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itOnlySetsHeaderForBytesContent() = runTest { val req = HttpRequestBuilder().apply { @@ -61,6 +64,7 @@ class Md5ChecksumInterceptorTest { assertNull(call.request.headers["Content-MD5"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itDoesNotSetContentMd5Header() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt index 55641129d9..d4f4142fd1 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt @@ -17,6 +17,7 @@ import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import aws.smithy.kotlin.runtime.io.source import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals @@ -59,6 +60,7 @@ class RequestCompressionInterceptorTest { return op.context.attributes[HttpOperationContext.HttpCallList].first() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCompressionThresholdTooHigh() = runTest { val payload = "bar" @@ -78,6 +80,7 @@ class RequestCompressionInterceptorTest { assertEquals(bytes, sentBytes) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCompression() = runTest { val payload = "bar" @@ -98,6 +101,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkSource() = runTest { val payload = "bar" @@ -118,6 +122,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkByteReadChannel() = runTest { val payload = "bar" @@ -138,6 +143,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testHeaderAlreadySet() = runTest { val payload = "bar" @@ -159,6 +165,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNoSupportedAlgorithms() = runTest { val payload = "bar" @@ -178,6 +185,7 @@ class RequestCompressionInterceptorTest { assertEquals(bytes, sentBytes) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidCompressionThreshold() = runTest { val payload = "bar" diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt index e9730f726c..2bd2475d63 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt @@ -77,6 +77,7 @@ class ResponseLengthValidationInterceptorTest { private fun allBodies() = nonEmptyBodies() + HttpBody.Empty + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCorrectLengthReturned() = runTest { nonEmptyBodies().forEach { body -> @@ -86,6 +87,7 @@ class ResponseLengthValidationInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNotEnoughBytesReturned() = runTest { nonEmptyBodies().forEach { body -> @@ -97,6 +99,7 @@ class ResponseLengthValidationInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testTooManyBytesReturned() = runTest { allBodies().forEach { body -> @@ -108,6 +111,7 @@ class ResponseLengthValidationInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNoContentLengthSkipsValidation() = runTest { allBodies().forEach { body -> @@ -117,6 +121,7 @@ class ResponseLengthValidationInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEmptyBodyCorrectLengthReturned() = runTest { val client = client(HttpBody.Empty, 0) // expect correct content length diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt index 71d1d67ce2..ff0ee4cfed 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt @@ -16,11 +16,13 @@ import aws.smithy.kotlin.runtime.http.response.HttpResponse import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith class DefaultValidateResponseTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itThrowsExceptionOnNon200Response() = runTest { val mockEngine = TestEngine { _, request -> @@ -44,6 +46,7 @@ class DefaultValidateResponseTest { return@runTest } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itPassesSuccessResponses() = runTest { val mockEngine = TestEngine { _, request -> diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt index f97a982714..e06febc990 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt @@ -14,12 +14,14 @@ import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.http.request.headers import aws.smithy.kotlin.runtime.httptest.TestEngine import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class MutateHeadersTest { private val client = SdkHttpClient(TestEngine()) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itOverridesHeaders() = runTest { val req = HttpRequestBuilder().apply { @@ -50,6 +52,7 @@ class MutateHeadersTest { assertEquals("qux", call.request.headers["baz"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAppendsHeaders() = runTest { val req = HttpRequestBuilder().apply { @@ -80,6 +83,7 @@ class MutateHeadersTest { assertEquals("qux", call.request.headers["baz"]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSetsMissing() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt index d80c48ab75..49c7709ab3 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt @@ -17,6 +17,7 @@ import aws.smithy.kotlin.runtime.retries.policy.RetryDirective import aws.smithy.kotlin.runtime.retries.policy.RetryErrorType import aws.smithy.kotlin.runtime.retries.policy.RetryPolicy import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -34,6 +35,7 @@ class RetryMiddlewareTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRetryMiddleware() = runTest { val req = HttpRequestBuilder() diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt index 297b9db295..7c11621d46 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt @@ -135,6 +135,7 @@ class HttpInterceptorOrderTest { hooksFired.shouldContainInOrder(expected) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInterceptorOrderSuccess() = runTest { // sanity test all hooks fire in order @@ -151,91 +152,109 @@ class HttpInterceptorOrderTest { assertEquals(expected, hooksFired) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeExecutionErrors() = runTest { simpleFailOrderTest("readBeforeExecution") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeSerializationErrors() = runTest { simpleFailOrderTest("modifyBeforeSerialization") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeSerializationErrors() = runTest { simpleFailOrderTest("readBeforeSerialization") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterSerializationErrors() = runTest { simpleFailOrderTest("readAfterSerialization") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeRetryLoopErrors() = runTest { simpleFailOrderTest("modifyBeforeRetryLoop") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeAttemptErrors() = runTest { simpleFailOrderTest("readBeforeAttempt") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeSigningErrors() = runTest { simpleFailOrderTest("modifyBeforeSigning") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeSigningErrors() = runTest { simpleFailOrderTest("readBeforeSigning") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterSigningErrors() = runTest { simpleFailOrderTest("readAfterSigning") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeTransmitErrors() = runTest { simpleFailOrderTest("modifyBeforeTransmit") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeTransmitErrors() = runTest { simpleFailOrderTest("readBeforeTransmit") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterTransmitErrors() = runTest { simpleFailOrderTest("readAfterTransmit") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeDeserializationErrors() = runTest { simpleFailOrderTest("readBeforeDeserialization") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterDeserializationErrors() = runTest { simpleFailOrderTest("readAfterDeserialization") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterAttemptErrors() = runTest { simpleFailOrderTest("readAfterAttempt") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeAttemptCompletionErrors() = runTest { simpleFailOrderTest("modifyBeforeAttemptCompletion") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeCompletionErrors() = runTest { simpleFailOrderTest("modifyBeforeCompletion") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterExecutionErrors() = runTest { simpleFailOrderTest("readAfterExecution") diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt index b03f099ccb..4940747a01 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt @@ -151,6 +151,7 @@ class HttpInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInterceptorModifications() = runTest { val serialized = HttpRequestBuilder().apply { @@ -173,6 +174,7 @@ class HttpInterceptorTest { assertEquals("final", output.value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInterceptorModificationsWithRetries() = runTest { val serialized = HttpRequestBuilder().apply { @@ -211,6 +213,7 @@ class HttpInterceptorTest { assertEquals("ignore-failure", output.value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMapFailureOnAttempt() = runTest { val interceptor = object : HttpInterceptor { @@ -223,6 +226,7 @@ class HttpInterceptorTest { testMapFailure(interceptor) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMapFailureOnCompletion() = runTest { val interceptor = object : HttpInterceptor { @@ -235,6 +239,7 @@ class HttpInterceptorTest { testMapFailure(interceptor) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterExecutionSuppressedException() = runTest { val interceptor = object : HttpInterceptor { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt index 7d2cd3d88f..3578151acf 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt @@ -16,6 +16,7 @@ import kotlin.IllegalStateException import kotlin.test.* class HttpInterceptorTypeValidationTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeSerializationTypeFailure() = runTest { val i1 = object : HttpInterceptor { @@ -44,6 +45,7 @@ class HttpInterceptorTypeValidationTest { ex.message.shouldContain("modifyBeforeSerialization invalid type conversion: found class aws.smithy.kotlin.runtime.http.operation.TestOutput; expected class aws.smithy.kotlin.runtime.http.operation.TestInput") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeAttemptCompletionTypeFailure() = runTest { val i1 = object : HttpInterceptor { @@ -71,6 +73,7 @@ class HttpInterceptorTypeValidationTest { ex.message.shouldContain("modifyBeforeAttemptCompletion invalid type conversion: found class kotlin.String; expected class aws.smithy.kotlin.runtime.http.operation.TestOutput") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeCompletionTypeFailure() = runTest { val i1 = object : HttpInterceptor { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt index 22e36d1cf1..08160d5d6c 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt @@ -12,12 +12,14 @@ import aws.smithy.kotlin.runtime.telemetry.logging.loggingContext import aws.smithy.kotlin.runtime.telemetry.trace.traceSpan import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith import kotlin.test.assertNotNull class SdkHttpOperationTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testTelemetryInstrumentation() = runTest { val op = newTestOperation(HttpRequestBuilder(), Unit) @@ -31,6 +33,7 @@ class SdkHttpOperationTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMissingRequiredProperties() = runTest { val ex = assertFailsWith { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt index 5b521d8bbf..2bdd96a13a 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt @@ -21,13 +21,14 @@ import aws.smithy.kotlin.runtime.identity.asIdentityProviderConfig import aws.smithy.kotlin.runtime.operation.ExecutionContext import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertTrue class SdkOperationExecutionTest { - + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testOperationMiddlewareOrder() = runTest { // sanity test middleware flows the way we expect diff --git a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt index b8f0a41f15..5b217bc009 100644 --- a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt +++ b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt @@ -10,11 +10,13 @@ import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.net.Host import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class TestConnectionTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAssertRequestsSuccess() = runTest { val engine = buildTestConnection { @@ -42,6 +44,7 @@ class TestConnectionTest { engine.assertRequests() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAssertRequestsUrlDifferent() = runTest { val engine = buildTestConnection { @@ -69,6 +72,7 @@ class TestConnectionTest { }.message.shouldContain("URL mismatch") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAssertRequestsMissingHeader() = runTest { val engine = buildTestConnection { @@ -96,6 +100,7 @@ class TestConnectionTest { }.message.shouldContain("header `x-baz` missing value `qux`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAssertRequestsBodyDifferent() = runTest { val engine = buildTestConnection { @@ -124,6 +129,7 @@ class TestConnectionTest { }.message.shouldContain("body mismatch") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAssertRequestsAny() = runTest { val engine = buildTestConnection { @@ -158,6 +164,7 @@ class TestConnectionTest { engine.assertRequests() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromJson() = runTest { // language=JSON diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt index 12287dcc8d..f22f36ee76 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt @@ -4,13 +4,13 @@ */ package aws.smithy.kotlin.runtime.http +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertTrue class HeadersTest { - @Test fun itBuilds() { val actual = Headers { @@ -29,6 +29,7 @@ class HeadersTest { assertEquals("Headers [key=[value]]", "$actual2") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSubsequentModificationsDontAffectOriginal() { val builder = HeadersBuilder() diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt index 844d054166..abfe3d8b0c 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt @@ -11,6 +11,7 @@ import aws.smithy.kotlin.runtime.io.SdkByteChannel import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import aws.smithy.kotlin.runtime.io.writeAll import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse @@ -49,6 +50,7 @@ class HttpBodyTest { assertTrue(body.isOneShot) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamingReadAllClosedForRead() = runTest { val expected = "foobar" @@ -61,6 +63,7 @@ class HttpBodyTest { assertEquals(expected, body.readAll()!!.decodeToString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamingReadAllClosedForWrite() = runTest { val expected = "foobar" diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt index 79675b689a..a0f041e7ad 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt @@ -41,6 +41,7 @@ class HttpRequestBuilderTest { assertEquals(HttpBody.Empty, request.body) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDumpRequest() = runTest { val content = "Mom!...Dad!...Bingo!...Bluey!" @@ -79,6 +80,7 @@ class HttpRequestBuilderTest { assertEquals(content, actualReplacedContent) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequestToBuilder() = runTest { val req = HttpRequest( diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt index 2f07d3cd5b..cc3d2b8011 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt @@ -12,6 +12,7 @@ import aws.smithy.kotlin.runtime.http.HttpStatusCode import aws.smithy.kotlin.runtime.http.toHttpBody import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotSame @@ -36,6 +37,7 @@ class HttpResponseTest { assertEquals(HttpStatusCode.BadRequest, resp.statusCode()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDumpResponse() = runTest { val content = "Mom!...Dad!...Bingo!...Bluey!" diff --git a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt index 1a795be3c8..8203c2c58d 100644 --- a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt +++ b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt @@ -15,6 +15,7 @@ import aws.smithy.kotlin.runtime.io.source import aws.smithy.kotlin.runtime.operation.ExecutionContext import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertFailsWith @@ -55,6 +56,7 @@ internal fun getMockClient(response: ByteArray, responseHeaders: Headers = Heade internal val RESPONSE = "abc".repeat(1024).encodeToByteArray() class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testThrowsOnMissingHeader() = runTest { val req = HttpRequestBuilder() @@ -69,6 +71,7 @@ class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSucceedsOnPresentHeader() = runTest { val req = HttpRequestBuilder() diff --git a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt index b478925733..116f320c66 100644 --- a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt +++ b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt @@ -10,10 +10,12 @@ import aws.smithy.kotlin.runtime.serde.cbor.CborSerialName import aws.smithy.kotlin.runtime.serde.cbor.CborSerializer import aws.smithy.kotlin.runtime.serde.serializeStruct import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class RpcV2CborErrorDeserializerTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDeserializeErrorType() = runTest { val tests = listOf( diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt index 4d85ece15f..c854d924d2 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt @@ -7,12 +7,14 @@ package aws.smithy.kotlin.runtime.collections import aws.smithy.kotlin.runtime.time.ManualClock import aws.smithy.kotlin.runtime.util.ExpiringValue import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.time.Duration.Companion.minutes import kotlin.time.Duration.Companion.seconds class ReadThroughCacheTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadThrough() = runTest { val clock = ManualClock() @@ -36,6 +38,7 @@ class ReadThroughCacheTest { assertEquals(3, cache.get("b") { uncachedValue() }) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSweep() = runTest { val clock = ManualClock() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt index dcb828146c..30ba61df2a 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt @@ -4,11 +4,13 @@ */ package aws.smithy.kotlin.runtime.content +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class BigDecimalTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigDecimal() { val reallyPreciseNumberString = "0.340282366920938463463374607431768211456" // 128 bits of magnitude @@ -16,11 +18,13 @@ class BigDecimalTest { assertEquals(reallyPreciseNumberString, reallyPreciseNumber.toPlainString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBadBigDecimal() { assertFails { BigDecimal("1234567890.1234567890foo") } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEquals() { val value = "0.340282366920938463463374607431768211456" diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt index 2dc9083025..36965de0d8 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt @@ -5,12 +5,14 @@ package aws.smithy.kotlin.runtime.content import aws.smithy.kotlin.runtime.text.encoding.decodeHexBytes +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals import kotlin.test.assertFails class BigIntegerTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigInteger() { val reallyBigNumberString = "340282366920938463463374607431768211456" // 128-bit number @@ -18,17 +20,20 @@ class BigIntegerTest { assertEquals(reallyBigNumberString, reallyBigNumber.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBadBigInteger() { assertFails { BigInteger("1234567890foo1234567890") } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testEquals() { val value = "340282366920938463463374607431768211456" assertEquals(BigInteger(value), BigInteger(value)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testPlusOperator() { // Map of an expected value to a pair of two values that should sum to get that expected value @@ -47,6 +52,7 @@ class BigIntegerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMinusOperator() { // Map of an expected value to a pair of two values that should subtract to get that expected value @@ -65,6 +71,7 @@ class BigIntegerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testByteOperations() { // Map of hexadecimal encoding of a big integer to the expected string representation of that big integer diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt index d4568a882c..71c89f8512 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt @@ -18,6 +18,7 @@ class ByteStreamChannelSourceFlowTest : ByteStreamFlowTest(ByteStreamFactory.SDK abstract class ByteStreamFlowTest( private val factory: ByteStreamFactory, ) { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testToFlowWithSizeHint() = runTest { val data = "a korf is a tiger".repeat(1024).encodeToByteArray() @@ -57,6 +58,7 @@ abstract class ByteStreamFlowTest( testByteArray(3278), ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFlowToByteStreamReadAll() = runTest { val flow = data.asFlow() @@ -137,6 +139,7 @@ abstract class ByteStreamFlowTest( ch.closedCause?.message.shouldContain("scope cancelled") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelCancellation() = runTest { // cancelling the channel should cancel the scope (via write failing) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt index dea0585f3e..a83eef4aaa 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt @@ -5,10 +5,12 @@ package aws.smithy.kotlin.runtime.io +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class ByteArraySourceTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testByteArraySource() { val contents = "12345678".encodeToByteArray() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt index 6c6f1884ee..26798a94b3 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt @@ -6,11 +6,13 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.hashing.crc32 import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals class GzipByteReadChannelTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAll() = runTest { val payload = "Hello World" @@ -30,6 +32,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToBuffer() = runTest { val payload = "Hello World".repeat(1600) @@ -48,6 +51,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemaining() = runTest { val payload = "Hello World".repeat(1600) @@ -67,6 +71,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRead() = runTest { val payload = "Hello World" @@ -87,6 +92,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBody() = runTest { val payload = "Hello World".repeat(1600) @@ -107,6 +113,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeLimit() = runTest { val payload = "Hello World" @@ -127,6 +134,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBodyLargeLimit() = runTest { val payload = "Hello World".repeat(1600) @@ -147,6 +155,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForRead() = runTest { val payload = "Hello World" @@ -169,6 +178,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForReadLargeBody() = runTest { val payload = "Hello World".repeat(1600) @@ -191,6 +201,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForReadLargeLimit() = runTest { val payload = "Hello World" @@ -213,6 +224,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForReadLargeBodyLargeLimit() = runTest { val payload = "Hello World".repeat(1600) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt index bfa47e012d..62d834f04c 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt @@ -6,11 +6,13 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.hashing.crc32 import kotlinx.coroutines.test.runTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals class GzipSdkSourceTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToByteArray() = runTest { val payload = "Hello World" @@ -28,6 +30,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRead() = runTest { val payload = "Hello World" @@ -48,6 +51,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBody() = runTest { val payload = "Hello World".repeat(1600) @@ -69,6 +73,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeLimit() = runTest { val payload = "Hello World" @@ -89,6 +94,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBodyLargeLimit() = runTest { val payload = "Hello World".repeat(1600) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt index 5d9b3eb74f..92aff29275 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt @@ -8,6 +8,7 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.hashing.toHashFunction import kotlinx.coroutines.test.runTest import kotlin.random.Random +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals @@ -15,6 +16,7 @@ class HashingByteReadChannelTest { private val hashFunctionNames = listOf("crc32", "crc32c", "md5", "sha1", "sha256") + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAll() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -35,6 +37,7 @@ class HashingByteReadChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToBuffer() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -53,6 +56,7 @@ class HashingByteReadChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFully() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -72,6 +76,7 @@ class HashingByteReadChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemaining() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -91,6 +96,7 @@ class HashingByteReadChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRead() = runTest { hashFunctionNames.forEach { hashFunctionName -> diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt index c4070116bc..3859fb9d9b 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt @@ -6,6 +6,7 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.hashing.toHashFunction +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -13,6 +14,7 @@ class HashingSinkTest { private val hashFunctionNames = listOf("crc32", "crc32c", "md5", "sha1", "sha256") + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSinkDigest() = run { hashFunctionNames.forEach { hashFunctionName -> @@ -31,6 +33,7 @@ class HashingSinkTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSinkPartialWrite() = run { hashFunctionNames.forEach { hashFunctionName -> diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt index 33e86615ec..4c17a5419d 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt @@ -6,6 +6,7 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.hashing.* +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -13,6 +14,7 @@ class HashingSourceTest { private val hashFunctionNames = listOf("crc32", "crc32c", "md5", "sha1", "sha256") + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSourceDigest() = run { hashFunctionNames.forEach { hashFunctionName -> @@ -32,6 +34,7 @@ class HashingSourceTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSourcePartialRead() = run { hashFunctionNames.forEach { hashFunctionName -> diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt index 4c6de56398..48e28ca4c8 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt @@ -7,10 +7,12 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.io.internal.SdkSinkObserver import aws.smithy.kotlin.runtime.io.internal.SdkSourceObserver +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class ObserversTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkSourceObserver() { val source = SdkBuffer() @@ -33,6 +35,7 @@ class ObserversTest { assertEquals(sink.readUtf8(), observer.content.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkSinkObserver() { val sink = SdkSink.blackhole() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt index b3a76321c0..804ef7517a 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals @@ -24,6 +25,7 @@ abstract class AbstractBufferedSinkTest( private val data = SdkBuffer() private val sink = factory(data) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByte() { sink.writeByte(0xDE.toByte()) @@ -34,6 +36,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteShort() { sink.writeShort(0xdead.toShort()) @@ -42,6 +45,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteShortLe() { sink.writeShortLe(0xdead.toShort()) @@ -50,13 +54,16 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=addeefbe]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test + fun testWriteInt() { sink.writeInt(0xdeadbeef.toInt()) sink.flush() assertEquals("[hex=deadbeef]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteLe() { sink.writeIntLe(0xdeadbeef.toInt()) @@ -64,6 +71,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=efbeadde]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteLong() { sink.writeLong(-2401053092341600192) @@ -71,6 +79,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef10203040]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteLongLe() { sink.writeLongLe(4625232074423315934) @@ -78,6 +87,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef10203040]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteString() { sink.writeUtf8("レップはボールです") @@ -85,6 +95,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[text=レップはボールです]", data.toString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteSubstring() { sink.writeUtf8("a lep is a ball", start = 2, endExclusive = 10) @@ -92,6 +103,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("lep is a", data.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteAll() { val contents = "a tay is a hammer" @@ -102,6 +114,7 @@ abstract class AbstractBufferedSinkTest( assertEquals(contents.length.toLong(), rc) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadSourceFully() { val source = object : SdkSource by SdkBuffer() { @@ -116,6 +129,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("12341234", data.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteEof() { val source: SdkSource = SdkBuffer().apply { writeUtf8("1234") } @@ -124,6 +138,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("1234", data.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteExhausted() { val source: SdkSource = SdkBuffer() @@ -131,6 +146,7 @@ abstract class AbstractBufferedSinkTest( assertEquals(0, data.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteExplicitZero() { val source = object : SdkSource by SdkBuffer() { @@ -141,6 +157,7 @@ abstract class AbstractBufferedSinkTest( assertEquals(0, data.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCloseFlushes() { sink.writeUtf8("a flix is a comb") @@ -148,6 +165,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("a flix is a comb", data.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByteArray() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -157,6 +175,7 @@ abstract class AbstractBufferedSinkTest( assertContentEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByteArrayOffset() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -166,6 +185,7 @@ abstract class AbstractBufferedSinkTest( assertContentEquals(expected.sliceArray(2..3), actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByteArrayOffsetAndLimit() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt index 284f72808e..7633a27ebf 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt @@ -56,6 +56,7 @@ abstract class BufferedSourceTest( source = pipe.source } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBytes() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef)) @@ -68,6 +69,7 @@ abstract class BufferedSourceTest( assertTrue(source.exhausted()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadEmpty() { assertFailsWith { @@ -75,6 +77,7 @@ abstract class BufferedSourceTest( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadShort() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef)) @@ -83,6 +86,7 @@ abstract class BufferedSourceTest( assertEquals(0xbeef.toShort(), source.readShort()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadShortLe() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef)) @@ -91,6 +95,7 @@ abstract class BufferedSourceTest( assertEquals(0xefbe.toShort(), source.readShortLe()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadInt() { sink.write(bytes(0x0b, 0xad, 0xca, 0xfe)) @@ -98,6 +103,7 @@ abstract class BufferedSourceTest( assertEquals(0x0badcafe, source.readInt()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadIntLe() { sink.write(bytes(0x0b, 0xad, 0xca, 0xfe)) @@ -105,6 +111,7 @@ abstract class BufferedSourceTest( assertEquals(-20271861, source.readIntLe()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLong() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef, 0x10, 0x20, 0x30, 0x40)) @@ -112,6 +119,7 @@ abstract class BufferedSourceTest( assertEquals(-2401053092341600192, source.readLong()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLongLe() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef, 0x10, 0x20, 0x30, 0x40)) @@ -119,6 +127,7 @@ abstract class BufferedSourceTest( assertEquals(4625232074423315934, source.readLongLe()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAll() { val content = "a lep is a ball" @@ -130,12 +139,14 @@ abstract class BufferedSourceTest( assertEquals(content, testSink.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAllExhaustedSource() { val testSink: SdkSink = SdkBuffer() assertEquals(0, source.readAll(testSink)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadExhausted() { val testSink = SdkBuffer() @@ -145,6 +156,7 @@ abstract class BufferedSourceTest( assertEquals(sizeBefore, testSink.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArray() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -153,6 +165,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayLimit() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -161,6 +174,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected.sliceArray(0..1), actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayOffset() { val content = bytes(0xde, 0xad, 0xbe, 0xef) @@ -172,6 +186,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayOffsetAndLimit() { val content = bytes(0xde, 0xad, 0xbe, 0xef) @@ -183,6 +198,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayTooSmall() { // read into a byte array that is smaller than the available data which should result in a "short" read @@ -193,6 +209,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected.sliceArray(0..2), testSink) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayEOF() { // read into a byte array that is smaller than the available data which should result in a "short" read @@ -202,6 +219,7 @@ abstract class BufferedSourceTest( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkip() { val content = ByteArray(16 * 1024) { it.toByte() } @@ -213,6 +231,7 @@ abstract class BufferedSourceTest( assertContentEquals(content.sliceArray(8192 until content.size), actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkipNotEnoughData() { val content = ByteArray(1024) { it.toByte() } @@ -224,6 +243,7 @@ abstract class BufferedSourceTest( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testPeek() { sink.writeUtf8("a flix is a comb") @@ -237,6 +257,7 @@ abstract class BufferedSourceTest( assertEquals(" is a comb", source.readUtf8(10)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMultiplePeek() { sink.writeUtf8("a flix is a comb") @@ -254,6 +275,7 @@ abstract class BufferedSourceTest( assertEquals(" is a comb", source.readUtf8(10)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testLargePeek() { sink.writeUtf8("123456") @@ -274,6 +296,7 @@ abstract class BufferedSourceTest( assertTrue(source.exhausted()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidatedPeek() { // peek is invalid after first call to source @@ -292,6 +315,7 @@ abstract class BufferedSourceTest( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequest() { sink.writeUtf8("123456789".repeat(1024)) @@ -302,6 +326,7 @@ abstract class BufferedSourceTest( assertFalse(source.request(1024 * 9 + 1)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequire() { sink.writeUtf8("123456789".repeat(1024)) @@ -313,6 +338,7 @@ abstract class BufferedSourceTest( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFully() { val data = "123456789".repeat(1024) @@ -324,6 +350,7 @@ abstract class BufferedSourceTest( assertEquals(data, dest.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyIllegalArgumentException() { val dest = SdkBuffer() @@ -332,6 +359,7 @@ abstract class BufferedSourceTest( } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyEOFException() { val data = "123456789".repeat(1024) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt index aad017ced9..b0bf648da1 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt @@ -10,6 +10,7 @@ import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.* import kotlinx.coroutines.test.runTest import kotlin.test.AfterTest +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith @@ -29,6 +30,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { ch.cancel(CancellationException("Test finished")) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeAvailable() = runTest { // test readAvailable() suspends when no data is available @@ -59,6 +61,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(6) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterAvailable() = runTest { // test readAvailable() does NOT suspend when data is available @@ -86,6 +89,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(6) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullySuspends() = runTest { // test readFully() suspends when not enough data is available to satisfy the request @@ -115,6 +119,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(7) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterAvailableFully() = runTest { // test readFully() does NOT suspend when data is available to satisfy the request @@ -139,6 +144,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToEmpty() = runTest { // test read() does not suspend when length is zero @@ -152,6 +158,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(3) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToEmptyFromFailedChannel() = runTest { expect(1) @@ -163,6 +170,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToEmptyFromClosedChannel() = runTest { expect(1) @@ -174,6 +182,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(3) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromFailedChannel() = runTest { expect(1) @@ -185,6 +194,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromClosedChannelNoSuspend() = runTest { expect(1) @@ -194,6 +204,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromClosedChannelSuspend() = runTest { expect(1) @@ -213,6 +224,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyFromFailedChannel() = runTest { expect(1) @@ -224,6 +236,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyFromClosedChannel() = runTest { expect(1) @@ -235,6 +248,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadState() = runTest { assertFalse(ch.isClosedForWrite) @@ -254,6 +268,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { assertTrue(ch.isClosedForRead) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemaining() = runTest { expect(1) @@ -274,6 +289,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(6) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadInProgress() = runTest { expect(1) @@ -295,6 +311,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteInProgress() = runTest { val chan = SdkByteChannel(true, 8) @@ -321,6 +338,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyEof() = runTest { expect(1) @@ -340,6 +358,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testResumeReadFromFailedChannel() = runTest { expect(1) @@ -358,6 +377,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(4) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testResumeReadFromClosedChannelNoContent() = runTest { expect(1) @@ -374,6 +394,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(4) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testLargeTransfer() = runTest { val data = "a".repeat(262144) + "b".repeat(512) @@ -388,6 +409,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { assertEquals(data.length.toLong(), ch.totalBytesWritten) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteNoSuspend() = runTest { val chan = SdkByteChannel(false, 8) @@ -398,6 +420,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteSuspend() = runTest { val chan = SdkByteChannel(false, 8) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt index d2d1435683..43d30ee79d 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt @@ -11,12 +11,14 @@ import kotlinx.coroutines.yield import kotlin.test.* class SdkByteChannelTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCreateAndClose() { val chan = SdkByteChannel(false) chan.close() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAutoFlush() = runTest { SdkByteChannel(false).use { chan -> @@ -41,6 +43,7 @@ class SdkByteChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testClose() = runTest { val chan = SdkByteChannel(false) @@ -85,6 +88,7 @@ class SdkByteChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromClosedChannel() = runTest { val chan = SdkByteReadChannel(byteArrayOf(1, 2, 3, 4, 5)) @@ -98,6 +102,7 @@ class SdkByteChannelTest { assertTrue { chan.isClosedForRead } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAvailableNoSuspend() = runTest { val chan = SdkByteReadChannel("world!".encodeToByteArray()) @@ -110,6 +115,7 @@ class SdkByteChannelTest { assertEquals("hello, world!", buffer.readUtf8()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAvailableSuspend() = runTest { val chan = SdkByteChannel() @@ -132,6 +138,7 @@ class SdkByteChannelTest { job.join() } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testCloseableUse() = runTest { val chan = SdkByteChannel(true) @@ -153,6 +160,7 @@ class SdkByteChannelTest { assertTrue(chan.isClosedForRead) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyFromFailedChannel() = runTest { // ensure that we attempt reading such that failures are propagate to caller @@ -165,6 +173,7 @@ class SdkByteChannelTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemainingFromFailedChannel() = runTest { // ensure that we attempt reading such that failures are propagate to caller diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt index 4c96d68dc5..2507f7d6ac 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.time +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue @@ -61,6 +62,7 @@ class InstantTest { FromTest("2020-11-04T24:00:00Z", 1604534400, 0), ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromIso8601() { for ((idx, test) in iso8601Tests.withIndex()) { @@ -99,6 +101,7 @@ class InstantTest { TimestampFormat.ISO_8601_CONDENSED_DATE to Iso8601FmtTest::expectedIso8601CondDate, ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFormatAsIso8601() { for ((idx, test) in iso8601FmtTests.withIndex()) { @@ -122,6 +125,7 @@ class InstantTest { FromTest("Thu, 05 Nov 2020 19:22:37 -1245", 1604650057, 0), ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromRfc5322() { for ((idx, test) in rfc5322Tests.withIndex()) { @@ -139,6 +143,7 @@ class InstantTest { FmtTest(1604650057, 0, "Fri, 06 Nov 2020 08:07:37 GMT"), ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFormatAsRfc5322() { for ((idx, test) in rfc5322FmtTests.withIndex()) { @@ -157,6 +162,7 @@ class InstantTest { FmtTest(1604604157, 345_006_000, "1604604157.345006"), ) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFormatAsEpochSeconds() { for ((idx, test) in epochFmtTests.withIndex()) { @@ -167,6 +173,7 @@ class InstantTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testToEpochDouble() { val sec = 1604604157L @@ -177,6 +184,7 @@ class InstantTest { assertTrue(kotlin.math.abs(0.012345 - fracSecs) < 0.00001) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testGetCurrentTime() { val currentTime = Instant.now() @@ -186,6 +194,7 @@ class InstantTest { assertTrue(currentTime.epochSeconds > pastInstant) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testGetEpochMilliseconds() { val instant = Instant.fromEpochSeconds(1602878160, 200_000) @@ -197,6 +206,7 @@ class InstantTest { assertEquals(expected2, instantWithMilli.epochMilliseconds) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromEpochMilliseconds() { val ts1 = 1602878160000L @@ -208,6 +218,7 @@ class InstantTest { assertEquals(expected2, Instant.fromEpochMilliseconds(ts2)) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNegativeFromEpochSeconds() { val timestamp = Instant.fromEpochSeconds(-806976000L) @@ -217,7 +228,8 @@ class InstantTest { // Select tests pulled from edge cases/tickets in the V2 Java SDK. // Always good to learn from others... class V2JavaSdkTests { - @Test + @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Test fun v2JavaSdkTt0031561767() { val input = "Fri, 16 May 2014 23:56:46 GMT" val instant: Instant = Instant.fromRfc5322(input) @@ -228,7 +240,8 @@ class InstantTest { * Tests the Date marshalling and unmarshalling. Asserts that the value is * same before and after marshalling/unmarshalling */ - @Test + @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Test fun v2JavaSdkUnixTimestampRoundtrip() { // v2 sdk used currentTimeMillis(), instead we just hard code a value here // otherwise that would be a JVM specific test since since we do not (yet) have @@ -252,6 +265,7 @@ class InstantTest { // been accepted by the parser. } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testPlusMinusDuration() { val start = Instant.fromEpochSeconds(1000, 1000) @@ -261,6 +275,7 @@ class InstantTest { assertEquals(Instant.fromEpochSeconds(990, 0), start - offset) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testRoundTripUtcOffset() { // sanity check we only ever emit UTC timestamps (e.g. round trip a response with UTC offset) @@ -279,6 +294,7 @@ class InstantTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testUntil() { val untilTests = mapOf( diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt index 0a4f50d4a7..8403993c90 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt @@ -5,12 +5,14 @@ package aws.smithy.kotlin.runtime.time +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds class ManualClockTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testAdvance() { val epoch = 1634413920L diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt index 8aba9c6b36..0710c73dd2 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt @@ -4,10 +4,12 @@ */ package aws.smithy.kotlin.runtime.time +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class ParseEpochTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itParsesEpochTimestamps() { val tests = listOf( diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt index 5a9897bb55..4a600d8fe3 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt @@ -15,6 +15,7 @@ import kotlin.test.* import kotlin.time.Duration.Companion.seconds class CachedValueTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNull() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -25,6 +26,7 @@ class CachedValueTest { assertNull(value.get()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testExpiration() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -41,6 +43,7 @@ class CachedValueTest { assertNull(value.get()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testExpirationBuffer() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -57,6 +60,7 @@ class CachedValueTest { assertNull(value.get()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testGetOrLoad() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -93,6 +97,7 @@ class CachedValueTest { assertEquals(2, count) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testClose() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -107,6 +112,7 @@ class CachedValueTest { assertFailsWith { value.get() } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun throwsAfterCloseDuringGetOrLoad() = runTest { val epoch = Instant.fromEpochSeconds(0) diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt index 70d11b6792..ef4a8ba68d 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt @@ -10,10 +10,12 @@ import aws.smithy.kotlin.runtime.serde.SerialKind import aws.smithy.kotlin.runtime.serde.cbor.encoding.Tag import aws.smithy.kotlin.runtime.serde.deserializeList import aws.smithy.kotlin.runtime.serde.deserializeMap +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertFails class CborDeserializerErrorTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - float64 - incomplete float64 at end of buf`() { val payload = "0xfb00000000000000".toByteArray() @@ -26,6 +28,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x1900".toByteArray() @@ -38,6 +41,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x1a000000".toByteArray() @@ -50,6 +54,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x3900".toByteArray() @@ -62,6 +67,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x5900".toByteArray() @@ -74,6 +80,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x5b00000000000000".toByteArray() @@ -86,6 +93,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 2 - arg len 2 greater than remaining buf len`() { val payload = "0xd900".toByteArray() @@ -97,6 +105,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 4 - arg len 4 greater than remaining buf len`() { val payload = "0xda000000".toByteArray() @@ -108,6 +117,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - unexpected minor value 31`() { val payload = "0x1f".toByteArray() @@ -120,6 +130,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x98".toByteArray() @@ -134,6 +145,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x9a000000".toByteArray() @@ -148,6 +160,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x9b00000000000000".toByteArray() @@ -162,6 +175,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 1 - arg len 1 greater than remaining buf len`() { val payload = "0xb8".toByteArray() @@ -177,6 +191,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 4 - arg len 4 greater than remaining buf len`() { val payload = "0xba000000".toByteArray() @@ -192,6 +207,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - float32 - incomplete float32 at end of buf`() { val payload = "0xfa000000".toByteArray() @@ -204,6 +220,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x7900".toByteArray() @@ -216,6 +233,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x9900".toByteArray() @@ -230,6 +248,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - unexpected minor value 31`() { val payload = "0x3f".toByteArray() @@ -242,6 +261,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x7b00000000000000".toByteArray() @@ -254,6 +274,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - unexpected minor value 31`() { val payload = "0xff".toByteArray() @@ -266,6 +287,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x78".toByteArray() @@ -278,6 +300,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - unexpected minor value 31`() { val payload = "0xdf".toByteArray() @@ -289,6 +312,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x58".toByteArray() @@ -301,6 +325,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x5a000000".toByteArray() @@ -313,6 +338,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 2 - arg len 2 greater than remaining buf len`() { val payload = "0xb900".toByteArray() @@ -328,6 +354,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 8 - arg len 8 greater than remaining buf len`() { val payload = "0xbb00000000000000".toByteArray() @@ -343,6 +370,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 8 - arg len 8 greater than remaining buf len`() { val payload = "0xdb00000000000000".toByteArray() @@ -354,6 +382,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x18".toByteArray() @@ -366,6 +395,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - float16 - incomplete float16 at end of buf`() { val payload = "0xf900".toByteArray() @@ -378,6 +408,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x1b00000000000000".toByteArray() @@ -390,6 +421,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x38".toByteArray() @@ -402,6 +434,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x3a000000".toByteArray() @@ -414,6 +447,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x3b00000000000000".toByteArray() @@ -426,6 +460,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x7a000000".toByteArray() @@ -438,6 +473,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 1 - arg len 1 greater than remaining buf len`() { val payload = "0xd8".toByteArray() @@ -449,6 +485,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - indefinite list - invalid item - arg len 1 greater than remaining buf len`() { val payload = "0x9f18".toByteArray() @@ -463,6 +500,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - list - eof after head - unexpected end of payload`() { val payload = "0x81".toByteArray() @@ -477,6 +515,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - list - invalid item - arg len 1 greater than remaining buf len`() { val payload = "0x8118".toByteArray() @@ -491,6 +530,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - indefinite list - no break - expected break marker`() { val payload = "0x9f".toByteArray() @@ -505,6 +545,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - non-string key - unexpected major type 0 for map key`() { val payload = "0xa100".toByteArray() @@ -520,6 +561,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - invalid key - slice len 1 greater than remaining buf len`() { val payload = "0xa17801".toByteArray() @@ -535,6 +577,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - invalid value - arg len 1 greater than remaining buf len`() { val payload = "0xa163666f6f18".toByteArray() @@ -550,6 +593,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - no break - expected break marker`() { val payload = "0xbf".toByteArray() @@ -565,6 +609,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - non-string key - unexpected major type 0 for map key`() { val payload = "0xbf00".toByteArray() @@ -580,6 +625,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - invalid key - slice len 1 greater than remaining buf len`() { val payload = "0xbf7801".toByteArray() @@ -595,6 +641,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - invalid value - arg len 1 greater than remaining buf len`() { val payload = "0xbf63666f6f18".toByteArray() @@ -610,6 +657,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - eof after head - unexpected end of payload`() { val payload = "0xa1".toByteArray() @@ -625,6 +673,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - invalid nested definite - decode subslice slice len 1 greater than remaining buf len`() { val payload = "0x5f5801".toByteArray() @@ -637,6 +686,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - no break - expected break marker`() { val payload = "0x7f".toByteArray() @@ -649,6 +699,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - invalid nested major - unexpected major type 2 in indefinite slice`() { val payload = "0x7f40".toByteArray() @@ -661,6 +712,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - nested indefinite - nested indefinite slice`() { val payload = "0x7f7f".toByteArray() @@ -673,6 +725,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - invalid nested definite - decode subslice - slice len 1 greater than remaining buf len`() { val payload = "0x7f7801".toByteArray() @@ -685,6 +738,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - invalid nested major - unexpected major type 3 in indefinite slice`() { val payload = "0x5f60".toByteArray() @@ -697,6 +751,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - no break - expected break marker`() { val payload = "0x5f".toByteArray() @@ -709,6 +764,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - nested indefinite - nested indefinite slice`() { val payload = "0x5f5f".toByteArray() @@ -721,6 +777,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - 1 - not enough bytes - slice len 1 greater than remaining buf len`() { val payload = "0x7801".toByteArray() @@ -733,6 +790,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - 1 - not enough bytes - slice len 1 greater than remaining buf len`() { val payload = "0x5801".toByteArray() @@ -745,6 +803,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidTag - invalid value - arg len 1 greater than remaining buf len`() { val payload = "0xc118".toByteArray() @@ -756,6 +815,7 @@ class CborDeserializerErrorTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidTag - eof - unexpected end of payload`() { val payload = "0xc1".toByteArray() diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt index a9d4b0a7d1..7c07c7d0c7 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt @@ -24,6 +24,7 @@ internal fun String.toByteArray(): ByteArray = this .toByteArray() class CborDeserializerSuccessTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - undefined`() { val payload = "0xf7".toByteArray() @@ -35,6 +36,7 @@ class CborDeserializerSuccessTest { assertEquals(null, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float64 - 1dot625`() { val payload = "0xfb3ffa000000000000".toByteArray() @@ -46,6 +48,7 @@ class CborDeserializerSuccessTest { assertEquals(1.625, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 0 - max`() { val payload = "0x17".toByteArray() @@ -57,6 +60,7 @@ class CborDeserializerSuccessTest { assertEquals(23, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 8 - min`() { val payload = "0x1b0000000000000000".toByteArray() @@ -68,6 +72,7 @@ class CborDeserializerSuccessTest { assertEquals(0uL, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 8 - max`() { val payload = "0x1bffffffffffffffff".toByteArray() @@ -76,6 +81,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 8 - min`() { val payload = "0x3b0000000000000000".toByteArray() @@ -87,6 +93,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - true`() { val payload = "0xf5".toByteArray() @@ -98,6 +105,7 @@ class CborDeserializerSuccessTest { assertEquals(true, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 4 - min`() { val payload = "0x1a00000000".toByteArray() @@ -109,6 +117,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 4 - max`() { val payload = "0x1affffffff".toByteArray() @@ -118,6 +127,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value.toUInt()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 1 - min`() { val payload = "0x3800".toByteArray() @@ -129,6 +139,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - subnormal`() { val payload = "0xf90050".toByteArray() @@ -140,6 +151,7 @@ class CborDeserializerSuccessTest { assertEquals(4.7683716E-6f, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - NaN - LSB`() { val payload = "0xf97c01".toByteArray() @@ -151,6 +163,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 1 - min`() { val payload = "0x1800".toByteArray() @@ -162,6 +175,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 0 - min`() { val payload = "0x20".toByteArray() @@ -173,6 +187,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - -Inf`() { val payload = "0xf9fc00".toByteArray() @@ -184,6 +199,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 8 - max`() { val payload = "0x3bfffffffffffffffe".toByteArray() @@ -192,6 +208,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 0 - min`() { val payload = "0x00".toByteArray() @@ -203,6 +220,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 1 - max`() { val payload = "0x18ff".toByteArray() @@ -211,6 +229,7 @@ class CborDeserializerSuccessTest { assertEquals(255u, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 2 - min`() { val payload = "0x190000".toByteArray() @@ -222,6 +241,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 1 - max`() { val payload = "0x38ff".toByteArray() @@ -233,6 +253,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 2 - min`() { val payload = "0x390000".toByteArray() @@ -244,6 +265,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float64 - +Inf`() { val payload = "0xfb7ff0000000000000".toByteArray() @@ -255,6 +277,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 4 - min`() { val payload = "0x3a00000000".toByteArray() @@ -266,6 +289,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 4 - max`() { val payload = "0x3affffffff".toByteArray() @@ -278,6 +302,7 @@ class CborDeserializerSuccessTest { assertEquals(res, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - NaN - MSB`() { val payload = "0xf97e00".toByteArray() @@ -289,6 +314,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float32 - +Inf`() { val payload = "0xfa7f800000".toByteArray() @@ -300,6 +326,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 2 - max`() { val payload = "0x19ffff".toByteArray() @@ -308,6 +335,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value.toUShort()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 2 - max`() { val payload = "0x39ffff".toByteArray() @@ -316,6 +344,7 @@ class CborDeserializerSuccessTest { assertEquals(65536u, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - false`() { val payload = "0xf4".toByteArray() @@ -327,6 +356,7 @@ class CborDeserializerSuccessTest { assertEquals(false, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - null`() { val payload = "0xf6".toByteArray() @@ -338,6 +368,7 @@ class CborDeserializerSuccessTest { assertEquals(null, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 0 - max`() { val payload = "0x37".toByteArray() @@ -349,6 +380,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - +Inf`() { val payload = "0xf97c00".toByteArray() @@ -360,6 +392,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float32 - 1dot625`() { val payload = "0xfa3fd00000".toByteArray() @@ -371,6 +404,7 @@ class CborDeserializerSuccessTest { assertEquals(1.625f, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite slice - len = 0`() { val payload = "0x40".toByteArray() @@ -382,6 +416,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite slice - len greater than 0`() { val payload = "0x43666f6f".toByteArray() @@ -398,6 +433,7 @@ class CborDeserializerSuccessTest { assertEquals(3, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite string - len = 0`() { val payload = "0x60".toByteArray() @@ -409,6 +445,7 @@ class CborDeserializerSuccessTest { assertEquals("", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite string - len greater than 0`() { val payload = "0x63666f6f".toByteArray() @@ -420,6 +457,7 @@ class CborDeserializerSuccessTest { assertEquals("foo", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len greater than 0`() { val payload = "0x5f43666f6f40ff".toByteArray() @@ -436,6 +474,7 @@ class CborDeserializerSuccessTest { assertEquals(3, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len greater than 0 - len greater than 0`() { val payload = "0x5f43666f6f43666f6fff".toByteArray() @@ -450,6 +489,7 @@ class CborDeserializerSuccessTest { assertEquals(expected.size, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len = 0`() { val payload = "0x5fff".toByteArray() @@ -461,6 +501,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len = 0 explicit`() { val payload = "0x5f40ff".toByteArray() @@ -472,6 +513,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len = 0 - len greater than 0`() { val payload = "0x5f4043666f6fff".toByteArray() @@ -486,6 +528,7 @@ class CborDeserializerSuccessTest { assertEquals(expected.size, result.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len = 0`() { val payload = "0x7fff".toByteArray() @@ -497,6 +540,7 @@ class CborDeserializerSuccessTest { assertEquals("", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len = 0 - explicit`() { val payload = "0x7f60ff".toByteArray() @@ -508,6 +552,7 @@ class CborDeserializerSuccessTest { assertEquals("", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len = 0 - len greater than 0`() { val payload = "0x7f6063666f6fff".toByteArray() @@ -519,6 +564,7 @@ class CborDeserializerSuccessTest { assertEquals("foo", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len greater than 0 - len = 0`() { val payload = "0x7f63666f6f60ff".toByteArray() @@ -530,6 +576,7 @@ class CborDeserializerSuccessTest { assertEquals("foo", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len greater than 0 - len greater than 0`() { val payload = "0x7f63666f6f63666f6fff".toByteArray() @@ -541,6 +588,7 @@ class CborDeserializerSuccessTest { assertEquals("foofoo", result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of one uint - 1 - max`() { val payload = "0x8118ff".toByteArray() @@ -558,6 +606,7 @@ class CborDeserializerSuccessTest { assertEquals(255u, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of one uint - 8 - min`() { val payload = "0x811b0000000000000000".toByteArray() @@ -575,6 +624,7 @@ class CborDeserializerSuccessTest { assertEquals(0, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 1 - min`() { val payload = "0x9f1800ff".toByteArray() @@ -592,6 +642,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 2 - max`() { val payload = "0x9f19ffffff".toByteArray() @@ -609,6 +660,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 2 - min`() { val payload = "0x9f390000ff".toByteArray() @@ -626,6 +678,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 4 - max`() { val payload = "0x811affffffff".toByteArray() @@ -643,6 +696,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 8 - min`() { val payload = "0x9f1b0000000000000000ff".toByteArray() @@ -660,6 +714,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MIN_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 2 - max`() { val payload = "0x9f39ffffff".toByteArray() @@ -677,6 +732,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - NaN - LSB`() { val payload = "0x9ff97c01ff".toByteArray() @@ -694,6 +750,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 1 - max`() { val payload = "0x8138ff".toByteArray() @@ -711,6 +768,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 2 - min`() { val payload = "0x81390000".toByteArray() @@ -728,6 +786,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of null`() { val payload = "0x81f6".toByteArray() @@ -741,6 +800,7 @@ class CborDeserializerSuccessTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 -Inf`() { val payload = "0x81f9fc00".toByteArray() @@ -758,6 +818,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 4 - min`() { val payload = "0x9f1a00000000ff".toByteArray() @@ -775,6 +836,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 1 - min`() { val payload = "0x811800".toByteArray() @@ -792,6 +854,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 0 - max`() { val payload = "0x9f17ff".toByteArray() @@ -809,6 +872,7 @@ class CborDeserializerSuccessTest { assertEquals(23u, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 0 - min`() { val payload = "0x9f20ff".toByteArray() @@ -826,6 +890,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 1 - max`() { val payload = "0x9f38ffff".toByteArray() @@ -843,6 +908,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of null`() { val payload = "0x9ff6ff".toByteArray() @@ -856,6 +922,7 @@ class CborDeserializerSuccessTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 1 - max`() { val payload = "0x9f18ffff".toByteArray() @@ -873,6 +940,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MAX_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 4 - max`() { val payload = "0x9f1affffffffff".toByteArray() @@ -890,6 +958,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of _ uint - 8 - max`() { val payload = "0x9f1bffffffffffffffffff".toByteArray() @@ -912,6 +981,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of boolean true`() { val payload = "0x9ff5ff".toByteArray() @@ -929,6 +999,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of undefined`() { val payload = "0x9ff7ff".toByteArray() @@ -946,6 +1017,7 @@ class CborDeserializerSuccessTest { assertEquals(0, actual.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 0 - max`() { val payload = "0x8117".toByteArray() @@ -963,6 +1035,7 @@ class CborDeserializerSuccessTest { assertEquals(23u, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 8 - max`() { val payload = "0x811bffffffffffffffff".toByteArray() @@ -983,6 +1056,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 0 - min`() { val payload = "0x8120".toByteArray() @@ -1000,6 +1074,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 0 - max`() { val payload = "0x8137".toByteArray() @@ -1017,6 +1092,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 4 - min`() { val payload = "0x813a00000000".toByteArray() @@ -1034,6 +1110,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of boolean true`() { val payload = "0x81f5".toByteArray() @@ -1051,6 +1128,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float32`() { val payload = "0x81fa7f800000".toByteArray() @@ -1068,6 +1146,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float64`() { val payload = "0x81fb7ff0000000000000".toByteArray() @@ -1085,6 +1164,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 2 - min`() { val payload = "0x9f190000ff".toByteArray() @@ -1102,6 +1182,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - NaN - MSB`() { val payload = "0x9ff97e00ff".toByteArray() @@ -1119,6 +1200,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 0 - max`() { val payload = "0x9f37ff".toByteArray() @@ -1136,6 +1218,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 1 - min`() { val payload = "0x9f3800ff".toByteArray() @@ -1153,6 +1236,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 8 - min`() { val payload = "0x9f3b0000000000000000ff".toByteArray() @@ -1170,6 +1254,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 8 - max`() { val payload = "0x9f3bfffffffffffffffeff".toByteArray() @@ -1191,6 +1276,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of boolean false`() { val payload = "0x81f4".toByteArray() @@ -1208,6 +1294,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 0 - min`() { val payload = "0x9f00ff".toByteArray() @@ -1225,6 +1312,7 @@ class CborDeserializerSuccessTest { assertEquals(0, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 4 - min`() { val payload = "0x9f3a00000000ff".toByteArray() @@ -1242,6 +1330,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 4 - max`() { val payload = "0x9f3affffffffff".toByteArray() @@ -1259,6 +1348,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - +Inf`() { val payload = "0x9ff97c00ff".toByteArray() @@ -1276,6 +1366,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 0 - min`() { val payload = "0x8100".toByteArray() @@ -1293,6 +1384,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 1 - min`() { val payload = "0x813800".toByteArray() @@ -1310,6 +1402,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - -Inf`() { val payload = "0x9ff9fc00ff".toByteArray() @@ -1327,6 +1420,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float32`() { val payload = "0x9ffa7f800000ff".toByteArray() @@ -1344,6 +1438,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 2 - min`() { val payload = "0x81190000".toByteArray() @@ -1361,6 +1456,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 4 - min`() { val payload = "0x811a00000000".toByteArray() @@ -1378,6 +1474,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 - +Inf`() { val payload = "0x81f97c00".toByteArray() @@ -1395,6 +1492,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float64`() { val payload = "0x9ffb7ff0000000000000ff".toByteArray() @@ -1412,6 +1510,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 - NaN - MSB`() { val payload = "0x81f97e00".toByteArray() @@ -1429,6 +1528,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 - NaN - LSB`() { val payload = "0x81f97c01".toByteArray() @@ -1446,6 +1546,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of boolean false`() { val payload = "0x9ff4ff".toByteArray() @@ -1463,6 +1564,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 8 - min`() { val payload = "0x813b0000000000000000".toByteArray() @@ -1480,6 +1582,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 8 - max`() { val payload = "0x813bfffffffffffffffe".toByteArray() @@ -1501,6 +1604,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of undefined`() { val payload = "0x81f7".toByteArray() @@ -1514,6 +1618,7 @@ class CborDeserializerSuccessTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 2 - max`() { val payload = "0x8119ffff".toByteArray() @@ -1531,6 +1636,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 2 - max`() { val payload = "0x8139ffff".toByteArray() @@ -1548,6 +1654,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 4 - max`() { val payload = "0x813affffffff".toByteArray() @@ -1565,6 +1672,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual[0]) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - _ uint - 8 - max`() { val payload = "0xbf63666f6f1bffffffffffffffffff".toByteArray() @@ -1588,6 +1696,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of null`() { val payload = "0xa163666f6ff6".toByteArray() @@ -1606,6 +1715,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - _ negint - 4 - max`() { val payload = "0xbf63666f6f3affffffffff".toByteArray() @@ -1624,6 +1734,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - _ float16 - -Inf`() { val payload = "0xbf63666f6ff9fc00ff".toByteArray() @@ -1642,6 +1753,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 2 - max`() { val payload = "0xa163666f6f19ffff".toByteArray() @@ -1660,6 +1772,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 1 - min`() { val payload = "0xa163666f6f3800".toByteArray() @@ -1678,6 +1791,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of undefined`() { val payload = "0xbf63666f6ff7ff".toByteArray() @@ -1696,6 +1810,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 0 - max`() { val payload = "0xa163666f6f17".toByteArray() @@ -1714,6 +1829,7 @@ class CborDeserializerSuccessTest { assertEquals(23, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 0 - max`() { val payload = "0xbf63666f6f17ff".toByteArray() @@ -1732,6 +1848,7 @@ class CborDeserializerSuccessTest { assertEquals(23, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 1 - min`() { val payload = "0xbf63666f6f1800ff".toByteArray() @@ -1750,6 +1867,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 8 - min`() { val payload = "0xbf63666f6f1b0000000000000000ff".toByteArray() @@ -1768,6 +1886,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 8 - max`() { val payload = "0xbf63666f6f3bfffffffffffffffeff".toByteArray() @@ -1791,6 +1910,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 2 - min`() { val payload = "0xa163666f6f190000".toByteArray() @@ -1809,6 +1929,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float16 - NaN - MSB`() { val payload = "0xbf63666f6ff97e00ff".toByteArray() @@ -1827,6 +1948,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 0 - min`() { val payload = "0xa163666f6f20".toByteArray() @@ -1845,6 +1967,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - float16 - -Inf`() { val payload = "0xa163666f6ff9fc00".toByteArray() @@ -1863,6 +1986,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 1 - max`() { val payload = "0xbf63666f6f38ffff".toByteArray() @@ -1881,6 +2005,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 8 - min`() { val payload = "0xbf63666f6f3b0000000000000000ff".toByteArray() @@ -1899,6 +2024,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 1 - min`() { val payload = "0xa163666f6f1800".toByteArray() @@ -1917,6 +2043,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 2 - min`() { val payload = "0xbf63666f6f190000ff".toByteArray() @@ -1935,6 +2062,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 2 - max`() { val payload = "0xbf63666f6f19ffffff".toByteArray() @@ -1953,6 +2081,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 0 - max`() { val payload = "0xbf63666f6f37ff".toByteArray() @@ -1971,6 +2100,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 2 - max`() { val payload = "0xbf63666f6f39ffffff".toByteArray() @@ -1989,6 +2119,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of boolean true`() { val payload = "0xa163666f6ff5".toByteArray() @@ -2007,6 +2138,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of boolean true`() { val payload = "0xbf63666f6ff5ff".toByteArray() @@ -2025,6 +2157,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of boolean false`() { val payload = "0xbf63666f6ff4ff".toByteArray() @@ -2043,6 +2176,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 8 - max`() { val payload = "0xa163666f6f1bffffffffffffffff".toByteArray() @@ -2066,6 +2200,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - float16 - NaN - LSB`() { val payload = "0xa163666f6ff97c01".toByteArray() @@ -2084,6 +2219,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 0 - min`() { val payload = "0xbf63666f6f00ff".toByteArray() @@ -2102,6 +2238,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 4 - min`() { val payload = "0xbf63666f6f3a00000000ff".toByteArray() @@ -2120,6 +2257,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float32`() { val payload = "0xbf63666f6ffa7f800000ff".toByteArray() @@ -2138,6 +2276,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of uint - 0 - min`() { val payload = "0xa163666f6f00".toByteArray() @@ -2156,6 +2295,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 1 - max`() { val payload = "0xa163666f6f38ff".toByteArray() @@ -2174,6 +2314,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - float64`() { val payload = "0xa163666f6ffb7ff0000000000000".toByteArray() @@ -2192,6 +2333,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float16 - NaN - LSB`() { val payload = "0xbf63666f6ff97c01ff".toByteArray() @@ -2210,6 +2352,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 8 - min`() { val payload = "0xa163666f6f1b0000000000000000".toByteArray() @@ -2228,6 +2371,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 8 - max`() { val payload = "0xa163666f6f3bfffffffffffffffe".toByteArray() @@ -2251,6 +2395,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of undefined`() { val payload = "0xa163666f6ff7".toByteArray() @@ -2269,6 +2414,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of float16 - NaN - MSB`() { val payload = "0xa163666f6ff97e00".toByteArray() @@ -2287,6 +2433,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 8 - min`() { val payload = "0xa163666f6f3b0000000000000000".toByteArray() @@ -2305,6 +2452,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 4 - max`() { val payload = "0xbf63666f6f1affffffffff".toByteArray() @@ -2323,6 +2471,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 1 - min`() { val payload = "0xbf63666f6f3800ff".toByteArray() @@ -2341,6 +2490,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float16 - +Inf`() { val payload = "0xbf63666f6ff97c00ff".toByteArray() @@ -2359,6 +2509,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 2 - min`() { val payload = "0xa163666f6f390000".toByteArray() @@ -2377,6 +2528,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of false`() { val payload = "0xa163666f6ff4".toByteArray() @@ -2395,6 +2547,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of float32`() { val payload = "0xa163666f6ffa7f800000".toByteArray() @@ -2413,6 +2566,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 1 - max`() { val payload = "0xbf63666f6f18ffff".toByteArray() @@ -2431,6 +2585,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MAX_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 0 - max`() { val payload = "0xa163666f6f37".toByteArray() @@ -2449,6 +2604,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 4 - max`() { val payload = "0xa163666f6f3affffffff".toByteArray() @@ -2467,6 +2623,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of float16 - +Inf`() { val payload = "0xa163666f6ff97c00".toByteArray() @@ -2485,6 +2642,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float64`() { val payload = "0xbf63666f6ffb7ff0000000000000ff".toByteArray() @@ -2503,6 +2661,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of uint - 1 - max`() { val payload = "0xa163666f6f18ff".toByteArray() @@ -2521,6 +2680,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MAX_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 4 - max`() { val payload = "0xa163666f6f1affffffff".toByteArray() @@ -2539,6 +2699,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 2 - max`() { val payload = "0xa163666f6f39ffff".toByteArray() @@ -2557,6 +2718,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 4 - min`() { val payload = "0xbf63666f6f1a00000000ff".toByteArray() @@ -2575,6 +2737,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 0 - min`() { val payload = "0xbf63666f6f20ff".toByteArray() @@ -2593,6 +2756,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of null`() { val payload = "0xbf63666f6ff6ff".toByteArray() @@ -2611,6 +2775,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of uint - 4 - min`() { val payload = "0xa163666f6f1a00000000".toByteArray() @@ -2629,6 +2794,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 4 - min`() { val payload = "0xa163666f6f3a00000000".toByteArray() @@ -2647,6 +2813,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 2 - min`() { val payload = "0xbf63666f6f390000ff".toByteArray() diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt index a94891c5cb..fa42d5c347 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt @@ -5,11 +5,13 @@ package aws.smithy.kotlin.runtime.serde.cbor import aws.smithy.kotlin.runtime.io.SdkBuffer +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class CborDeserializerTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNumberDeserializationThrowsOnOutOfRange() { val serializer = CborSerializer() diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt index 918fe764ba..503bf169ae 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt @@ -17,6 +17,7 @@ import kotlin.time.Duration.Companion.seconds @OptIn(ExperimentalStdlibApi::class) class CborSerializerTest { + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBoolean() { val tests = listOf(true, false, true, false, false) @@ -35,6 +36,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testByte() { val tests = listOf(Byte.MIN_VALUE, -34, 0, 39, Byte.MAX_VALUE) @@ -52,6 +54,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testChar() { val tests = listOf( @@ -76,6 +79,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInt() { val tests = listOf(Int.MIN_VALUE, -34, 0, 39, 402, Int.MAX_VALUE) @@ -93,6 +97,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testLong() { val tests = listOf(Long.MIN_VALUE, -34, 0, 39, 402, Long.MAX_VALUE) @@ -110,6 +115,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testFloat() { val tests = listOf( @@ -141,6 +147,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDouble() { val tests = listOf( @@ -168,6 +175,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigInteger() { val tests = listOf( @@ -199,6 +207,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigDecimal() { val tests = listOf( @@ -238,6 +247,7 @@ class CborSerializerTest { assertEquals("c48221196ab3", serializer.toByteArray().toHexString()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testString() { val tests = listOf( @@ -264,6 +274,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testInstant() { val tests = listOf( @@ -299,6 +310,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testNull() { val serializer = CborSerializer() @@ -310,6 +322,7 @@ class CborSerializerTest { assertNull(deserializer.deserializeNull()) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testDocument() { val serializer = CborSerializer() @@ -318,6 +331,7 @@ class CborSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testList() { val serializer = CborSerializer() @@ -354,6 +368,7 @@ class CborSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun testMap() { val serializer = CborSerializer() diff --git a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt index ea5662dba7..64eded7362 100644 --- a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt +++ b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt @@ -8,6 +8,7 @@ package aws.smithy.kotlin.runtime.serde.formurl import aws.smithy.kotlin.runtime.serde.* import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.TimestampFormat +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -99,6 +100,7 @@ class FormUrlSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesStructs() { val struct = PrimitiveStructTest() @@ -123,6 +125,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesEmptyStrings() { // see `string` from https://awslabs.github.io/smithy/1.0/spec/aws/aws-query-protocol.html#x-www-form-urlencoded-shape-serialization @@ -185,6 +188,7 @@ class FormUrlSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesLists() { val input = ListInput( @@ -206,6 +210,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesFlattenedLists() { // xmlFlattened() lists @@ -230,6 +235,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesListsWithRenamedMember() { // xmlName() trait on list member @@ -251,6 +257,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesClassWithNestedClassField() { val a = A( @@ -310,6 +317,7 @@ class FormUrlSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesMaps() { val input = MapInput( @@ -343,6 +351,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesMapOfLists() { val input = MapInput( @@ -391,6 +400,7 @@ class FormUrlSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesMapOfMapOfPrimitive() { val expected = """ @@ -412,6 +422,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesFlattenedMaps() { val input = MapInput( @@ -480,6 +491,7 @@ class FormUrlSerializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesNestedMaps() { val input = NestedStructureInput( @@ -499,6 +511,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesNestedLists() { val input = NestedStructureInput( @@ -516,6 +529,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesRenamedMaps() { // map with xmlName key/value overrides @@ -553,6 +567,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesQueryLiterals() { // test SdkObjectDescriptor with query literals trait @@ -584,6 +599,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itEncodesWhitespace() { val input = MapInput( @@ -608,6 +624,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesEmptyList() { val input = ListInput( @@ -625,6 +642,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesEmptyListInMap() { val input = MapInput( diff --git a/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt b/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt index bd96e92173..2ee8532d3c 100644 --- a/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt +++ b/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt @@ -99,6 +99,7 @@ class JsonDeserializerTest { assertEquals(expected, actual) } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itHandlesBigInteger() { val tests = listOf( @@ -116,6 +117,7 @@ class JsonDeserializerTest { } } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itHandlesBigDecimal() { val tests = listOf( diff --git a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt index 140fea8d25..ccc9c5670a 100644 --- a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt +++ b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt @@ -12,6 +12,7 @@ import aws.smithy.kotlin.runtime.http.request.url import aws.smithy.kotlin.runtime.net.Host import aws.smithy.kotlin.runtime.operation.ExecutionContext import io.kotest.matchers.string.shouldContain +import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertFails @@ -19,6 +20,7 @@ class HttpRequestTestBuilderTest { private val execContext = ExecutionContext() + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsHttpMethod() { val ex = assertFails { @@ -37,6 +39,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected method: `POST`; got: `GET`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsUri() { val ex = assertFails { @@ -57,6 +60,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected path: `/foo`; got: `/bar`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsQueryParameters() { val ex = assertFails { @@ -85,6 +89,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("Query parameter `Hi` does not contain expected value `Hello%20there`. Actual values: [Hello]") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsForbiddenQueryParameters() { val ex = assertFails { @@ -115,6 +120,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("forbidden query parameter found: `foobar`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsRequiredQueryParameters() { val ex = assertFails { @@ -146,6 +152,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("required query parameter not found: `requiredQuery`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsHeaders() { val ex = assertFails { @@ -186,6 +193,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected header `k2` has no actual values") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsListsOfHeaders() { val ex = assertFails { @@ -214,6 +222,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected header name value pair not equal: `k2:v3, v4, v5`; found: `k2:v3, v4") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsForbiddenHeaders() { val ex = assertFails { @@ -257,6 +266,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("forbidden header found: `forbiddenHeader`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsRequiredHeaders() { val ex = assertFails { @@ -301,6 +311,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected required header not found: `requiredHeader`") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itFailsWhenBodyAssertFunctionIsMissing() { val ex = assertFails { @@ -320,6 +331,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("body assertion function is required if an expected body is defined") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itCallsBodyAssertFunction() { val ex = assertFails { @@ -340,6 +352,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("actual bytes read does not match expected") } + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsHostWhenSet() { val ex = assertFails { diff --git a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt index 5a66bd33be..8ca4277065 100644 --- a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt +++ b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt @@ -9,11 +9,13 @@ import aws.smithy.kotlin.runtime.http.readAll import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.operation.ExecutionContext import io.kotest.matchers.string.shouldContain +import kotlin.test.Ignore import kotlin.test.Test class HttpResponseTestBuilderTest { private data class Foo(val bar: Int, val baz: String) + @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test fun itBuildsResponses() { httpResponseTest { From 3e1b7588a278c6a48fbadd8c8f95f8d3ad5c106d Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Fri, 20 Dec 2024 18:19:34 -0500 Subject: [PATCH 11/33] ktlint --- .../test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt index 804ef7517a..8e0c4fc45e 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt @@ -56,7 +56,6 @@ abstract class AbstractBufferedSinkTest( @Ignore // FIXME Re-enable after Kotlin/Native implementation @Test - fun testWriteInt() { sink.writeInt(0xdeadbeef.toInt()) sink.flush() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt index 2507f7d6ac..b7d31928b4 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt @@ -229,7 +229,7 @@ class InstantTest { // Always good to learn from others... class V2JavaSdkTests { @Ignore // FIXME Re-enable after Kotlin/Native implementation - @Test + @Test fun v2JavaSdkTt0031561767() { val input = "Fri, 16 May 2014 23:56:46 GMT" val instant: Instant = Instant.fromRfc5322(input) @@ -241,7 +241,7 @@ class InstantTest { * same before and after marshalling/unmarshalling */ @Ignore // FIXME Re-enable after Kotlin/Native implementation - @Test + @Test fun v2JavaSdkUnixTimestampRoundtrip() { // v2 sdk used currentTimeMillis(), instead we just hard code a value here // otherwise that would be a JVM specific test since since we do not (yet) have From 7f27659e1e4045290f43004509d432725b6b8fd3 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 6 Jan 2025 12:45:50 -0500 Subject: [PATCH 12/33] IgnoreNative --- .../CachedCredentialsProviderTest.kt | 5 ++-- .../runtime/auth/awssigning/PresignerTest.kt | 5 ++-- .../awssigning/DefaultCanonicalizerTest.kt | 13 +++++----- .../awssigning/DefaultRequestMutatorTest.kt | 4 +-- .../DefaultSignatureCalculatorTest.kt | 9 ++++--- .../AwsChunkedByteReadChannelTestBase.kt | 3 ++- .../awssigning/tests/AwsChunkedTestBase.kt | 12 ++++----- .../awssigning/tests/BasicSigningTestBase.kt | 10 ++++---- .../http/auth/AwsHttpSignerTestBase.kt | 9 ++++--- .../common/test/ClockSkewInterceptorTest.kt | 3 ++- .../http/engine/HttpCallContextTest.kt | 3 ++- .../http/engine/HttpClientEngineTest.kt | 13 +++++----- .../AbstractChecksumInterceptorTest.kt | 6 ++--- ...FlexibleChecksumsRequestInterceptorTest.kt | 17 +++++++------ ...lexibleChecksumsResponseInterceptorTest.kt | 11 ++++---- .../Md5ChecksumInterceptorTest.kt | 7 +++--- .../RequestCompressionInterceptorTest.kt | 5 ++-- ...ResponseLengthValidationInterceptorTest.kt | 3 ++- .../middleware/DefaultValidateResponseTest.kt | 5 ++-- .../http/middleware/MutateHeadersTest.kt | 7 +++--- .../http/middleware/RetryMiddlewareTest.kt | 3 ++- .../operation/HttpInterceptorOrderTest.kt | 25 ++++++++++--------- .../http/operation/HttpInterceptorTest.kt | 11 ++++---- .../HttpInterceptorTypeValidationTest.kt | 7 +++--- .../http/operation/SdkHttpOperationTest.kt | 5 ++-- .../operation/SdkOperationExecutionTest.kt | 3 ++- .../runtime/httptest/TestConnectionTest.kt | 9 ++++--- runtime/runtime-core/api/runtime-core.api | 3 +++ .../aws/smithy/kotlin/runtime/Annotations.kt | 6 +++++ .../smithy/kotlin/runtime/AnnotationsJvm.kt | 9 +++++++ .../kotlin/runtime/AnnotationsNative.kt | 8 ++++++ .../serde/formurl/FormUrlSerializerTest.kt | 17 +++++++------ .../serde/json/JsonDeserializerTest.kt | 3 ++- 33 files changed, 155 insertions(+), 104 deletions(-) create mode 100644 runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/AnnotationsJvm.kt create mode 100644 runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/AnnotationsNative.kt diff --git a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt index 587cd9bdee..da7d4f9e1c 100644 --- a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt +++ b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.auth.awscredentials +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.Attributes import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.ManualClock @@ -37,7 +38,7 @@ class CachedCredentialsProviderTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testLoadFirstCall() = runTest { // explicit expiration @@ -52,7 +53,7 @@ class CachedCredentialsProviderTest { assertEquals(1, source.callCount) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testDefaultExpiration() = runTest { // expiration should come from the cached provider diff --git a/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt b/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt index 1d2e52ff26..abddf85a7f 100644 --- a/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt +++ b/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.auth.awssigning +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider import aws.smithy.kotlin.runtime.client.endpoints.Endpoint @@ -25,14 +26,14 @@ import kotlin.test.assertTrue class PresignerTest { // Verify that custom endpoint URL schemes aren't changed. // See https://github.com/awslabs/aws-sdk-kotlin/issues/938 - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testSignedUrlAllowsHttp() = testSigningUrl("http://localhost:8080/path/to/resource?foo=bar") // Verify that custom endpoint URL schemes aren't changed. // See https://github.com/awslabs/aws-sdk-kotlin/issues/938 @Test - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation fun testSignedUrlAllowsHttps() = testSigningUrl("https://localhost:8088/path/to/resource?bar=foo") private fun testSigningUrl(url: String) = runTest { diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt index 423bc379a4..a15a160891 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.auth.awssigning +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.auth.awssigning.tests.DEFAULT_TEST_CREDENTIALS import aws.smithy.kotlin.runtime.http.* @@ -19,7 +20,7 @@ import kotlin.test.assertEquals class DefaultCanonicalizerTest { // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCanonicalize() = runTest { val request = HttpRequest { @@ -80,7 +81,7 @@ class DefaultCanonicalizerTest { } // Targeted test for proper URI path escaping. See https://github.com/smithy-lang/smithy-kotlin/issues/657 - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testEscapablePath() { val uri = Url.Builder() @@ -97,7 +98,7 @@ class DefaultCanonicalizerTest { assertEquals("/2013-04-01/healthcheck/foo%253Cbar%253Ebaz%253C%252Fbar%253E", uri.canonicalPath(config)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCanonicalPath() { val config = AwsSigningConfig { @@ -113,7 +114,7 @@ class DefaultCanonicalizerTest { assertEquals("/foo/%40bar/baz%253Cqux%253Aquux", uri.canonicalPath(config)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCanonicalQueryParams() { Url.Builder().apply { @@ -128,7 +129,7 @@ class DefaultCanonicalizerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testUnsignedHeaders() = runTest { val request = HttpRequest { @@ -161,7 +162,7 @@ class DefaultCanonicalizerTest { assertEquals(expectedSignedHeaders, actual.signedHeaders) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCustomPort() = runTest { val request = HttpRequest { diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt index 85827c5521..7f84e8658a 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultRequestMutatorTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.auth.awssigning +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.http.Headers import aws.smithy.kotlin.runtime.http.HttpBody @@ -11,12 +12,11 @@ import aws.smithy.kotlin.runtime.http.HttpMethod import aws.smithy.kotlin.runtime.http.request.* import aws.smithy.kotlin.runtime.net.Host import aws.smithy.kotlin.runtime.time.Instant -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class DefaultRequestMutatorTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testAppendAuthHeader() { val canonical = CanonicalRequest(baseRequest.toBuilder(), "", "action;host;x-amz-date", "") diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt index 139cf9d26f..8cda1feb7a 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.auth.awssigning +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.auth.awssigning.tests.DEFAULT_TEST_CREDENTIALS import aws.smithy.kotlin.runtime.hashing.sha256 @@ -17,7 +18,7 @@ import kotlin.test.assertEquals class DefaultSignatureCalculatorTest { // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCalculate() { val signingKey = "c4afb1cc5771d871763a393e44b703571b55cc28424d1a5e86da6ed3c154a4b9".decodeHexBytes() @@ -34,7 +35,7 @@ class DefaultSignatureCalculatorTest { } // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testSigningKey() = runTest { val config = AwsSigningConfig { @@ -50,7 +51,7 @@ class DefaultSignatureCalculatorTest { } // Test adapted from https://docs.aws.amazon.com/general/latest/gr/sigv4-create-string-to-sign.html - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testStringToSign() { val canonicalRequest = """ @@ -84,7 +85,7 @@ class DefaultSignatureCalculatorTest { private data class ChunkStringToSignTest(val signatureType: AwsSignatureType, val expectedNonSignatureHeaderHash: String) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testChunkStringToSign() { // Test event stream signing diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt index 1510e6987c..3374dedc42 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedByteReadChannelTestBase.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.auth.awssigning.tests +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awssigning.* import aws.smithy.kotlin.runtime.auth.awssigning.internal.CHUNK_SIZE_BYTES import aws.smithy.kotlin.runtime.io.* @@ -17,7 +18,7 @@ import kotlin.test.* import kotlin.time.Duration.Companion.milliseconds abstract class AwsChunkedByteReadChannelTestBase : AwsChunkedTestBase(AwsChunkedReaderFactory.Channel) { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testSlowProducerMultipleChunksPartialLast(): TestResult = runTest { val numChunks = 6 diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt index 58faeb2142..90c88066a2 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt @@ -171,7 +171,7 @@ abstract class AwsChunkedTestBase( return length } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Ignore // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadNegativeOffset(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -185,7 +185,7 @@ abstract class AwsChunkedTestBase( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Ignore // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadExactBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -219,7 +219,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Ignore // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadExcessiveBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -249,7 +249,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Ignore // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadFewerBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -276,7 +276,7 @@ abstract class AwsChunkedTestBase( assertFalse(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Ignore // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadMultipleFullChunks(): TestResult = runTest { val numChunks = 5 @@ -324,7 +324,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @Ignore // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadMultipleChunksLastChunkNotFull(): TestResult = runTest { val numChunks = 6 diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt index 03f71ad7fb..3f4e1e1d17 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/BasicSigningTestBase.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.auth.awssigning.tests +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.auth.awssigning.* import aws.smithy.kotlin.runtime.http.HttpBody @@ -18,7 +19,6 @@ import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.TestResult import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse @@ -56,7 +56,7 @@ public abstract class BasicSigningTestBase : HasSigner { credentials = DEFAULT_TEST_CREDENTIALS } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testSignRequestSigV4(): TestResult = runTest { // sanity test @@ -85,7 +85,7 @@ public abstract class BasicSigningTestBase : HasSigner { assertEquals(expectedSig, result.signature.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public open fun testSignRequestSigV4Asymmetric(): TestResult = runTest { // sanity test @@ -168,7 +168,7 @@ public abstract class BasicSigningTestBase : HasSigner { return chunk } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testSignChunks(): TestResult = runTest { val request = createChunkedTestRequest() @@ -192,7 +192,7 @@ public abstract class BasicSigningTestBase : HasSigner { assertEquals(EXPECTED_FINAL_CHUNK_SIGNATURE, finalChunkResult.signature.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testSigningCopiesInput(): TestResult = runTest { // sanity test the signer doesn't mutate the input and instead copies to a new request diff --git a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt index 30c5005033..f73adba63a 100644 --- a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt +++ b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.http.auth +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigner @@ -106,7 +107,7 @@ public abstract class AwsHttpSignerTestBase( return operation.context[HttpOperationContext.HttpCallList].last().request } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testSignRequest(): TestResult = runTest { val op = buildOperation() @@ -120,7 +121,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testUnsignedRequest(): TestResult = runTest { val op = buildOperation(unsigned = true) @@ -134,7 +135,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testSignReplayableStreamingRequest(): TestResult = runTest { val op = buildOperation(streaming = true) @@ -148,7 +149,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test public fun testSignAwsChunkedStreamNonReplayable(): TestResult = runTest { val op = buildOperation(streaming = true, replayable = false, requestBody = "a".repeat(AWS_CHUNKED_THRESHOLD + 1)) diff --git a/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt b/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt index d4191d33dd..fdf744c837 100644 --- a/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt +++ b/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.awsprotocol +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.SdkBaseException import aws.smithy.kotlin.runtime.ServiceErrorMetadata import aws.smithy.kotlin.runtime.awsprotocol.ClockSkewInterceptor.Companion.CLOCK_SKEW_THRESHOLD @@ -31,7 +32,7 @@ private val POSSIBLE_SKEWED_RESPONSE_CODE_DESCRIPTION = "InvalidSignatureExcepti private val NOT_SKEWED_RESPONSE_CODE_DESCRIPTION = "RequestThrottled" class ClockSkewInterceptorTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testNotSkewed() { val clientTime = Instant.fromRfc5322("Wed, 6 Oct 2023 16:20:50 -0400") diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt index 9e0fab6c26..dd1ca004ce 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.http.engine +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.Headers import aws.smithy.kotlin.runtime.http.HttpBody import aws.smithy.kotlin.runtime.http.HttpCall @@ -25,7 +26,7 @@ import kotlin.test.assertTrue import kotlin.coroutines.coroutineContext as currentCoroutineContext class HttpCallContextTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @OptIn(ExperimentalCoroutinesApi::class) @Test fun testStructuredConcurrency() = runTest { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt index 4ce8d7d99b..f3781f5652 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.engine +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.HttpCall import aws.smithy.kotlin.runtime.http.complete @@ -61,7 +62,7 @@ class HttpClientEngineTest { private val HttpCall.job: Job get() = coroutineContext.job - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCallComplete() = runTest { val call = client.call(HttpRequestBuilder()) @@ -71,7 +72,7 @@ class HttpClientEngineTest { assertTrue(call.job.isCompleted) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testUserContextCancelsRequestJob() = runTest { val job = launch { @@ -88,7 +89,7 @@ class HttpClientEngineTest { assertTrue(callJob.isCancelled) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testInFlightRequestJobsAreIndependent() = runTest { val job1 = launch { @@ -113,7 +114,7 @@ class HttpClientEngineTest { job2.cancel() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testEngineJobNotCancelledByRequestJobs() = runTest { launch { @@ -131,7 +132,7 @@ class HttpClientEngineTest { assertTrue(engine.coroutineContext.job.isActive) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testShutdownOnlyAfterInFlightDone() = runTest { val waiter = Channel(1) @@ -166,7 +167,7 @@ class HttpClientEngineTest { assertTrue(engine.shutdownCalled) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testRequestAfterClose() = runTest { engine.close() diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt index ecc3a8491a..dc2ba12894 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/AbstractChecksumInterceptorTest.kt @@ -2,6 +2,7 @@ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.client.ProtocolRequestInterceptorContext import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.http.HttpBody @@ -16,7 +17,6 @@ import aws.smithy.kotlin.runtime.http.request.header import aws.smithy.kotlin.runtime.http.request.toBuilder import aws.smithy.kotlin.runtime.httptest.TestEngine import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -25,7 +25,7 @@ private val CHECKSUM_TEST_HEADER = "x-amz-kotlin-sdk-test-checksum-header" class AbstractChecksumInterceptorTest { private val client = SdkHttpClient(TestEngine()) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testChecksumIsCalculatedAndApplied() = runTest { val req = HttpRequestBuilder().apply { @@ -42,7 +42,7 @@ class AbstractChecksumInterceptorTest { assertEquals(expectedChecksumValue, call.request.headers[CHECKSUM_TEST_HEADER]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCachedChecksumIsUsed() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt index 543f03ceca..6d4483fe17 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt @@ -6,6 +6,7 @@ package aws.smithy.kotlin.runtime.http.interceptors import aws.smithy.kotlin.runtime.ClientException +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.hashing.toHashFunction import aws.smithy.kotlin.runtime.http.* @@ -31,7 +32,7 @@ class FlexibleChecksumsRequestInterceptorTest { "sha256" to "1dXchshIKqXiaKCqueqR7AOz1qLpiqayo7gbnaxzaQo=", ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSetsChecksumHeader() = runTest { checksums.forEach { (checksumAlgorithmName, expectedChecksumValue) -> @@ -53,7 +54,7 @@ class FlexibleChecksumsRequestInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itAllowsOnlyOneChecksumHeader() = runTest { val req = HttpRequestBuilder().apply { @@ -79,7 +80,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(1, call.request.headers.getNumChecksumHeaders()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itThrowsOnUnsupportedChecksumAlgorithm() = runTest { val req = HttpRequestBuilder().apply { @@ -101,7 +102,7 @@ class FlexibleChecksumsRequestInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itRemovesChecksumHeadersForAwsChunked() = runTest { val data = ByteArray(65536 * 32) { 'a'.code.toByte() } @@ -130,7 +131,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(0, call.request.headers.getNumChecksumHeaders()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSetsChecksumHeaderViaExecutionContext() = runTest { checksums.forEach { (checksumAlgorithmName, expectedChecksumValue) -> @@ -148,7 +149,7 @@ class FlexibleChecksumsRequestInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCompletingSource() = runTest { val hashFunctionName = "crc32" @@ -170,7 +171,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(expectedHash.digest().encodeBase64String(), completableDeferred.await()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCompletingByteReadChannel() = runTest { val hashFunctionName = "sha256" @@ -193,7 +194,7 @@ class FlexibleChecksumsRequestInterceptorTest { assertEquals(expectedHash.digest().encodeBase64String(), completableDeferred.await()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itUsesPrecalculatedChecksum() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt index 764774dc10..f046ca66e0 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsResponseInterceptorTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.interceptors +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.HttpCall @@ -66,7 +67,7 @@ class FlexibleChecksumsResponseInterceptorTest { return SdkHttpClient(mockEngine) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testResponseChecksumValid() = runTest { checksums.forEach { (checksumAlgorithmName, expectedChecksum) -> @@ -93,7 +94,7 @@ class FlexibleChecksumsResponseInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testResponseServiceChecksumInvalid() = runTest { checksums.forEach { (checksumAlgorithmName, _) -> @@ -122,7 +123,7 @@ class FlexibleChecksumsResponseInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testMultipleChecksumsReturned() = runTest { val req = HttpRequestBuilder() @@ -147,7 +148,7 @@ class FlexibleChecksumsResponseInterceptorTest { assertEquals("x-amz-checksum-crc32c", op.context[ChecksumHeaderValidated]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testSkipsValidationOfMultipartChecksum() = runTest { val req = HttpRequestBuilder() @@ -168,7 +169,7 @@ class FlexibleChecksumsResponseInterceptorTest { op.roundTrip(client, TestInput("input")) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testSkipsValidationWhenDisabled() = runTest { val req = HttpRequestBuilder() diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt index e0b24e5f10..f5687f511e 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.interceptors +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.http.HttpBody import aws.smithy.kotlin.runtime.http.SdkHttpClient @@ -23,7 +24,7 @@ import kotlin.test.assertNull class Md5ChecksumInterceptorTest { private val client = SdkHttpClient(TestEngine()) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSetsContentMd5Header() = runTest { val req = HttpRequestBuilder().apply { @@ -43,7 +44,7 @@ class Md5ChecksumInterceptorTest { assertEquals(expected, call.request.headers["Content-MD5"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itOnlySetsHeaderForBytesContent() = runTest { val req = HttpRequestBuilder().apply { @@ -64,7 +65,7 @@ class Md5ChecksumInterceptorTest { assertNull(call.request.headers["Content-MD5"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itDoesNotSetContentMd5Header() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt index d4f4142fd1..64e481b39c 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.interceptors +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.compression.CompressionAlgorithm import aws.smithy.kotlin.runtime.compression.Gzip @@ -60,7 +61,7 @@ class RequestCompressionInterceptorTest { return op.context.attributes[HttpOperationContext.HttpCallList].first() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCompressionThresholdTooHigh() = runTest { val payload = "bar" @@ -80,7 +81,7 @@ class RequestCompressionInterceptorTest { assertEquals(bytes, sentBytes) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCompression() = runTest { val payload = "bar" diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt index 2bd2475d63..f064f3bfa5 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.http.interceptors +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.HttpCall import aws.smithy.kotlin.runtime.http.operation.* @@ -77,7 +78,7 @@ class ResponseLengthValidationInterceptorTest { private fun allBodies() = nonEmptyBodies() + HttpBody.Empty - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testCorrectLengthReturned() = runTest { nonEmptyBodies().forEach { body -> diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt index ff0ee4cfed..8183b22d92 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.http.middleware +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.Headers import aws.smithy.kotlin.runtime.http.HttpBody import aws.smithy.kotlin.runtime.http.HttpCall @@ -22,7 +23,7 @@ import kotlin.test.assertEquals import kotlin.test.assertFailsWith class DefaultValidateResponseTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itThrowsExceptionOnNon200Response() = runTest { val mockEngine = TestEngine { _, request -> @@ -46,7 +47,7 @@ class DefaultValidateResponseTest { return@runTest } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itPassesSuccessResponses() = runTest { val mockEngine = TestEngine { _, request -> diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt index e06febc990..6af8877c15 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.middleware +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.http.SdkHttpClient import aws.smithy.kotlin.runtime.http.operation.HttpOperationContext @@ -21,7 +22,7 @@ import kotlin.test.assertEquals class MutateHeadersTest { private val client = SdkHttpClient(TestEngine()) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itOverridesHeaders() = runTest { val req = HttpRequestBuilder().apply { @@ -52,7 +53,7 @@ class MutateHeadersTest { assertEquals("qux", call.request.headers["baz"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itAppendsHeaders() = runTest { val req = HttpRequestBuilder().apply { @@ -83,7 +84,7 @@ class MutateHeadersTest { assertEquals("qux", call.request.headers["baz"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSetsMissing() = runTest { val req = HttpRequestBuilder().apply { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt index 49c7709ab3..dedbf93309 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.middleware +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.http.SdkHttpClient import aws.smithy.kotlin.runtime.http.operation.HttpOperationContext @@ -35,7 +36,7 @@ class RetryMiddlewareTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testRetryMiddleware() = runTest { val req = HttpRequestBuilder() diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt index 7c11621d46..f8777c0393 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.operation +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder @@ -135,7 +136,7 @@ class HttpInterceptorOrderTest { hooksFired.shouldContainInOrder(expected) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testInterceptorOrderSuccess() = runTest { // sanity test all hooks fire in order @@ -152,67 +153,67 @@ class HttpInterceptorOrderTest { assertEquals(expected, hooksFired) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadBeforeExecutionErrors() = runTest { simpleFailOrderTest("readBeforeExecution") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeSerializationErrors() = runTest { simpleFailOrderTest("modifyBeforeSerialization") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadBeforeSerializationErrors() = runTest { simpleFailOrderTest("readBeforeSerialization") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadAfterSerializationErrors() = runTest { simpleFailOrderTest("readAfterSerialization") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeRetryLoopErrors() = runTest { simpleFailOrderTest("modifyBeforeRetryLoop") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadBeforeAttemptErrors() = runTest { simpleFailOrderTest("readBeforeAttempt") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeSigningErrors() = runTest { simpleFailOrderTest("modifyBeforeSigning") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadBeforeSigningErrors() = runTest { simpleFailOrderTest("readBeforeSigning") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadAfterSigningErrors() = runTest { simpleFailOrderTest("readAfterSigning") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeTransmitErrors() = runTest { simpleFailOrderTest("modifyBeforeTransmit") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadBeforeTransmitErrors() = runTest { simpleFailOrderTest("readBeforeTransmit") diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt index 4940747a01..b2830268da 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.operation +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.client.* import aws.smithy.kotlin.runtime.http.Headers import aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor @@ -151,7 +152,7 @@ class HttpInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testInterceptorModifications() = runTest { val serialized = HttpRequestBuilder().apply { @@ -174,7 +175,7 @@ class HttpInterceptorTest { assertEquals("final", output.value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testInterceptorModificationsWithRetries() = runTest { val serialized = HttpRequestBuilder().apply { @@ -213,7 +214,7 @@ class HttpInterceptorTest { assertEquals("ignore-failure", output.value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testMapFailureOnAttempt() = runTest { val interceptor = object : HttpInterceptor { @@ -226,7 +227,7 @@ class HttpInterceptorTest { testMapFailure(interceptor) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testMapFailureOnCompletion() = runTest { val interceptor = object : HttpInterceptor { @@ -239,7 +240,7 @@ class HttpInterceptorTest { testMapFailure(interceptor) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadAfterExecutionSuppressedException() = runTest { val interceptor = object : HttpInterceptor { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt index 3578151acf..e7847ff8fa 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorTypeValidationTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.operation +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.client.* import aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor import aws.smithy.kotlin.runtime.http.request.HttpRequest @@ -16,7 +17,7 @@ import kotlin.IllegalStateException import kotlin.test.* class HttpInterceptorTypeValidationTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeSerializationTypeFailure() = runTest { val i1 = object : HttpInterceptor { @@ -45,7 +46,7 @@ class HttpInterceptorTypeValidationTest { ex.message.shouldContain("modifyBeforeSerialization invalid type conversion: found class aws.smithy.kotlin.runtime.http.operation.TestOutput; expected class aws.smithy.kotlin.runtime.http.operation.TestInput") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeAttemptCompletionTypeFailure() = runTest { val i1 = object : HttpInterceptor { @@ -73,7 +74,7 @@ class HttpInterceptorTypeValidationTest { ex.message.shouldContain("modifyBeforeAttemptCompletion invalid type conversion: found class kotlin.String; expected class aws.smithy.kotlin.runtime.http.operation.TestOutput") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testModifyBeforeCompletionTypeFailure() = runTest { val i1 = object : HttpInterceptor { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt index 08160d5d6c..9698da7d26 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.operation +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.SdkHttpClient import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.httptest.TestEngine @@ -19,7 +20,7 @@ import kotlin.test.assertFailsWith import kotlin.test.assertNotNull class SdkHttpOperationTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testTelemetryInstrumentation() = runTest { val op = newTestOperation(HttpRequestBuilder(), Unit) @@ -33,7 +34,7 @@ class SdkHttpOperationTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testMissingRequiredProperties() = runTest { val ex = assertFailsWith { diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt index 2bdd96a13a..ddc11c78fe 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.operation +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.AuthSchemeId import aws.smithy.kotlin.runtime.http.Headers import aws.smithy.kotlin.runtime.http.HttpBody @@ -28,7 +29,7 @@ import kotlin.test.assertFalse import kotlin.test.assertTrue class SdkOperationExecutionTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testOperationMiddlewareOrder() = runTest { // sanity test middleware flows the way we expect diff --git a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt index 5b217bc009..16400b0edd 100644 --- a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt +++ b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.httptest +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.net.Host @@ -16,7 +17,7 @@ import kotlin.test.assertEquals import kotlin.test.assertFails class TestConnectionTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testAssertRequestsSuccess() = runTest { val engine = buildTestConnection { @@ -44,7 +45,7 @@ class TestConnectionTest { engine.assertRequests() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testAssertRequestsUrlDifferent() = runTest { val engine = buildTestConnection { @@ -72,7 +73,7 @@ class TestConnectionTest { }.message.shouldContain("URL mismatch") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testAssertRequestsMissingHeader() = runTest { val engine = buildTestConnection { @@ -100,7 +101,7 @@ class TestConnectionTest { }.message.shouldContain("header `x-baz` missing value `qux`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testAssertRequestsBodyDifferent() = runTest { val engine = buildTestConnection { diff --git a/runtime/runtime-core/api/runtime-core.api b/runtime/runtime-core/api/runtime-core.api index 942f99e348..d89ff828fb 100644 --- a/runtime/runtime-core/api/runtime-core.api +++ b/runtime/runtime-core/api/runtime-core.api @@ -21,6 +21,9 @@ public final class aws/smithy/kotlin/runtime/ErrorMetadata$Companion { public abstract interface annotation class aws/smithy/kotlin/runtime/ExperimentalApi : java/lang/annotation/Annotation { } +public abstract interface annotation class aws/smithy/kotlin/runtime/IgnoreNative : java/lang/annotation/Annotation { +} + public abstract interface annotation class aws/smithy/kotlin/runtime/InternalApi : java/lang/annotation/Annotation { } diff --git a/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt b/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt index ee3ab01e28..27aa03c216 100644 --- a/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt +++ b/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt @@ -58,3 +58,9 @@ public annotation class ExperimentalApi */ @DslMarker public annotation class SdkDsl + +/** + * Marks a test that should be ignored on Native platforms + */ +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +public expect annotation class IgnoreNative diff --git a/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/AnnotationsJvm.kt b/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/AnnotationsJvm.kt new file mode 100644 index 0000000000..b18b1bec0b --- /dev/null +++ b/runtime/runtime-core/jvm/src/aws/smithy/kotlin/runtime/AnnotationsJvm.kt @@ -0,0 +1,9 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ + +package aws.smithy.kotlin.runtime + +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +public actual annotation class IgnoreNative diff --git a/runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/AnnotationsNative.kt b/runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/AnnotationsNative.kt new file mode 100644 index 0000000000..76c0ce0cef --- /dev/null +++ b/runtime/runtime-core/native/src/aws/smithy/kotlin/runtime/AnnotationsNative.kt @@ -0,0 +1,8 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + */ + +package aws.smithy.kotlin.runtime + +public actual typealias IgnoreNative = kotlin.test.Ignore diff --git a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt index 64eded7362..43e9787975 100644 --- a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt +++ b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.serde.formurl +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.serde.* import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.TimestampFormat @@ -100,7 +101,7 @@ class FormUrlSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesStructs() { val struct = PrimitiveStructTest() @@ -125,7 +126,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesEmptyStrings() { // see `string` from https://awslabs.github.io/smithy/1.0/spec/aws/aws-query-protocol.html#x-www-form-urlencoded-shape-serialization @@ -188,7 +189,7 @@ class FormUrlSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesLists() { val input = ListInput( @@ -210,7 +211,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesFlattenedLists() { // xmlFlattened() lists @@ -235,7 +236,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesListsWithRenamedMember() { // xmlName() trait on list member @@ -257,7 +258,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesClassWithNestedClassField() { val a = A( @@ -317,7 +318,7 @@ class FormUrlSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesMaps() { val input = MapInput( @@ -351,7 +352,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itSerializesMapOfLists() { val input = MapInput( diff --git a/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt b/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt index 2ee8532d3c..11afdc5d54 100644 --- a/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt +++ b/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.serde.json +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.content.Document import aws.smithy.kotlin.runtime.content.buildDocument import aws.smithy.kotlin.runtime.serde.* @@ -99,7 +100,7 @@ class JsonDeserializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun itHandlesBigInteger() { val tests = listOf( From 59ea1ff7df322293329eacfafcc9f69a99636160 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 6 Jan 2025 15:24:02 -0500 Subject: [PATCH 13/33] Add zero-arg constructor, apply `@IgnoreNative` everywhere! --- .../CachedCredentialsProviderTest.kt | 10 +- .../awssigning/tests/AwsChunkedTestBase.kt | 19 +- .../http/auth/AwsHttpSignerTestBase.kt | 4 +- .../runtime/crt/ReadChannelBodyStreamTest.kt | 11 +- .../runtime/crt/SdkSourceBodyStreamTest.kt | 7 +- .../eventstream/EventStreamSigningTest.kt | 5 +- .../eventstream/FrameDecoderTest.kt | 7 +- .../eventstream/FrameEncoderTest.kt | 5 +- .../eventstream/HeaderValueTest.kt | 3 +- .../awsprotocol/eventstream/MessageTest.kt | 23 +- .../awsprotocol/json/AwsJsonProtocolTest.kt | 7 +- .../common/test/ClockSkewInterceptorTest.kt | 14 +- .../http/engine/crt/AsyncStressTest.kt | 3 +- .../http/engine/crt/RequestConversionTest.kt | 5 +- .../crt/SdkStreamResponseHandlerTest.kt | 5 +- .../http/engine/crt/SendChunkedBodyTest.kt | 9 +- .../RequestCompressionInterceptorTest.kt | 10 +- ...ResponseLengthValidationInterceptorTest.kt | 8 +- .../operation/HttpInterceptorOrderTest.kt | 14 +- .../runtime/httptest/TestConnectionTest.kt | 4 +- .../smithy/kotlin/runtime/http/HeadersTest.kt | 3 +- .../kotlin/runtime/http/HttpBodyTest.kt | 5 +- .../runtime/http/HttpRequestBuilderTest.kt | 5 +- .../runtime/http/response/HttpResponseTest.kt | 3 +- ...hyProtocolResponseHeaderInterceptorTest.kt | 5 +- .../cbor/Rpcv2CborErrorDeserializerTest.kt | 3 +- .../aws/smithy/kotlin/runtime/Annotations.kt | 2 +- .../collections/ReadThroughCacheTest.kt | 5 +- .../kotlin/runtime/content/BigDecimalTest.kt | 7 +- .../kotlin/runtime/content/BigIntegerTest.kt | 13 +- .../runtime/content/ByteStreamFlowTest.kt | 7 +- .../kotlin/runtime/io/ByteArraySourceTest.kt | 3 +- .../runtime/io/GzipByteReadChannelTest.kt | 23 +- .../kotlin/runtime/io/GzipSdkSourceTest.kt | 11 +- .../runtime/io/HashingByteReadChannelTest.kt | 11 +- .../kotlin/runtime/io/HashingSinkTest.kt | 5 +- .../kotlin/runtime/io/HashingSourceTest.kt | 5 +- .../smithy/kotlin/runtime/io/ObserversTest.kt | 5 +- .../kotlin/runtime/io/SdkBufferedSinkTest.kt | 37 +- .../runtime/io/SdkBufferedSourceTest.kt | 57 +-- .../runtime/io/SdkByteChannelSuspendTest.kt | 45 +-- .../kotlin/runtime/io/SdkByteChannelTest.kt | 19 +- .../smithy/kotlin/runtime/time/InstantTest.kt | 31 +- .../kotlin/runtime/time/ManualClockTest.kt | 3 +- .../kotlin/runtime/time/ParseEpochTest.kt | 3 +- .../kotlin/runtime/util/CachedValueTest.kt | 13 +- .../serde/cbor/CborDeserializerErrorTest.kt | 119 ++++--- .../serde/cbor/CborDeserializerSuccessTest.kt | 335 +++++++++--------- .../serde/cbor/CborDeserializerTest.kt | 3 +- .../runtime/serde/cbor/CborSerializerTest.kt | 31 +- .../serde/formurl/FormUrlSerializerTest.kt | 18 +- .../serde/json/JsonDeserializerTest.kt | 2 +- .../smithy/test/HttpRequestTestBuilderTest.kt | 25 +- .../test/HttpResponseTestBuilderTest.kt | 3 +- 54 files changed, 541 insertions(+), 497 deletions(-) diff --git a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt index da7d4f9e1c..be115c80df 100644 --- a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt +++ b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt @@ -66,7 +66,7 @@ class CachedCredentialsProviderTest { assertEquals(1, source.callCount) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReloadExpiredCredentials() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) @@ -82,7 +82,7 @@ class CachedCredentialsProviderTest { assertEquals(2, source.callCount) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRefreshBufferWindow() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) @@ -104,7 +104,7 @@ class CachedCredentialsProviderTest { assertEquals(2, source.callCount) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testLoadFailed() = runTest { val source = object : CredentialsProvider { @@ -127,7 +127,7 @@ class CachedCredentialsProviderTest { provider.resolve() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testItThrowsOnGetCredentialsAfterClose() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) @@ -145,7 +145,7 @@ class CachedCredentialsProviderTest { assertEquals(1, source.callCount) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testCachedConvenienceFunction() = runTest { val source = TestCredentialsProvider(expiration = testExpiration) diff --git a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt index 90c88066a2..be05b88eb9 100644 --- a/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt +++ b/runtime/auth/aws-signing-tests/common/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/AwsChunkedTestBase.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.auth.awssigning.tests +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awssigning.* import aws.smithy.kotlin.runtime.auth.awssigning.internal.CHUNK_SIZE_BYTES import aws.smithy.kotlin.runtime.http.DeferredHeaders @@ -171,7 +172,7 @@ abstract class AwsChunkedTestBase( return length } - @Ignore // FIXME Re-enable after Kotlin/Native Implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadNegativeOffset(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -185,7 +186,7 @@ abstract class AwsChunkedTestBase( } } - @Ignore // FIXME Re-enable after Kotlin/Native Implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadExactBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -219,7 +220,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native Implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadExcessiveBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -249,7 +250,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native Implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadFewerBytes(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -276,7 +277,7 @@ abstract class AwsChunkedTestBase( assertFalse(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native Implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadMultipleFullChunks(): TestResult = runTest { val numChunks = 5 @@ -324,7 +325,7 @@ abstract class AwsChunkedTestBase( assertTrue(awsChunked.isClosedForRead()) } - @Ignore // FIXME Re-enable after Kotlin/Native Implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native Implementation @Test fun testReadMultipleChunksLastChunkNotFull(): TestResult = runTest { val numChunks = 6 @@ -390,7 +391,7 @@ abstract class AwsChunkedTestBase( assertEquals(0, chunkSizes.last()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadWithTrailingHeaders(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -441,7 +442,7 @@ abstract class AwsChunkedTestBase( assertEquals(expectedTrailerSignature.decodeToString(), trailerSignature) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testUnsignedChunk(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES @@ -473,7 +474,7 @@ abstract class AwsChunkedTestBase( assertEquals(chunkSizes[1], 0) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testUnsignedChunkWithTrailingHeaders(): TestResult = runTest { val dataLengthBytes = CHUNK_SIZE_BYTES diff --git a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt index f73adba63a..da1a8848bd 100644 --- a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt +++ b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt @@ -163,7 +163,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignAwsChunkedStreamReplayable(): TestResult = runTest { val op = buildOperation(streaming = true, replayable = true, requestBody = "a".repeat(AWS_CHUNKED_THRESHOLD + 1)) @@ -177,7 +177,7 @@ public abstract class AwsHttpSignerTestBase( assertEquals(expectedSig, signed.headers["Authorization"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test public fun testSignOneShotStream(): TestResult = runTest { val op = buildOperation(streaming = true, replayable = false) diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt index 86db3c4eae..a14ced5edf 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt @@ -6,6 +6,7 @@ package aws.smithy.kotlin.runtime.crt import aws.sdk.kotlin.crt.io.MutableBuffer +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.io.SdkByteChannel import aws.smithy.kotlin.runtime.io.SdkByteReadChannel @@ -27,7 +28,7 @@ class ReadChannelBodyStreamTest { return MutableBuffer.of(dest) to dest } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testClose() = runTest { val chan = SdkByteChannel() @@ -44,7 +45,7 @@ class ReadChannelBodyStreamTest { assertTrue(stream.sendRequestBody(sendBuffer)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testCancellation() = runTest { val chan = SdkByteChannel() @@ -59,7 +60,7 @@ class ReadChannelBodyStreamTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.NotImplementedError at null:-1 + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation. kotlin.NotImplementedError at null:-1 @Test fun testReadFully() = runTest { val data = byteArrayOf(1, 2, 3, 4, 5) @@ -75,7 +76,7 @@ class ReadChannelBodyStreamTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.NotImplementedError at null:-1 + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation. kotlin.NotImplementedError at null:-1 @Test fun testPartialRead() = runTest { val chan = SdkByteReadChannel("123456".encodeToByteArray()) @@ -94,7 +95,7 @@ class ReadChannelBodyStreamTest { assertEquals("456", sent2.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation. kotlin.native.internal.FileFailedToInitializeException at null:-1 @Test fun testLargeTransfer() = runTest { val chan = SdkByteChannel() diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt index 2aa94f1df3..4beb32265e 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt @@ -6,6 +6,7 @@ package aws.smithy.kotlin.runtime.crt import aws.sdk.kotlin.crt.io.MutableBuffer +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.io.SdkSource import aws.smithy.kotlin.runtime.io.source @@ -22,7 +23,7 @@ class SdkSourceBodyStreamTest { return MutableBuffer.of(dest) to dest } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFully() = runTest { val data = byteArrayOf(1, 2, 3, 4, 5) @@ -37,7 +38,7 @@ class SdkSourceBodyStreamTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testPartialRead() = runTest { val source = "123456".encodeToByteArray().source() @@ -55,7 +56,7 @@ class SdkSourceBodyStreamTest { assertEquals("456", sent2.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testLargeTransfer() = runTest { val data = "foobar" diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt index 7611ed14d1..374ce76c4f 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.awsprotocol.eventstream +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider import aws.smithy.kotlin.runtime.auth.awssigning.* @@ -29,7 +30,7 @@ class EventStreamSigningTest { override suspend fun resolve(attributes: Attributes) = testCredentials } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSignPayload() = runTest { val messageToSign = buildMessage { @@ -68,7 +69,7 @@ class EventStreamSigningTest { assertEquals(expected, actualSignature) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEmptyEndFrameSent() = runTest { val messageToSign = buildMessage { diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt index a2588e6c8d..a9452d534b 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.awsprotocol.eventstream +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.* import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.flow.* @@ -15,7 +16,7 @@ import kotlin.test.assertEquals import kotlin.test.assertFailsWith class FrameDecoderTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFrameStreamSingleMessage() = runTest { val encoded = validMessageWithAllHeaders() @@ -29,7 +30,7 @@ class FrameDecoderTest { assertEquals(expected, actual.first()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFrameStreamMultipleMessagesChunked() = runTest { val encoded = SdkBuffer().apply { @@ -53,7 +54,7 @@ class FrameDecoderTest { assertEquals(expected3, actual[2]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelClosed() = runTest { // contents don't matter diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt index 3e5add19a1..4a9f6f335e 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.awsprotocol.eventstream +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.readAll import aws.smithy.kotlin.runtime.io.SdkBuffer import kotlinx.coroutines.flow.flowOf @@ -17,7 +18,7 @@ import kotlin.test.assertContentEquals import kotlin.test.assertEquals class FrameEncoderTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEncode() = runTest { val expected = listOf( @@ -44,7 +45,7 @@ class FrameEncoderTest { assertContentEquals(expected[2], actual[2].readByteArray()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testAsEventStreamHttpBody() = runTest { val messages = flowOf( diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt index 1e09c61600..74cbcbae63 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.awsprotocol.eventstream +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.util.Uuid import io.kotest.matchers.string.shouldContain @@ -16,7 +17,7 @@ import kotlin.test.assertFails class HeaderValueTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testExpectAs() { assertEquals(true, HeaderValue.Bool(true).expectBool()) diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt index 6cfe75fe3a..95ec4e8dbd 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/MessageTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.awsprotocol.eventstream +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.EOFException import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.time.Instant @@ -52,7 +53,7 @@ fun validMessageNoHeaders(): ByteArray = byteArrayFrom( class MessageTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testMessageNoHeaders() { // Test message taken from the CRT: @@ -69,7 +70,7 @@ class MessageTest { assertEquals(expectedPayload, actual.payload.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testMessageOneHeader() { // Test message taken from the CRT: @@ -91,7 +92,7 @@ class MessageTest { assertEquals(expectedHeaders, actual.headers) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRoundTripAllHeadersPayload() { val encoded = validMessageWithAllHeaders() @@ -121,7 +122,7 @@ class MessageTest { assertContentEquals(message.payload, result.payload) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderStringValueLength() { // header length = -1 @@ -143,7 +144,7 @@ class MessageTest { }.message.shouldContain("Invalid HeaderValue; type=STRING, len=65535") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderStringLengthCutoff() { val encoded = byteArrayFrom( @@ -160,7 +161,7 @@ class MessageTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderValueType() { val encoded = byteArrayFrom( @@ -181,7 +182,7 @@ class MessageTest { }.message.shouldContain("Unknown HeaderType: 96") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderNameLength() { val encoded = byteArrayFrom( @@ -202,7 +203,7 @@ class MessageTest { }.message.shouldContain("Invalid header name length") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeadersLength() { val encoded = byteArrayFrom( @@ -219,7 +220,7 @@ class MessageTest { }.message.shouldContain("Not enough bytes to read header name; needed: 3; remaining: 1") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidPreludeChecksum() { val encoded = byteArrayFrom( @@ -240,7 +241,7 @@ class MessageTest { }.message.shouldContain("Prelude checksum mismatch; expected=0xdeadbeef; calculated=0x8bb495fb") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidMessageChecksum() { val encoded = byteArrayFrom( @@ -261,7 +262,7 @@ class MessageTest { }.message.shouldContain("Message checksum mismatch; expected=0xdeadbeef; calculated=0x01a05860") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidHeaderNameLengthTooLong() { val encoded = byteArrayFrom( diff --git a/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt b/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt index 19cc141b2f..ddf3286f32 100644 --- a/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt +++ b/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.awsprotocol.json +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.collections.get import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.operation.* @@ -18,7 +19,7 @@ import kotlin.test.Test import kotlin.test.assertEquals class AwsJsonProtocolTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSetJsonProtocolHeaders() = runTest { @Suppress("DEPRECATION") @@ -41,7 +42,7 @@ class AwsJsonProtocolTest { assertEquals("FooService_blah.Bar", request.headers["X-Amz-Target"]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEmptyBody() = runTest { @Suppress("DEPRECATION") @@ -61,7 +62,7 @@ class AwsJsonProtocolTest { assertEquals("{}", actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testDoesNotOverride() = runTest { @Suppress("DEPRECATION") diff --git a/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt b/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt index fdf744c837..67bd5c90a4 100644 --- a/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt +++ b/runtime/protocol/aws-protocol-core/common/test/ClockSkewInterceptorTest.kt @@ -41,7 +41,7 @@ class ClockSkewInterceptorTest { assertFalse(clientTime.isSkewed(serverTime, NOT_SKEWED_RESPONSE_CODE_DESCRIPTION)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkewedByResponseCode() { // clocks are exactly the same, but service returned skew error @@ -51,7 +51,7 @@ class ClockSkewInterceptorTest { assertEquals(0.days, clientTime.until(serverTime)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkewedByTime() { val clientTime = Instant.fromRfc5322("Wed, 6 Oct 2023 16:20:50 -0400") @@ -60,7 +60,7 @@ class ClockSkewInterceptorTest { assertEquals(1.days, clientTime.until(serverTime)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNegativeSkewedByTime() { val clientTime = Instant.fromRfc5322("Wed, 7 Oct 2023 16:20:50 -0400") @@ -69,7 +69,7 @@ class ClockSkewInterceptorTest { assertEquals(-1.days, clientTime.until(serverTime)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkewThreshold() { val minute = 20 @@ -131,7 +131,7 @@ class ClockSkewInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testClockSkewApplied() = runTest { testRoundTrip( @@ -142,7 +142,7 @@ class ClockSkewInterceptorTest { ) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testClockSkewNotApplied_NoSkew() = runTest { testRoundTrip( @@ -153,7 +153,7 @@ class ClockSkewInterceptorTest { ) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testClockSkewNotApplied_BadDate() = runTest { testRoundTrip( diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt index 525aefbbc3..11d013bc19 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.engine.crt +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.HttpMethod import aws.smithy.kotlin.runtime.http.SdkHttpClient import aws.smithy.kotlin.runtime.http.complete @@ -37,7 +38,7 @@ class AsyncStressTest : TestWithLocalServer() { } }.start() - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamNotConsumed() = runBlocking { // test that filling the stream window and not consuming the body stream still cleans up resources diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt index 90ade48b73..531a253127 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/RequestConversionTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.engine.crt +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.content.ByteStream import aws.smithy.kotlin.runtime.crt.ReadChannelBodyStream import aws.smithy.kotlin.runtime.http.* @@ -53,7 +54,7 @@ class RequestConversionTest { assertFalse(crtRequest.body is ReadChannelBodyStream) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkToCrtRequestStreamingBody() { val stream = byteStreamFromContents("foobar") @@ -72,7 +73,7 @@ class RequestConversionTest { crtBody.cancel() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEngineAddsContentLengthHeader() { val stream = byteStreamFromContents("foobar") diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt index 1611568796..e5fc0259c9 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandlerTest.kt @@ -7,6 +7,7 @@ package aws.smithy.kotlin.runtime.http.engine.crt import aws.sdk.kotlin.crt.http.* import aws.sdk.kotlin.crt.io.byteArrayBuffer +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.HttpBody import aws.smithy.kotlin.runtime.http.HttpErrorCode import aws.smithy.kotlin.runtime.http.HttpException @@ -124,7 +125,7 @@ class SdkStreamResponseHandlerTest { assertTrue(respChan.isClosedForWrite) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRespBody() = runTest { val handler = SdkStreamResponseHandler(mockConn, coroutineContext) @@ -153,7 +154,7 @@ class SdkStreamResponseHandlerTest { assertEquals(data, respChan.readToBuffer().readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamError() = runTest { val handler = SdkStreamResponseHandler(mockConn, coroutineContext) diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt index cf271cd436..f456817161 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/SendChunkedBodyTest.kt @@ -6,6 +6,7 @@ package aws.smithy.kotlin.runtime.http.engine.crt import aws.sdk.kotlin.crt.http.HttpStream +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.toHttpBody import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import aws.smithy.kotlin.runtime.io.readToByteArray @@ -27,7 +28,7 @@ class SendChunkedBodyTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSourceContent() = runTest { val stream = MockHttpStream(200) @@ -45,7 +46,7 @@ class SendChunkedBodyTest { assertEquals(1, stream.numChunksWritten) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelContentMultipleChunks() = runTest { val stream = MockHttpStream(200) @@ -67,7 +68,7 @@ class SendChunkedBodyTest { assertTrue(stream.numChunksWritten > 1) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelContent() = runTest { val stream = MockHttpStream(200) @@ -86,7 +87,7 @@ class SendChunkedBodyTest { assertEquals(1, stream.numChunksWritten) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSourceContentMultipleChunks() = runTest { val stream = MockHttpStream(200) diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt index 64e481b39c..ef108f6b76 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt @@ -102,7 +102,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkSource() = runTest { val payload = "bar" @@ -123,7 +123,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkByteReadChannel() = runTest { val payload = "bar" @@ -144,7 +144,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testHeaderAlreadySet() = runTest { val payload = "bar" @@ -166,7 +166,7 @@ class RequestCompressionInterceptorTest { assertContentEquals(bytes, decompressedBytes) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNoSupportedAlgorithms() = runTest { val payload = "bar" @@ -186,7 +186,7 @@ class RequestCompressionInterceptorTest { assertEquals(bytes, sentBytes) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidCompressionThreshold() = runTest { val payload = "bar" diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt index f064f3bfa5..4fa184459d 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/ResponseLengthValidationInterceptorTest.kt @@ -88,7 +88,7 @@ class ResponseLengthValidationInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNotEnoughBytesReturned() = runTest { nonEmptyBodies().forEach { body -> @@ -100,7 +100,7 @@ class ResponseLengthValidationInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testTooManyBytesReturned() = runTest { allBodies().forEach { body -> @@ -112,7 +112,7 @@ class ResponseLengthValidationInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNoContentLengthSkipsValidation() = runTest { allBodies().forEach { body -> @@ -122,7 +122,7 @@ class ResponseLengthValidationInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEmptyBodyCorrectLengthReturned() = runTest { val client = client(HttpBody.Empty, 0) // expect correct content length diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt index f8777c0393..0a64190951 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/HttpInterceptorOrderTest.kt @@ -219,43 +219,43 @@ class HttpInterceptorOrderTest { simpleFailOrderTest("readBeforeTransmit") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterTransmitErrors() = runTest { simpleFailOrderTest("readAfterTransmit") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeDeserializationErrors() = runTest { simpleFailOrderTest("readBeforeDeserialization") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterDeserializationErrors() = runTest { simpleFailOrderTest("readAfterDeserialization") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterAttemptErrors() = runTest { simpleFailOrderTest("readAfterAttempt") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeAttemptCompletionErrors() = runTest { simpleFailOrderTest("modifyBeforeAttemptCompletion") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testModifyBeforeCompletionErrors() = runTest { simpleFailOrderTest("modifyBeforeCompletion") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterExecutionErrors() = runTest { simpleFailOrderTest("readAfterExecution") diff --git a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt index 16400b0edd..d037a92955 100644 --- a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt +++ b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt @@ -130,7 +130,7 @@ class TestConnectionTest { }.message.shouldContain("body mismatch") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testAssertRequestsAny() = runTest { val engine = buildTestConnection { @@ -165,7 +165,7 @@ class TestConnectionTest { engine.assertRequests() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromJson() = runTest { // language=JSON diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt index f22f36ee76..b7088a07cd 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.http +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -29,7 +30,7 @@ class HeadersTest { assertEquals("Headers [key=[value]]", "$actual2") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSubsequentModificationsDontAffectOriginal() { val builder = HeadersBuilder() diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt index abfe3d8b0c..5dc79c7b16 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.content.ByteStream import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.io.SdkByteChannel @@ -50,7 +51,7 @@ class HttpBodyTest { assertTrue(body.isOneShot) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamingReadAllClosedForRead() = runTest { val expected = "foobar" @@ -63,7 +64,7 @@ class HttpBodyTest { assertEquals(expected, body.readAll()!!.decodeToString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testStreamingReadAllClosedForWrite() = runTest { val expected = "foobar" diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt index a0f041e7ad..9954de1d6e 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpRequestBuilderTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.http +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.content.ByteStream import aws.smithy.kotlin.runtime.http.content.ByteArrayContent import aws.smithy.kotlin.runtime.http.request.HttpRequest @@ -41,7 +42,7 @@ class HttpRequestBuilderTest { assertEquals(HttpBody.Empty, request.body) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testDumpRequest() = runTest { val content = "Mom!...Dad!...Bingo!...Bluey!" @@ -80,7 +81,7 @@ class HttpRequestBuilderTest { assertEquals(content, actualReplacedContent) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequestToBuilder() = runTest { val req = HttpRequest( diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt index cc3d2b8011..86b880be42 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.http.response +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.content.ByteStream import aws.smithy.kotlin.runtime.http.Headers import aws.smithy.kotlin.runtime.http.HttpBody @@ -37,7 +38,7 @@ class HttpResponseTest { assertEquals(HttpStatusCode.BadRequest, resp.statusCode()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testDumpResponse() = runTest { val content = "Mom!...Dad!...Bingo!...Bluey!" diff --git a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt index 8203c2c58d..b9ade1b3da 100644 --- a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt +++ b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.awsprotocol.rpcv2.cbor +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.ServiceException import aws.smithy.kotlin.runtime.http.* import aws.smithy.kotlin.runtime.http.operation.* @@ -56,7 +57,7 @@ internal fun getMockClient(response: ByteArray, responseHeaders: Headers = Heade internal val RESPONSE = "abc".repeat(1024).encodeToByteArray() class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testThrowsOnMissingHeader() = runTest { val req = HttpRequestBuilder() @@ -71,7 +72,7 @@ class RpcV2CborSmithyProtocolResponseHeaderInterceptorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSucceedsOnPresentHeader() = runTest { val req = HttpRequestBuilder() diff --git a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt index 116f320c66..1fb83195d6 100644 --- a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt +++ b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt @@ -2,6 +2,7 @@ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.awsprotocol.rpcv2.cbor.RpcV2CborErrorDeserializer import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor @@ -15,7 +16,7 @@ import kotlin.test.Test import kotlin.test.assertEquals class RpcV2CborErrorDeserializerTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testDeserializeErrorType() = runTest { val tests = listOf( diff --git a/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt b/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt index 27aa03c216..30eed9afe4 100644 --- a/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt +++ b/runtime/runtime-core/common/src/aws/smithy/kotlin/runtime/Annotations.kt @@ -63,4 +63,4 @@ public annotation class SdkDsl * Marks a test that should be ignored on Native platforms */ @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) -public expect annotation class IgnoreNative +public expect annotation class IgnoreNative() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt index c854d924d2..9f7a34b3b4 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.collections +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.time.ManualClock import aws.smithy.kotlin.runtime.util.ExpiringValue import kotlinx.coroutines.test.runTest @@ -14,7 +15,7 @@ import kotlin.time.Duration.Companion.minutes import kotlin.time.Duration.Companion.seconds class ReadThroughCacheTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadThrough() = runTest { val clock = ManualClock() @@ -38,7 +39,7 @@ class ReadThroughCacheTest { assertEquals(3, cache.get("b") { uncachedValue() }) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSweep() = runTest { val clock = ManualClock() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt index 30ba61df2a..5d4139b097 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt @@ -4,13 +4,14 @@ */ package aws.smithy.kotlin.runtime.content +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class BigDecimalTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigDecimal() { val reallyPreciseNumberString = "0.340282366920938463463374607431768211456" // 128 bits of magnitude @@ -18,13 +19,13 @@ class BigDecimalTest { assertEquals(reallyPreciseNumberString, reallyPreciseNumber.toPlainString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBadBigDecimal() { assertFails { BigDecimal("1234567890.1234567890foo") } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEquals() { val value = "0.340282366920938463463374607431768211456" diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt index 36965de0d8..7b6d58166a 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.content +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.text.encoding.decodeHexBytes import kotlin.test.Ignore import kotlin.test.Test @@ -12,7 +13,7 @@ import kotlin.test.assertEquals import kotlin.test.assertFails class BigIntegerTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigInteger() { val reallyBigNumberString = "340282366920938463463374607431768211456" // 128-bit number @@ -20,20 +21,20 @@ class BigIntegerTest { assertEquals(reallyBigNumberString, reallyBigNumber.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBadBigInteger() { assertFails { BigInteger("1234567890foo1234567890") } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testEquals() { val value = "340282366920938463463374607431768211456" assertEquals(BigInteger(value), BigInteger(value)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testPlusOperator() { // Map of an expected value to a pair of two values that should sum to get that expected value @@ -52,7 +53,7 @@ class BigIntegerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testMinusOperator() { // Map of an expected value to a pair of two values that should subtract to get that expected value @@ -71,7 +72,7 @@ class BigIntegerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testByteOperations() { // Map of hexadecimal encoding of a big integer to the expected string representation of that big integer diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt index 71c89f8512..1ddbc8e195 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/ByteStreamFlowTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.content +import aws.smithy.kotlin.runtime.IgnoreNative import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.* import kotlinx.coroutines.channels.Channel @@ -18,7 +19,7 @@ class ByteStreamChannelSourceFlowTest : ByteStreamFlowTest(ByteStreamFactory.SDK abstract class ByteStreamFlowTest( private val factory: ByteStreamFactory, ) { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testToFlowWithSizeHint() = runTest { val data = "a korf is a tiger".repeat(1024).encodeToByteArray() @@ -58,7 +59,7 @@ abstract class ByteStreamFlowTest( testByteArray(3278), ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFlowToByteStreamReadAll() = runTest { val flow = data.asFlow() @@ -139,7 +140,7 @@ abstract class ByteStreamFlowTest( ch.closedCause?.message.shouldContain("scope cancelled") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testChannelCancellation() = runTest { // cancelling the channel should cancel the scope (via write failing) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt index a83eef4aaa..c81a2502c2 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt @@ -5,12 +5,13 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class ByteArraySourceTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testByteArraySource() { val contents = "12345678".encodeToByteArray() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt index 26798a94b3..b5b506e6a3 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.crc32 import kotlinx.coroutines.test.runTest import kotlin.test.Ignore @@ -12,7 +13,7 @@ import kotlin.test.assertContentEquals import kotlin.test.assertEquals class GzipByteReadChannelTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAll() = runTest { val payload = "Hello World" @@ -32,7 +33,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToBuffer() = runTest { val payload = "Hello World".repeat(1600) @@ -51,7 +52,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemaining() = runTest { val payload = "Hello World".repeat(1600) @@ -71,7 +72,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRead() = runTest { val payload = "Hello World" @@ -92,7 +93,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBody() = runTest { val payload = "Hello World".repeat(1600) @@ -113,7 +114,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeLimit() = runTest { val payload = "Hello World" @@ -134,7 +135,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBodyLargeLimit() = runTest { val payload = "Hello World".repeat(1600) @@ -155,7 +156,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForRead() = runTest { val payload = "Hello World" @@ -178,7 +179,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForReadLargeBody() = runTest { val payload = "Hello World".repeat(1600) @@ -201,7 +202,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForReadLargeLimit() = runTest { val payload = "Hello World" @@ -224,7 +225,7 @@ class GzipByteReadChannelTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testIsClosedForReadLargeBodyLargeLimit() = runTest { val payload = "Hello World".repeat(1600) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt index 62d834f04c..f3997a5a1e 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.crc32 import kotlinx.coroutines.test.runTest import kotlin.test.Ignore @@ -12,7 +13,7 @@ import kotlin.test.assertContentEquals import kotlin.test.assertEquals class GzipSdkSourceTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToByteArray() = runTest { val payload = "Hello World" @@ -30,7 +31,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRead() = runTest { val payload = "Hello World" @@ -51,7 +52,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBody() = runTest { val payload = "Hello World".repeat(1600) @@ -73,7 +74,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeLimit() = runTest { val payload = "Hello World" @@ -94,7 +95,7 @@ class GzipSdkSourceTest { assertEquals(bytesHash, decompressedBytes.crc32()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLargeBodyLargeLimit() = runTest { val payload = "Hello World".repeat(1600) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt index 92aff29275..ba27fe54b0 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.toHashFunction import kotlinx.coroutines.test.runTest import kotlin.random.Random @@ -16,7 +17,7 @@ class HashingByteReadChannelTest { private val hashFunctionNames = listOf("crc32", "crc32c", "md5", "sha1", "sha256") - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAll() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -37,7 +38,7 @@ class HashingByteReadChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToBuffer() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -56,7 +57,7 @@ class HashingByteReadChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFully() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -76,7 +77,7 @@ class HashingByteReadChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemaining() = runTest { hashFunctionNames.forEach { hashFunctionName -> @@ -96,7 +97,7 @@ class HashingByteReadChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRead() = runTest { hashFunctionNames.forEach { hashFunctionName -> diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt index 3859fb9d9b..111278f397 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.toHashFunction import kotlin.test.Ignore import kotlin.test.Test @@ -14,7 +15,7 @@ class HashingSinkTest { private val hashFunctionNames = listOf("crc32", "crc32c", "md5", "sha1", "sha256") - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSinkDigest() = run { hashFunctionNames.forEach { hashFunctionName -> @@ -33,7 +34,7 @@ class HashingSinkTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSinkPartialWrite() = run { hashFunctionNames.forEach { hashFunctionName -> diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt index 4c17a5419d..fff0974116 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.* import kotlin.test.Ignore import kotlin.test.Test @@ -14,7 +15,7 @@ class HashingSourceTest { private val hashFunctionNames = listOf("crc32", "crc32c", "md5", "sha1", "sha256") - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSourceDigest() = run { hashFunctionNames.forEach { hashFunctionName -> @@ -34,7 +35,7 @@ class HashingSourceTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testHashingSourcePartialRead() = run { hashFunctionNames.forEach { hashFunctionName -> diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt index 48e28ca4c8..08da05f817 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.internal.SdkSinkObserver import aws.smithy.kotlin.runtime.io.internal.SdkSourceObserver import kotlin.test.Ignore @@ -12,7 +13,7 @@ import kotlin.test.Test import kotlin.test.assertEquals class ObserversTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkSourceObserver() { val source = SdkBuffer() @@ -35,7 +36,7 @@ class ObserversTest { assertEquals(sink.readUtf8(), observer.content.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSdkSinkObserver() { val sink = SdkSink.blackhole() diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt index 8e0c4fc45e..15166d5d29 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals @@ -25,7 +26,7 @@ abstract class AbstractBufferedSinkTest( private val data = SdkBuffer() private val sink = factory(data) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByte() { sink.writeByte(0xDE.toByte()) @@ -36,7 +37,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteShort() { sink.writeShort(0xdead.toShort()) @@ -45,7 +46,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteShortLe() { sink.writeShortLe(0xdead.toShort()) @@ -54,7 +55,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=addeefbe]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteInt() { sink.writeInt(0xdeadbeef.toInt()) @@ -62,7 +63,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteLe() { sink.writeIntLe(0xdeadbeef.toInt()) @@ -70,7 +71,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=efbeadde]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteLong() { sink.writeLong(-2401053092341600192) @@ -78,7 +79,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef10203040]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteLongLe() { sink.writeLongLe(4625232074423315934) @@ -86,7 +87,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[hex=deadbeef10203040]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteString() { sink.writeUtf8("レップはボールです") @@ -94,7 +95,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("[text=レップはボールです]", data.toString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteSubstring() { sink.writeUtf8("a lep is a ball", start = 2, endExclusive = 10) @@ -102,7 +103,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("lep is a", data.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteAll() { val contents = "a tay is a hammer" @@ -113,7 +114,7 @@ abstract class AbstractBufferedSinkTest( assertEquals(contents.length.toLong(), rc) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadSourceFully() { val source = object : SdkSource by SdkBuffer() { @@ -128,7 +129,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("12341234", data.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteEof() { val source: SdkSource = SdkBuffer().apply { writeUtf8("1234") } @@ -137,7 +138,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("1234", data.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteExhausted() { val source: SdkSource = SdkBuffer() @@ -145,7 +146,7 @@ abstract class AbstractBufferedSinkTest( assertEquals(0, data.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteExplicitZero() { val source = object : SdkSource by SdkBuffer() { @@ -156,7 +157,7 @@ abstract class AbstractBufferedSinkTest( assertEquals(0, data.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testCloseFlushes() { sink.writeUtf8("a flix is a comb") @@ -164,7 +165,7 @@ abstract class AbstractBufferedSinkTest( assertEquals("a flix is a comb", data.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByteArray() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -174,7 +175,7 @@ abstract class AbstractBufferedSinkTest( assertContentEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByteArrayOffset() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -184,7 +185,7 @@ abstract class AbstractBufferedSinkTest( assertContentEquals(expected.sliceArray(2..3), actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteByteArrayOffsetAndLimit() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt index 7633a27ebf..ed5430c8f2 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSourceTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.* /** @@ -56,7 +57,7 @@ abstract class BufferedSourceTest( source = pipe.source } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBytes() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef)) @@ -69,7 +70,7 @@ abstract class BufferedSourceTest( assertTrue(source.exhausted()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadEmpty() { assertFailsWith { @@ -77,7 +78,7 @@ abstract class BufferedSourceTest( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadShort() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef)) @@ -86,7 +87,7 @@ abstract class BufferedSourceTest( assertEquals(0xbeef.toShort(), source.readShort()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadShortLe() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef)) @@ -95,7 +96,7 @@ abstract class BufferedSourceTest( assertEquals(0xefbe.toShort(), source.readShortLe()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadInt() { sink.write(bytes(0x0b, 0xad, 0xca, 0xfe)) @@ -103,7 +104,7 @@ abstract class BufferedSourceTest( assertEquals(0x0badcafe, source.readInt()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadIntLe() { sink.write(bytes(0x0b, 0xad, 0xca, 0xfe)) @@ -111,7 +112,7 @@ abstract class BufferedSourceTest( assertEquals(-20271861, source.readIntLe()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLong() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef, 0x10, 0x20, 0x30, 0x40)) @@ -119,7 +120,7 @@ abstract class BufferedSourceTest( assertEquals(-2401053092341600192, source.readLong()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadLongLe() { sink.write(bytes(0xde, 0xad, 0xbe, 0xef, 0x10, 0x20, 0x30, 0x40)) @@ -127,7 +128,7 @@ abstract class BufferedSourceTest( assertEquals(4625232074423315934, source.readLongLe()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAll() { val content = "a lep is a ball" @@ -139,14 +140,14 @@ abstract class BufferedSourceTest( assertEquals(content, testSink.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAllExhaustedSource() { val testSink: SdkSink = SdkBuffer() assertEquals(0, source.readAll(testSink)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadExhausted() { val testSink = SdkBuffer() @@ -156,7 +157,7 @@ abstract class BufferedSourceTest( assertEquals(sizeBefore, testSink.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArray() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -165,7 +166,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayLimit() { val expected = bytes(0xde, 0xad, 0xbe, 0xef) @@ -174,7 +175,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected.sliceArray(0..1), actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayOffset() { val content = bytes(0xde, 0xad, 0xbe, 0xef) @@ -186,7 +187,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayOffsetAndLimit() { val content = bytes(0xde, 0xad, 0xbe, 0xef) @@ -198,7 +199,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayTooSmall() { // read into a byte array that is smaller than the available data which should result in a "short" read @@ -209,7 +210,7 @@ abstract class BufferedSourceTest( assertContentEquals(expected.sliceArray(0..2), testSink) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadByteArrayEOF() { // read into a byte array that is smaller than the available data which should result in a "short" read @@ -219,7 +220,7 @@ abstract class BufferedSourceTest( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkip() { val content = ByteArray(16 * 1024) { it.toByte() } @@ -231,7 +232,7 @@ abstract class BufferedSourceTest( assertContentEquals(content.sliceArray(8192 until content.size), actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testSkipNotEnoughData() { val content = ByteArray(1024) { it.toByte() } @@ -243,7 +244,7 @@ abstract class BufferedSourceTest( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testPeek() { sink.writeUtf8("a flix is a comb") @@ -257,7 +258,7 @@ abstract class BufferedSourceTest( assertEquals(" is a comb", source.readUtf8(10)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testMultiplePeek() { sink.writeUtf8("a flix is a comb") @@ -275,7 +276,7 @@ abstract class BufferedSourceTest( assertEquals(" is a comb", source.readUtf8(10)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testLargePeek() { sink.writeUtf8("123456") @@ -296,7 +297,7 @@ abstract class BufferedSourceTest( assertTrue(source.exhausted()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInvalidatedPeek() { // peek is invalid after first call to source @@ -315,7 +316,7 @@ abstract class BufferedSourceTest( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequest() { sink.writeUtf8("123456789".repeat(1024)) @@ -326,7 +327,7 @@ abstract class BufferedSourceTest( assertFalse(source.request(1024 * 9 + 1)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRequire() { sink.writeUtf8("123456789".repeat(1024)) @@ -338,7 +339,7 @@ abstract class BufferedSourceTest( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFully() { val data = "123456789".repeat(1024) @@ -350,7 +351,7 @@ abstract class BufferedSourceTest( assertEquals(data, dest.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyIllegalArgumentException() { val dest = SdkBuffer() @@ -359,7 +360,7 @@ abstract class BufferedSourceTest( } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyEOFException() { val data = "123456789".repeat(1024) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt index b0bf648da1..3070a3d472 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.testing.ManualDispatchTestBase import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.* @@ -30,7 +31,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { ch.cancel(CancellationException("Test finished")) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadBeforeAvailable() = runTest { // test readAvailable() suspends when no data is available @@ -61,7 +62,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(6) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterAvailable() = runTest { // test readAvailable() does NOT suspend when data is available @@ -89,7 +90,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(6) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullySuspends() = runTest { // test readFully() suspends when not enough data is available to satisfy the request @@ -119,7 +120,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(7) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAfterAvailableFully() = runTest { // test readFully() does NOT suspend when data is available to satisfy the request @@ -144,7 +145,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToEmpty() = runTest { // test read() does not suspend when length is zero @@ -158,7 +159,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(3) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToEmptyFromFailedChannel() = runTest { expect(1) @@ -170,7 +171,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadToEmptyFromClosedChannel() = runTest { expect(1) @@ -182,7 +183,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(3) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromFailedChannel() = runTest { expect(1) @@ -194,7 +195,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromClosedChannelNoSuspend() = runTest { expect(1) @@ -204,7 +205,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromClosedChannelSuspend() = runTest { expect(1) @@ -224,7 +225,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyFromFailedChannel() = runTest { expect(1) @@ -236,7 +237,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyFromClosedChannel() = runTest { expect(1) @@ -248,7 +249,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadState() = runTest { assertFalse(ch.isClosedForWrite) @@ -268,7 +269,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { assertTrue(ch.isClosedForRead) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemaining() = runTest { expect(1) @@ -289,7 +290,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(6) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadInProgress() = runTest { expect(1) @@ -311,7 +312,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteInProgress() = runTest { val chan = SdkByteChannel(true, 8) @@ -338,7 +339,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyEof() = runTest { expect(1) @@ -358,7 +359,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(5) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testResumeReadFromFailedChannel() = runTest { expect(1) @@ -377,7 +378,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(4) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testResumeReadFromClosedChannelNoContent() = runTest { expect(1) @@ -394,7 +395,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(4) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testLargeTransfer() = runTest { val data = "a".repeat(262144) + "b".repeat(512) @@ -409,7 +410,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { assertEquals(data.length.toLong(), ch.totalBytesWritten) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteNoSuspend() = runTest { val chan = SdkByteChannel(false, 8) @@ -420,7 +421,7 @@ class SdkByteChannelSuspendTest : ManualDispatchTestBase() { finish(2) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testWriteSuspend() = runTest { val chan = SdkByteChannel(false, 8) diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt index 43d30ee79d..e129614f59 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelTest.kt @@ -5,20 +5,21 @@ package aws.smithy.kotlin.runtime.io +import aws.smithy.kotlin.runtime.IgnoreNative import kotlinx.coroutines.launch import kotlinx.coroutines.test.runTest import kotlinx.coroutines.yield import kotlin.test.* class SdkByteChannelTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testCreateAndClose() { val chan = SdkByteChannel(false) chan.close() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testAutoFlush() = runTest { SdkByteChannel(false).use { chan -> @@ -43,7 +44,7 @@ class SdkByteChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testClose() = runTest { val chan = SdkByteChannel(false) @@ -88,7 +89,7 @@ class SdkByteChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFromClosedChannel() = runTest { val chan = SdkByteReadChannel(byteArrayOf(1, 2, 3, 4, 5)) @@ -102,7 +103,7 @@ class SdkByteChannelTest { assertTrue { chan.isClosedForRead } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAvailableNoSuspend() = runTest { val chan = SdkByteReadChannel("world!".encodeToByteArray()) @@ -115,7 +116,7 @@ class SdkByteChannelTest { assertEquals("hello, world!", buffer.readUtf8()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadAvailableSuspend() = runTest { val chan = SdkByteChannel() @@ -138,7 +139,7 @@ class SdkByteChannelTest { job.join() } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testCloseableUse() = runTest { val chan = SdkByteChannel(true) @@ -160,7 +161,7 @@ class SdkByteChannelTest { assertTrue(chan.isClosedForRead) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadFullyFromFailedChannel() = runTest { // ensure that we attempt reading such that failures are propagate to caller @@ -173,7 +174,7 @@ class SdkByteChannelTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testReadRemainingFromFailedChannel() = runTest { // ensure that we attempt reading such that failures are propagate to caller diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt index b7d31928b4..52db0eee96 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.time +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -62,7 +63,7 @@ class InstantTest { FromTest("2020-11-04T24:00:00Z", 1604534400, 0), ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromIso8601() { for ((idx, test) in iso8601Tests.withIndex()) { @@ -101,7 +102,7 @@ class InstantTest { TimestampFormat.ISO_8601_CONDENSED_DATE to Iso8601FmtTest::expectedIso8601CondDate, ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFormatAsIso8601() { for ((idx, test) in iso8601FmtTests.withIndex()) { @@ -125,7 +126,7 @@ class InstantTest { FromTest("Thu, 05 Nov 2020 19:22:37 -1245", 1604650057, 0), ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromRfc5322() { for ((idx, test) in rfc5322Tests.withIndex()) { @@ -143,7 +144,7 @@ class InstantTest { FmtTest(1604650057, 0, "Fri, 06 Nov 2020 08:07:37 GMT"), ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFormatAsRfc5322() { for ((idx, test) in rfc5322FmtTests.withIndex()) { @@ -162,7 +163,7 @@ class InstantTest { FmtTest(1604604157, 345_006_000, "1604604157.345006"), ) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFormatAsEpochSeconds() { for ((idx, test) in epochFmtTests.withIndex()) { @@ -173,7 +174,7 @@ class InstantTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testToEpochDouble() { val sec = 1604604157L @@ -184,7 +185,7 @@ class InstantTest { assertTrue(kotlin.math.abs(0.012345 - fracSecs) < 0.00001) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testGetCurrentTime() { val currentTime = Instant.now() @@ -194,7 +195,7 @@ class InstantTest { assertTrue(currentTime.epochSeconds > pastInstant) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testGetEpochMilliseconds() { val instant = Instant.fromEpochSeconds(1602878160, 200_000) @@ -206,7 +207,7 @@ class InstantTest { assertEquals(expected2, instantWithMilli.epochMilliseconds) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFromEpochMilliseconds() { val ts1 = 1602878160000L @@ -218,7 +219,7 @@ class InstantTest { assertEquals(expected2, Instant.fromEpochMilliseconds(ts2)) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNegativeFromEpochSeconds() { val timestamp = Instant.fromEpochSeconds(-806976000L) @@ -228,7 +229,7 @@ class InstantTest { // Select tests pulled from edge cases/tickets in the V2 Java SDK. // Always good to learn from others... class V2JavaSdkTests { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun v2JavaSdkTt0031561767() { val input = "Fri, 16 May 2014 23:56:46 GMT" @@ -240,7 +241,7 @@ class InstantTest { * Tests the Date marshalling and unmarshalling. Asserts that the value is * same before and after marshalling/unmarshalling */ - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun v2JavaSdkUnixTimestampRoundtrip() { // v2 sdk used currentTimeMillis(), instead we just hard code a value here @@ -265,7 +266,7 @@ class InstantTest { // been accepted by the parser. } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testPlusMinusDuration() { val start = Instant.fromEpochSeconds(1000, 1000) @@ -275,7 +276,7 @@ class InstantTest { assertEquals(Instant.fromEpochSeconds(990, 0), start - offset) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testRoundTripUtcOffset() { // sanity check we only ever emit UTC timestamps (e.g. round trip a response with UTC offset) @@ -294,7 +295,7 @@ class InstantTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testUntil() { val untilTests = mapOf( diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt index 8403993c90..75c358930d 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.time +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -12,7 +13,7 @@ import kotlin.time.Duration.Companion.milliseconds import kotlin.time.Duration.Companion.seconds class ManualClockTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testAdvance() { val epoch = 1634413920L diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt index 0710c73dd2..cf118b0f6a 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt @@ -4,12 +4,13 @@ */ package aws.smithy.kotlin.runtime.time +import aws.smithy.kotlin.runtime.IgnoreNative import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals class ParseEpochTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itParsesEpochTimestamps() { val tests = listOf( diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt index 4a600d8fe3..6a4f7fa07e 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/util/CachedValueTest.kt @@ -5,6 +5,7 @@ package aws.smithy.kotlin.runtime.util +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.ManualClock import kotlinx.coroutines.* @@ -15,7 +16,7 @@ import kotlin.test.* import kotlin.time.Duration.Companion.seconds class CachedValueTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNull() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -26,7 +27,7 @@ class CachedValueTest { assertNull(value.get()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testExpiration() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -43,7 +44,7 @@ class CachedValueTest { assertNull(value.get()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testExpirationBuffer() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -60,7 +61,7 @@ class CachedValueTest { assertNull(value.get()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testGetOrLoad() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -97,7 +98,7 @@ class CachedValueTest { assertEquals(2, count) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testClose() = runTest { val epoch = Instant.fromEpochSeconds(0) @@ -112,7 +113,7 @@ class CachedValueTest { assertFailsWith { value.get() } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun throwsAfterCloseDuringGetOrLoad() = runTest { val epoch = Instant.fromEpochSeconds(0) diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt index ef4a8ba68d..914374e8d4 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.serde.cbor +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor import aws.smithy.kotlin.runtime.serde.SerialKind @@ -15,7 +16,7 @@ import kotlin.test.Test import kotlin.test.assertFails class CborDeserializerErrorTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - float64 - incomplete float64 at end of buf`() { val payload = "0xfb00000000000000".toByteArray() @@ -28,7 +29,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x1900".toByteArray() @@ -41,7 +42,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x1a000000".toByteArray() @@ -54,7 +55,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x3900".toByteArray() @@ -67,7 +68,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x5900".toByteArray() @@ -80,7 +81,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x5b00000000000000".toByteArray() @@ -93,7 +94,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 2 - arg len 2 greater than remaining buf len`() { val payload = "0xd900".toByteArray() @@ -105,7 +106,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 4 - arg len 4 greater than remaining buf len`() { val payload = "0xda000000".toByteArray() @@ -117,7 +118,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - unexpected minor value 31`() { val payload = "0x1f".toByteArray() @@ -130,7 +131,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x98".toByteArray() @@ -145,7 +146,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x9a000000".toByteArray() @@ -160,7 +161,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x9b00000000000000".toByteArray() @@ -175,7 +176,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 1 - arg len 1 greater than remaining buf len`() { val payload = "0xb8".toByteArray() @@ -191,7 +192,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 4 - arg len 4 greater than remaining buf len`() { val payload = "0xba000000".toByteArray() @@ -207,7 +208,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - float32 - incomplete float32 at end of buf`() { val payload = "0xfa000000".toByteArray() @@ -220,7 +221,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x7900".toByteArray() @@ -233,7 +234,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - list - 2 - arg len 2 greater than remaining buf len`() { val payload = "0x9900".toByteArray() @@ -248,7 +249,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - unexpected minor value 31`() { val payload = "0x3f".toByteArray() @@ -261,7 +262,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x7b00000000000000".toByteArray() @@ -274,7 +275,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - unexpected minor value 31`() { val payload = "0xff".toByteArray() @@ -287,7 +288,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x78".toByteArray() @@ -300,7 +301,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - unexpected minor value 31`() { val payload = "0xdf".toByteArray() @@ -312,7 +313,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x58".toByteArray() @@ -325,7 +326,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - slice - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x5a000000".toByteArray() @@ -338,7 +339,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 2 - arg len 2 greater than remaining buf len`() { val payload = "0xb900".toByteArray() @@ -354,7 +355,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - map - 8 - arg len 8 greater than remaining buf len`() { val payload = "0xbb00000000000000".toByteArray() @@ -370,7 +371,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 8 - arg len 8 greater than remaining buf len`() { val payload = "0xdb00000000000000".toByteArray() @@ -382,7 +383,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x18".toByteArray() @@ -395,7 +396,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - major7 - float16 - incomplete float16 at end of buf`() { val payload = "0xf900".toByteArray() @@ -408,7 +409,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - uint - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x1b00000000000000".toByteArray() @@ -421,7 +422,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 1 - arg len 1 greater than remaining buf len`() { val payload = "0x38".toByteArray() @@ -434,7 +435,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x3a000000".toByteArray() @@ -447,7 +448,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - negint - 8 - arg len 8 greater than remaining buf len`() { val payload = "0x3b00000000000000".toByteArray() @@ -460,7 +461,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - string - 4 - arg len 4 greater than remaining buf len`() { val payload = "0x7a000000".toByteArray() @@ -473,7 +474,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidArgument - tag - 1 - arg len 1 greater than remaining buf len`() { val payload = "0xd8".toByteArray() @@ -485,7 +486,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - indefinite list - invalid item - arg len 1 greater than remaining buf len`() { val payload = "0x9f18".toByteArray() @@ -500,7 +501,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - list - eof after head - unexpected end of payload`() { val payload = "0x81".toByteArray() @@ -515,7 +516,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - list - invalid item - arg len 1 greater than remaining buf len`() { val payload = "0x8118".toByteArray() @@ -530,7 +531,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidList - indefinite list - no break - expected break marker`() { val payload = "0x9f".toByteArray() @@ -545,7 +546,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - non-string key - unexpected major type 0 for map key`() { val payload = "0xa100".toByteArray() @@ -561,7 +562,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - invalid key - slice len 1 greater than remaining buf len`() { val payload = "0xa17801".toByteArray() @@ -577,7 +578,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - invalid value - arg len 1 greater than remaining buf len`() { val payload = "0xa163666f6f18".toByteArray() @@ -593,7 +594,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - no break - expected break marker`() { val payload = "0xbf".toByteArray() @@ -609,7 +610,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - non-string key - unexpected major type 0 for map key`() { val payload = "0xbf00".toByteArray() @@ -625,7 +626,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - invalid key - slice len 1 greater than remaining buf len`() { val payload = "0xbf7801".toByteArray() @@ -641,7 +642,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - indefinite map - invalid value - arg len 1 greater than remaining buf len`() { val payload = "0xbf63666f6f18".toByteArray() @@ -657,7 +658,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidMap - map - eof after head - unexpected end of payload`() { val payload = "0xa1".toByteArray() @@ -673,7 +674,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - invalid nested definite - decode subslice slice len 1 greater than remaining buf len`() { val payload = "0x5f5801".toByteArray() @@ -686,7 +687,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - no break - expected break marker`() { val payload = "0x7f".toByteArray() @@ -699,7 +700,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - invalid nested major - unexpected major type 2 in indefinite slice`() { val payload = "0x7f40".toByteArray() @@ -712,7 +713,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - nested indefinite - nested indefinite slice`() { val payload = "0x7f7f".toByteArray() @@ -725,7 +726,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - invalid nested definite - decode subslice - slice len 1 greater than remaining buf len`() { val payload = "0x7f7801".toByteArray() @@ -738,7 +739,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - invalid nested major - unexpected major type 3 in indefinite slice`() { val payload = "0x5f60".toByteArray() @@ -751,7 +752,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - no break - expected break marker`() { val payload = "0x5f".toByteArray() @@ -764,7 +765,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - nested indefinite - nested indefinite slice`() { val payload = "0x5f5f".toByteArray() @@ -777,7 +778,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - string - 1 - not enough bytes - slice len 1 greater than remaining buf len`() { val payload = "0x7801".toByteArray() @@ -790,7 +791,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidSlice - slice - 1 - not enough bytes - slice len 1 greater than remaining buf len`() { val payload = "0x5801".toByteArray() @@ -803,7 +804,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidTag - invalid value - arg len 1 greater than remaining buf len`() { val payload = "0xc118".toByteArray() @@ -815,7 +816,7 @@ class CborDeserializerErrorTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `TestDecode_InvalidTag - eof - unexpected end of payload`() { val payload = "0xc1".toByteArray() diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt index 7c07c7d0c7..03f52f0936 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerSuccessTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.serde.cbor +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor import aws.smithy.kotlin.runtime.serde.SerialKind @@ -24,7 +25,7 @@ internal fun String.toByteArray(): ByteArray = this .toByteArray() class CborDeserializerSuccessTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - undefined`() { val payload = "0xf7".toByteArray() @@ -36,7 +37,7 @@ class CborDeserializerSuccessTest { assertEquals(null, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float64 - 1dot625`() { val payload = "0xfb3ffa000000000000".toByteArray() @@ -48,7 +49,7 @@ class CborDeserializerSuccessTest { assertEquals(1.625, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 0 - max`() { val payload = "0x17".toByteArray() @@ -60,7 +61,7 @@ class CborDeserializerSuccessTest { assertEquals(23, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 8 - min`() { val payload = "0x1b0000000000000000".toByteArray() @@ -72,7 +73,7 @@ class CborDeserializerSuccessTest { assertEquals(0uL, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 8 - max`() { val payload = "0x1bffffffffffffffff".toByteArray() @@ -81,7 +82,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 8 - min`() { val payload = "0x3b0000000000000000".toByteArray() @@ -93,7 +94,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - true`() { val payload = "0xf5".toByteArray() @@ -105,7 +106,7 @@ class CborDeserializerSuccessTest { assertEquals(true, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 4 - min`() { val payload = "0x1a00000000".toByteArray() @@ -117,7 +118,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 4 - max`() { val payload = "0x1affffffff".toByteArray() @@ -127,7 +128,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value.toUInt()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 1 - min`() { val payload = "0x3800".toByteArray() @@ -139,7 +140,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - subnormal`() { val payload = "0xf90050".toByteArray() @@ -151,7 +152,7 @@ class CborDeserializerSuccessTest { assertEquals(4.7683716E-6f, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - NaN - LSB`() { val payload = "0xf97c01".toByteArray() @@ -163,7 +164,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 1 - min`() { val payload = "0x1800".toByteArray() @@ -175,7 +176,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 0 - min`() { val payload = "0x20".toByteArray() @@ -187,7 +188,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - -Inf`() { val payload = "0xf9fc00".toByteArray() @@ -199,7 +200,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 8 - max`() { val payload = "0x3bfffffffffffffffe".toByteArray() @@ -208,7 +209,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 0 - min`() { val payload = "0x00".toByteArray() @@ -220,7 +221,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 1 - max`() { val payload = "0x18ff".toByteArray() @@ -229,7 +230,7 @@ class CborDeserializerSuccessTest { assertEquals(255u, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 2 - min`() { val payload = "0x190000".toByteArray() @@ -241,7 +242,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 1 - max`() { val payload = "0x38ff".toByteArray() @@ -253,7 +254,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 2 - min`() { val payload = "0x390000".toByteArray() @@ -265,7 +266,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float64 - +Inf`() { val payload = "0xfb7ff0000000000000".toByteArray() @@ -277,7 +278,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 4 - min`() { val payload = "0x3a00000000".toByteArray() @@ -289,7 +290,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 4 - max`() { val payload = "0x3affffffff".toByteArray() @@ -302,7 +303,7 @@ class CborDeserializerSuccessTest { assertEquals(res, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - NaN - MSB`() { val payload = "0xf97e00".toByteArray() @@ -314,7 +315,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float32 - +Inf`() { val payload = "0xfa7f800000".toByteArray() @@ -326,7 +327,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - uint - 2 - max`() { val payload = "0x19ffff".toByteArray() @@ -335,7 +336,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, aws.smithy.kotlin.runtime.serde.cbor.encoding.UInt.decode(buffer).value.toUShort()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 2 - max`() { val payload = "0x39ffff".toByteArray() @@ -344,7 +345,7 @@ class CborDeserializerSuccessTest { assertEquals(65536u, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - false`() { val payload = "0xf4".toByteArray() @@ -356,7 +357,7 @@ class CborDeserializerSuccessTest { assertEquals(false, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - null`() { val payload = "0xf6".toByteArray() @@ -368,7 +369,7 @@ class CborDeserializerSuccessTest { assertEquals(null, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - negint - 0 - max`() { val payload = "0x37".toByteArray() @@ -380,7 +381,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float16 - +Inf`() { val payload = "0xf97c00".toByteArray() @@ -392,7 +393,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `atomic - float32 - 1dot625`() { val payload = "0xfa3fd00000".toByteArray() @@ -404,7 +405,7 @@ class CborDeserializerSuccessTest { assertEquals(1.625f, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite slice - len = 0`() { val payload = "0x40".toByteArray() @@ -416,7 +417,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite slice - len greater than 0`() { val payload = "0x43666f6f".toByteArray() @@ -433,7 +434,7 @@ class CborDeserializerSuccessTest { assertEquals(3, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite string - len = 0`() { val payload = "0x60".toByteArray() @@ -445,7 +446,7 @@ class CborDeserializerSuccessTest { assertEquals("", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `definite string - len greater than 0`() { val payload = "0x63666f6f".toByteArray() @@ -457,7 +458,7 @@ class CborDeserializerSuccessTest { assertEquals("foo", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len greater than 0`() { val payload = "0x5f43666f6f40ff".toByteArray() @@ -474,7 +475,7 @@ class CborDeserializerSuccessTest { assertEquals(3, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len greater than 0 - len greater than 0`() { val payload = "0x5f43666f6f43666f6fff".toByteArray() @@ -489,7 +490,7 @@ class CborDeserializerSuccessTest { assertEquals(expected.size, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len = 0`() { val payload = "0x5fff".toByteArray() @@ -501,7 +502,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len = 0 explicit`() { val payload = "0x5f40ff".toByteArray() @@ -513,7 +514,7 @@ class CborDeserializerSuccessTest { assertEquals(0, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite slice - len = 0 - len greater than 0`() { val payload = "0x5f4043666f6fff".toByteArray() @@ -528,7 +529,7 @@ class CborDeserializerSuccessTest { assertEquals(expected.size, result.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len = 0`() { val payload = "0x7fff".toByteArray() @@ -540,7 +541,7 @@ class CborDeserializerSuccessTest { assertEquals("", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len = 0 - explicit`() { val payload = "0x7f60ff".toByteArray() @@ -552,7 +553,7 @@ class CborDeserializerSuccessTest { assertEquals("", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len = 0 - len greater than 0`() { val payload = "0x7f6063666f6fff".toByteArray() @@ -564,7 +565,7 @@ class CborDeserializerSuccessTest { assertEquals("foo", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len greater than 0 - len = 0`() { val payload = "0x7f63666f6f60ff".toByteArray() @@ -576,7 +577,7 @@ class CborDeserializerSuccessTest { assertEquals("foo", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite string - len greater than 0 - len greater than 0`() { val payload = "0x7f63666f6f63666f6fff".toByteArray() @@ -588,7 +589,7 @@ class CborDeserializerSuccessTest { assertEquals("foofoo", result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of one uint - 1 - max`() { val payload = "0x8118ff".toByteArray() @@ -606,7 +607,7 @@ class CborDeserializerSuccessTest { assertEquals(255u, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of one uint - 8 - min`() { val payload = "0x811b0000000000000000".toByteArray() @@ -624,7 +625,7 @@ class CborDeserializerSuccessTest { assertEquals(0, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 1 - min`() { val payload = "0x9f1800ff".toByteArray() @@ -642,7 +643,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 2 - max`() { val payload = "0x9f19ffffff".toByteArray() @@ -660,7 +661,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 2 - min`() { val payload = "0x9f390000ff".toByteArray() @@ -678,7 +679,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 4 - max`() { val payload = "0x811affffffff".toByteArray() @@ -696,7 +697,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 8 - min`() { val payload = "0x9f1b0000000000000000ff".toByteArray() @@ -714,7 +715,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MIN_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 2 - max`() { val payload = "0x9f39ffffff".toByteArray() @@ -732,7 +733,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - NaN - LSB`() { val payload = "0x9ff97c01ff".toByteArray() @@ -750,7 +751,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 1 - max`() { val payload = "0x8138ff".toByteArray() @@ -768,7 +769,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 2 - min`() { val payload = "0x81390000".toByteArray() @@ -786,7 +787,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of null`() { val payload = "0x81f6".toByteArray() @@ -800,7 +801,7 @@ class CborDeserializerSuccessTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 -Inf`() { val payload = "0x81f9fc00".toByteArray() @@ -818,7 +819,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 4 - min`() { val payload = "0x9f1a00000000ff".toByteArray() @@ -836,7 +837,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 1 - min`() { val payload = "0x811800".toByteArray() @@ -854,7 +855,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 0 - max`() { val payload = "0x9f17ff".toByteArray() @@ -872,7 +873,7 @@ class CborDeserializerSuccessTest { assertEquals(23u, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 0 - min`() { val payload = "0x9f20ff".toByteArray() @@ -890,7 +891,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 1 - max`() { val payload = "0x9f38ffff".toByteArray() @@ -908,7 +909,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of null`() { val payload = "0x9ff6ff".toByteArray() @@ -922,7 +923,7 @@ class CborDeserializerSuccessTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 1 - max`() { val payload = "0x9f18ffff".toByteArray() @@ -940,7 +941,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MAX_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 4 - max`() { val payload = "0x9f1affffffffff".toByteArray() @@ -958,7 +959,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of _ uint - 8 - max`() { val payload = "0x9f1bffffffffffffffffff".toByteArray() @@ -981,7 +982,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of boolean true`() { val payload = "0x9ff5ff".toByteArray() @@ -999,7 +1000,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of undefined`() { val payload = "0x9ff7ff".toByteArray() @@ -1017,7 +1018,7 @@ class CborDeserializerSuccessTest { assertEquals(0, actual.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 0 - max`() { val payload = "0x8117".toByteArray() @@ -1035,7 +1036,7 @@ class CborDeserializerSuccessTest { assertEquals(23u, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 8 - max`() { val payload = "0x811bffffffffffffffff".toByteArray() @@ -1056,7 +1057,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 0 - min`() { val payload = "0x8120".toByteArray() @@ -1074,7 +1075,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 0 - max`() { val payload = "0x8137".toByteArray() @@ -1092,7 +1093,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 4 - min`() { val payload = "0x813a00000000".toByteArray() @@ -1110,7 +1111,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of boolean true`() { val payload = "0x81f5".toByteArray() @@ -1128,7 +1129,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float32`() { val payload = "0x81fa7f800000".toByteArray() @@ -1146,7 +1147,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float64`() { val payload = "0x81fb7ff0000000000000".toByteArray() @@ -1164,7 +1165,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 2 - min`() { val payload = "0x9f190000ff".toByteArray() @@ -1182,7 +1183,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - NaN - MSB`() { val payload = "0x9ff97e00ff".toByteArray() @@ -1200,7 +1201,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 0 - max`() { val payload = "0x9f37ff".toByteArray() @@ -1218,7 +1219,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 1 - min`() { val payload = "0x9f3800ff".toByteArray() @@ -1236,7 +1237,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 8 - min`() { val payload = "0x9f3b0000000000000000ff".toByteArray() @@ -1254,7 +1255,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 8 - max`() { val payload = "0x9f3bfffffffffffffffeff".toByteArray() @@ -1276,7 +1277,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of boolean false`() { val payload = "0x81f4".toByteArray() @@ -1294,7 +1295,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of uint - 0 - min`() { val payload = "0x9f00ff".toByteArray() @@ -1312,7 +1313,7 @@ class CborDeserializerSuccessTest { assertEquals(0, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 4 - min`() { val payload = "0x9f3a00000000ff".toByteArray() @@ -1330,7 +1331,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of negint - 4 - max`() { val payload = "0x9f3affffffffff".toByteArray() @@ -1348,7 +1349,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - +Inf`() { val payload = "0x9ff97c00ff".toByteArray() @@ -1366,7 +1367,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 0 - min`() { val payload = "0x8100".toByteArray() @@ -1384,7 +1385,7 @@ class CborDeserializerSuccessTest { assertEquals(0u, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 1 - min`() { val payload = "0x813800".toByteArray() @@ -1402,7 +1403,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float16 - -Inf`() { val payload = "0x9ff9fc00ff".toByteArray() @@ -1420,7 +1421,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float32`() { val payload = "0x9ffa7f800000ff".toByteArray() @@ -1438,7 +1439,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 2 - min`() { val payload = "0x81190000".toByteArray() @@ -1456,7 +1457,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 4 - min`() { val payload = "0x811a00000000".toByteArray() @@ -1474,7 +1475,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 - +Inf`() { val payload = "0x81f97c00".toByteArray() @@ -1492,7 +1493,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of float64`() { val payload = "0x9ffb7ff0000000000000ff".toByteArray() @@ -1510,7 +1511,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 - NaN - MSB`() { val payload = "0x81f97e00".toByteArray() @@ -1528,7 +1529,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of float16 - NaN - LSB`() { val payload = "0x81f97c01".toByteArray() @@ -1546,7 +1547,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite list of boolean false`() { val payload = "0x9ff4ff".toByteArray() @@ -1564,7 +1565,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 8 - min`() { val payload = "0x813b0000000000000000".toByteArray() @@ -1582,7 +1583,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 8 - max`() { val payload = "0x813bfffffffffffffffe".toByteArray() @@ -1604,7 +1605,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of undefined`() { val payload = "0x81f7".toByteArray() @@ -1618,7 +1619,7 @@ class CborDeserializerSuccessTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of uint - 2 - max`() { val payload = "0x8119ffff".toByteArray() @@ -1636,7 +1637,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 2 - max`() { val payload = "0x8139ffff".toByteArray() @@ -1654,7 +1655,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `list of negint - 4 - max`() { val payload = "0x813affffffff".toByteArray() @@ -1672,7 +1673,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual[0]) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - _ uint - 8 - max`() { val payload = "0xbf63666f6f1bffffffffffffffffff".toByteArray() @@ -1696,7 +1697,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of null`() { val payload = "0xa163666f6ff6".toByteArray() @@ -1715,7 +1716,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - _ negint - 4 - max`() { val payload = "0xbf63666f6f3affffffffff".toByteArray() @@ -1734,7 +1735,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - _ float16 - -Inf`() { val payload = "0xbf63666f6ff9fc00ff".toByteArray() @@ -1753,7 +1754,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 2 - max`() { val payload = "0xa163666f6f19ffff".toByteArray() @@ -1772,7 +1773,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 1 - min`() { val payload = "0xa163666f6f3800".toByteArray() @@ -1791,7 +1792,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of undefined`() { val payload = "0xbf63666f6ff7ff".toByteArray() @@ -1810,7 +1811,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 0 - max`() { val payload = "0xa163666f6f17".toByteArray() @@ -1829,7 +1830,7 @@ class CborDeserializerSuccessTest { assertEquals(23, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 0 - max`() { val payload = "0xbf63666f6f17ff".toByteArray() @@ -1848,7 +1849,7 @@ class CborDeserializerSuccessTest { assertEquals(23, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 1 - min`() { val payload = "0xbf63666f6f1800ff".toByteArray() @@ -1867,7 +1868,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 8 - min`() { val payload = "0xbf63666f6f1b0000000000000000ff".toByteArray() @@ -1886,7 +1887,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 8 - max`() { val payload = "0xbf63666f6f3bfffffffffffffffeff".toByteArray() @@ -1910,7 +1911,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 2 - min`() { val payload = "0xa163666f6f190000".toByteArray() @@ -1929,7 +1930,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float16 - NaN - MSB`() { val payload = "0xbf63666f6ff97e00ff".toByteArray() @@ -1948,7 +1949,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 0 - min`() { val payload = "0xa163666f6f20".toByteArray() @@ -1967,7 +1968,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - float16 - -Inf`() { val payload = "0xa163666f6ff9fc00".toByteArray() @@ -1986,7 +1987,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NEGATIVE_INFINITY, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 1 - max`() { val payload = "0xbf63666f6f38ffff".toByteArray() @@ -2005,7 +2006,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 8 - min`() { val payload = "0xbf63666f6f3b0000000000000000ff".toByteArray() @@ -2024,7 +2025,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 1 - min`() { val payload = "0xa163666f6f1800".toByteArray() @@ -2043,7 +2044,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 2 - min`() { val payload = "0xbf63666f6f190000ff".toByteArray() @@ -2062,7 +2063,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 2 - max`() { val payload = "0xbf63666f6f19ffffff".toByteArray() @@ -2081,7 +2082,7 @@ class CborDeserializerSuccessTest { assertEquals(UShort.MAX_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 0 - max`() { val payload = "0xbf63666f6f37ff".toByteArray() @@ -2100,7 +2101,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 2 - max`() { val payload = "0xbf63666f6f39ffffff".toByteArray() @@ -2119,7 +2120,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of boolean true`() { val payload = "0xa163666f6ff5".toByteArray() @@ -2138,7 +2139,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of boolean true`() { val payload = "0xbf63666f6ff5ff".toByteArray() @@ -2157,7 +2158,7 @@ class CborDeserializerSuccessTest { assertEquals(true, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of boolean false`() { val payload = "0xbf63666f6ff4ff".toByteArray() @@ -2176,7 +2177,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 8 - max`() { val payload = "0xa163666f6f1bffffffffffffffff".toByteArray() @@ -2200,7 +2201,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - float16 - NaN - LSB`() { val payload = "0xa163666f6ff97c01".toByteArray() @@ -2219,7 +2220,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 0 - min`() { val payload = "0xbf63666f6f00ff".toByteArray() @@ -2238,7 +2239,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 4 - min`() { val payload = "0xbf63666f6f3a00000000ff".toByteArray() @@ -2257,7 +2258,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float32`() { val payload = "0xbf63666f6ffa7f800000ff".toByteArray() @@ -2276,7 +2277,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of uint - 0 - min`() { val payload = "0xa163666f6f00".toByteArray() @@ -2295,7 +2296,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 1 - max`() { val payload = "0xa163666f6f38ff".toByteArray() @@ -2314,7 +2315,7 @@ class CborDeserializerSuccessTest { assertEquals(-256, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - float64`() { val payload = "0xa163666f6ffb7ff0000000000000".toByteArray() @@ -2333,7 +2334,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float16 - NaN - LSB`() { val payload = "0xbf63666f6ff97c01ff".toByteArray() @@ -2352,7 +2353,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 8 - min`() { val payload = "0xa163666f6f1b0000000000000000".toByteArray() @@ -2371,7 +2372,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 8 - max`() { val payload = "0xa163666f6f3bfffffffffffffffe".toByteArray() @@ -2395,7 +2396,7 @@ class CborDeserializerSuccessTest { assertEquals(ULong.MAX_VALUE, result) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of undefined`() { val payload = "0xa163666f6ff7".toByteArray() @@ -2414,7 +2415,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of float16 - NaN - MSB`() { val payload = "0xa163666f6ff97e00".toByteArray() @@ -2433,7 +2434,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.NaN, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 8 - min`() { val payload = "0xa163666f6f3b0000000000000000".toByteArray() @@ -2452,7 +2453,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 4 - max`() { val payload = "0xbf63666f6f1affffffffff".toByteArray() @@ -2471,7 +2472,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 1 - min`() { val payload = "0xbf63666f6f3800ff".toByteArray() @@ -2490,7 +2491,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float16 - +Inf`() { val payload = "0xbf63666f6ff97c00ff".toByteArray() @@ -2509,7 +2510,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - negint - 2 - min`() { val payload = "0xa163666f6f390000".toByteArray() @@ -2528,7 +2529,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of false`() { val payload = "0xa163666f6ff4".toByteArray() @@ -2547,7 +2548,7 @@ class CborDeserializerSuccessTest { assertEquals(false, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of float32`() { val payload = "0xa163666f6ffa7f800000".toByteArray() @@ -2566,7 +2567,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.fromBits(2139095040), actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 1 - max`() { val payload = "0xbf63666f6f18ffff".toByteArray() @@ -2585,7 +2586,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MAX_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 0 - max`() { val payload = "0xa163666f6f37".toByteArray() @@ -2604,7 +2605,7 @@ class CborDeserializerSuccessTest { assertEquals(-24, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 4 - max`() { val payload = "0xa163666f6f3affffffff".toByteArray() @@ -2623,7 +2624,7 @@ class CborDeserializerSuccessTest { assertEquals(-4294967296, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of float16 - +Inf`() { val payload = "0xa163666f6ff97c00".toByteArray() @@ -2642,7 +2643,7 @@ class CborDeserializerSuccessTest { assertEquals(Float.POSITIVE_INFINITY, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of float64`() { val payload = "0xbf63666f6ffb7ff0000000000000ff".toByteArray() @@ -2661,7 +2662,7 @@ class CborDeserializerSuccessTest { assertEquals(Double.fromBits(9218868437227405312), actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of uint - 1 - max`() { val payload = "0xa163666f6f18ff".toByteArray() @@ -2680,7 +2681,7 @@ class CborDeserializerSuccessTest { assertEquals(UByte.MAX_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map - uint - 4 - max`() { val payload = "0xa163666f6f1affffffff".toByteArray() @@ -2699,7 +2700,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MAX_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 2 - max`() { val payload = "0xa163666f6f39ffff".toByteArray() @@ -2718,7 +2719,7 @@ class CborDeserializerSuccessTest { assertEquals(-65536, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of uint - 4 - min`() { val payload = "0xbf63666f6f1a00000000ff".toByteArray() @@ -2737,7 +2738,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 0 - min`() { val payload = "0xbf63666f6f20ff".toByteArray() @@ -2756,7 +2757,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of null`() { val payload = "0xbf63666f6ff6ff".toByteArray() @@ -2775,7 +2776,7 @@ class CborDeserializerSuccessTest { assertEquals(null, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of uint - 4 - min`() { val payload = "0xa163666f6f1a00000000".toByteArray() @@ -2794,7 +2795,7 @@ class CborDeserializerSuccessTest { assertEquals(UInt.MIN_VALUE, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `map of negint - 4 - min`() { val payload = "0xa163666f6f3a00000000".toByteArray() @@ -2813,7 +2814,7 @@ class CborDeserializerSuccessTest { assertEquals(-1, actual.entries.first().value) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun `indefinite map of negint - 2 - min`() { val payload = "0xbf63666f6f390000ff".toByteArray() diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt index fa42d5c347..8c888272fd 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.serde.cbor +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.SdkBuffer import kotlin.test.Ignore import kotlin.test.Test @@ -11,7 +12,7 @@ import kotlin.test.assertEquals import kotlin.test.assertFails class CborDeserializerTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNumberDeserializationThrowsOnOutOfRange() { val serializer = CborSerializer() diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt index 503bf169ae..b8c45af823 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborSerializerTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.serde.cbor +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.content.BigDecimal import aws.smithy.kotlin.runtime.content.BigInteger import aws.smithy.kotlin.runtime.io.SdkBuffer @@ -17,7 +18,7 @@ import kotlin.time.Duration.Companion.seconds @OptIn(ExperimentalStdlibApi::class) class CborSerializerTest { - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBoolean() { val tests = listOf(true, false, true, false, false) @@ -36,7 +37,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testByte() { val tests = listOf(Byte.MIN_VALUE, -34, 0, 39, Byte.MAX_VALUE) @@ -54,7 +55,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testChar() { val tests = listOf( @@ -79,7 +80,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInt() { val tests = listOf(Int.MIN_VALUE, -34, 0, 39, 402, Int.MAX_VALUE) @@ -97,7 +98,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testLong() { val tests = listOf(Long.MIN_VALUE, -34, 0, 39, 402, Long.MAX_VALUE) @@ -115,7 +116,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testFloat() { val tests = listOf( @@ -147,7 +148,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testDouble() { val tests = listOf( @@ -175,7 +176,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigInteger() { val tests = listOf( @@ -207,7 +208,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testBigDecimal() { val tests = listOf( @@ -247,7 +248,7 @@ class CborSerializerTest { assertEquals("c48221196ab3", serializer.toByteArray().toHexString()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testString() { val tests = listOf( @@ -274,7 +275,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testInstant() { val tests = listOf( @@ -310,7 +311,7 @@ class CborSerializerTest { assertEquals(0, buffer.size) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testNull() { val serializer = CborSerializer() @@ -322,7 +323,7 @@ class CborSerializerTest { assertNull(deserializer.deserializeNull()) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testDocument() { val serializer = CborSerializer() @@ -331,7 +332,7 @@ class CborSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testList() { val serializer = CborSerializer() @@ -368,7 +369,7 @@ class CborSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun testMap() { val serializer = CborSerializer() diff --git a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt index 43e9787975..88a4bf0bdf 100644 --- a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt +++ b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt @@ -401,7 +401,7 @@ class FormUrlSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesMapOfMapOfPrimitive() { val expected = """ @@ -423,7 +423,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesFlattenedMaps() { val input = MapInput( @@ -492,7 +492,7 @@ class FormUrlSerializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesNestedMaps() { val input = NestedStructureInput( @@ -512,7 +512,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesNestedLists() { val input = NestedStructureInput( @@ -530,7 +530,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesRenamedMaps() { // map with xmlName key/value overrides @@ -568,7 +568,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesQueryLiterals() { // test SdkObjectDescriptor with query literals trait @@ -600,7 +600,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itEncodesWhitespace() { val input = MapInput( @@ -625,7 +625,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesEmptyList() { val input = ListInput( @@ -643,7 +643,7 @@ class FormUrlSerializerTest { assertEquals(expected, actual) } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itSerializesEmptyListInMap() { val input = MapInput( diff --git a/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt b/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt index 11afdc5d54..fd12b97a95 100644 --- a/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt +++ b/runtime/serde/serde-json/common/test/aws/smithy/kotlin/runtime/serde/json/JsonDeserializerTest.kt @@ -118,7 +118,7 @@ class JsonDeserializerTest { } } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itHandlesBigDecimal() { val tests = listOf( diff --git a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt index ccc9c5670a..a125fdd630 100644 --- a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt +++ b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.smithy.test +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.HttpBody import aws.smithy.kotlin.runtime.http.HttpMethod import aws.smithy.kotlin.runtime.http.request.HttpRequest @@ -20,7 +21,7 @@ class HttpRequestTestBuilderTest { private val execContext = ExecutionContext() - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsHttpMethod() { val ex = assertFails { @@ -39,7 +40,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected method: `POST`; got: `GET`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsUri() { val ex = assertFails { @@ -60,7 +61,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected path: `/foo`; got: `/bar`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsQueryParameters() { val ex = assertFails { @@ -89,7 +90,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("Query parameter `Hi` does not contain expected value `Hello%20there`. Actual values: [Hello]") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsForbiddenQueryParameters() { val ex = assertFails { @@ -120,7 +121,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("forbidden query parameter found: `foobar`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsRequiredQueryParameters() { val ex = assertFails { @@ -152,7 +153,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("required query parameter not found: `requiredQuery`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsHeaders() { val ex = assertFails { @@ -193,7 +194,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected header `k2` has no actual values") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsListsOfHeaders() { val ex = assertFails { @@ -222,7 +223,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected header name value pair not equal: `k2:v3, v4, v5`; found: `k2:v3, v4") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsForbiddenHeaders() { val ex = assertFails { @@ -266,7 +267,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("forbidden header found: `forbiddenHeader`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsRequiredHeaders() { val ex = assertFails { @@ -311,7 +312,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("expected required header not found: `requiredHeader`") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itFailsWhenBodyAssertFunctionIsMissing() { val ex = assertFails { @@ -331,7 +332,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("body assertion function is required if an expected body is defined") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itCallsBodyAssertFunction() { val ex = assertFails { @@ -352,7 +353,7 @@ class HttpRequestTestBuilderTest { ex.message.shouldContain("actual bytes read does not match expected") } - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itAssertsHostWhenSet() { val ex = assertFails { diff --git a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt index 8ca4277065..8b56c20616 100644 --- a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt +++ b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt @@ -4,6 +4,7 @@ */ package aws.smithy.kotlin.runtime.smithy.test +import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.http.HttpStatusCode import aws.smithy.kotlin.runtime.http.readAll import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder @@ -15,7 +16,7 @@ import kotlin.test.Test class HttpResponseTestBuilderTest { private data class Foo(val bar: Int, val baz: String) - @Ignore // FIXME Re-enable after Kotlin/Native implementation + @IgnoreNative // FIXME Re-enable after Kotlin/Native implementation @Test fun itBuildsResponses() { httpResponseTest { From 33f4414d99285aaea288e1a904b3e7eff67a5692 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 6 Jan 2025 15:43:55 -0500 Subject: [PATCH 14/33] ktlint --- .../runtime/auth/awscredentials/CachedCredentialsProviderTest.kt | 1 - .../aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt | 1 - .../kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt | 1 - .../runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt | 1 - .../aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt | 1 - .../aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt | 1 - .../aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt | 1 - .../runtime/awsprotocol/eventstream/EventStreamSigningTest.kt | 1 - .../kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt | 1 - .../kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt | 1 - .../kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt | 1 - .../kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt | 1 - .../aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt | 1 - .../aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt | 1 - .../smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt | 1 - .../runtime/http/interceptors/Md5ChecksumInterceptorTest.kt | 1 - .../http/interceptors/RequestCompressionInterceptorTest.kt | 1 - .../runtime/http/middleware/DefaultValidateResponseTest.kt | 1 - .../smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt | 1 - .../smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt | 1 - .../smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt | 1 - .../kotlin/runtime/http/operation/SdkOperationExecutionTest.kt | 1 - .../aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt | 1 - .../aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt | 1 - .../cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt | 1 - .../awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt | 1 - .../smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt | 1 - .../aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt | 1 - .../aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt | 1 - .../test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt | 1 - .../common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt | 1 - .../kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt | 1 - .../aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt | 1 - .../smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt | 1 - .../kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt | 1 - .../kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt | 1 - 48 files changed, 48 deletions(-) diff --git a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt index be115c80df..15a5ba1adf 100644 --- a/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt +++ b/runtime/auth/aws-credentials/common/test/aws/smithy/kotlin/runtime/auth/awscredentials/CachedCredentialsProviderTest.kt @@ -11,7 +11,6 @@ import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.ManualClock import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt b/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt index abddf85a7f..3f6e4eb5de 100644 --- a/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt +++ b/runtime/auth/aws-signing-common/common/test/aws/smithy/kotlin/runtime/auth/awssigning/PresignerTest.kt @@ -18,7 +18,6 @@ import aws.smithy.kotlin.runtime.http.request.url import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.operation.ExecutionContext import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt index a15a160891..e5047ee56b 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultCanonicalizerTest.kt @@ -13,7 +13,6 @@ import aws.smithy.kotlin.runtime.net.Host import aws.smithy.kotlin.runtime.net.url.Url import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt index 8cda1feb7a..60264a43ac 100644 --- a/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt +++ b/runtime/auth/aws-signing-default/common/test/aws/smithy/kotlin/runtime/auth/awssigning/DefaultSignatureCalculatorTest.kt @@ -12,7 +12,6 @@ import aws.smithy.kotlin.runtime.text.encoding.decodeHexBytes import aws.smithy.kotlin.runtime.text.encoding.encodeToHex import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt index da1a8848bd..86d5744a62 100644 --- a/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt +++ b/runtime/auth/http-auth-aws/common/test/aws/smithy/kotlin/runtime/http/auth/AwsHttpSignerTestBase.kt @@ -27,7 +27,6 @@ import aws.smithy.kotlin.runtime.operation.ExecutionContext import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.TestResult import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt index a14ced5edf..b4afa25c91 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStreamTest.kt @@ -15,7 +15,6 @@ import kotlinx.coroutines.Job import kotlinx.coroutines.launch import kotlinx.coroutines.test.runTest import kotlinx.coroutines.yield -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt index 4beb32265e..eb4209c74a 100644 --- a/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt +++ b/runtime/crt-util/jvmAndNative/test/aws/smithy/kotlin/runtime/crt/SdkSourceBodyStreamTest.kt @@ -11,7 +11,6 @@ import aws.smithy.kotlin.runtime.io.SdkBuffer import aws.smithy.kotlin.runtime.io.SdkSource import aws.smithy.kotlin.runtime.io.source import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt index 374ce76c4f..f9333af4a9 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/EventStreamSigningTest.kt @@ -20,7 +20,6 @@ import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.toList import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt index a9452d534b..a9214f46e4 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameDecoderTest.kt @@ -10,7 +10,6 @@ import aws.smithy.kotlin.runtime.io.* import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.flow.* import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt index 4a9f6f335e..ae82292eec 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/FrameEncoderTest.kt @@ -12,7 +12,6 @@ import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.toList import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt index 74cbcbae63..8478472b32 100644 --- a/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt +++ b/runtime/protocol/aws-event-stream/common/test/aws/smithy/kotlin/runtime/awsprotocol/eventstream/HeaderValueTest.kt @@ -9,7 +9,6 @@ import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.util.Uuid import io.kotest.matchers.string.shouldContain -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt b/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt index ddf3286f32..41cbabfe8f 100644 --- a/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt +++ b/runtime/protocol/aws-json-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/json/AwsJsonProtocolTest.kt @@ -14,7 +14,6 @@ import aws.smithy.kotlin.runtime.http.response.HttpResponse import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.operation.ExecutionContext import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt index 11d013bc19..7d0b0def83 100644 --- a/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt +++ b/runtime/protocol/http-client-engines/http-client-engine-crt/jvmAndNative/test/aws/smithy/kotlin/runtime/http/engine/crt/AsyncStressTest.kt @@ -22,7 +22,6 @@ import kotlinx.coroutines.async import kotlinx.coroutines.runBlocking import kotlinx.coroutines.withTimeout import kotlinx.coroutines.yield -import kotlin.test.Ignore import kotlin.test.Test import kotlin.time.Duration.Companion.seconds diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt index dd1ca004ce..e6183f8ece 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpCallContextTest.kt @@ -19,7 +19,6 @@ import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.job import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt index f3781f5652..0fbaa6cb04 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/engine/HttpClientEngineTest.kt @@ -19,7 +19,6 @@ import kotlinx.coroutines.* import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.test.runTest import kotlin.test.BeforeTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt index f5687f511e..5fac330b64 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/Md5ChecksumInterceptorTest.kt @@ -16,7 +16,6 @@ import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNull diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt index ef108f6b76..dc847a8839 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/RequestCompressionInterceptorTest.kt @@ -18,7 +18,6 @@ import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import aws.smithy.kotlin.runtime.io.source import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt index 8183b22d92..d8667ae65f 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/DefaultValidateResponseTest.kt @@ -17,7 +17,6 @@ import aws.smithy.kotlin.runtime.http.response.HttpResponse import aws.smithy.kotlin.runtime.httptest.TestEngine import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt index 6af8877c15..7d2632749d 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/MutateHeadersTest.kt @@ -15,7 +15,6 @@ import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.http.request.headers import aws.smithy.kotlin.runtime.httptest.TestEngine import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt index dedbf93309..b2bb1bc816 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/middleware/RetryMiddlewareTest.kt @@ -18,7 +18,6 @@ import aws.smithy.kotlin.runtime.retries.policy.RetryDirective import aws.smithy.kotlin.runtime.retries.policy.RetryErrorType import aws.smithy.kotlin.runtime.retries.policy.RetryPolicy import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt index 9698da7d26..59bbc66974 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkHttpOperationTest.kt @@ -13,7 +13,6 @@ import aws.smithy.kotlin.runtime.telemetry.logging.loggingContext import aws.smithy.kotlin.runtime.telemetry.trace.traceSpan import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt index ddc11c78fe..33c394f8a5 100644 --- a/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt +++ b/runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/operation/SdkOperationExecutionTest.kt @@ -22,7 +22,6 @@ import aws.smithy.kotlin.runtime.identity.asIdentityProviderConfig import aws.smithy.kotlin.runtime.operation.ExecutionContext import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt index d037a92955..c1cfa8ec28 100644 --- a/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt +++ b/runtime/protocol/http-test/common/test/aws/smithy/kotlin/runtime/httptest/TestConnectionTest.kt @@ -11,7 +11,6 @@ import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.net.Host import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt index b7088a07cd..04cea1b3e6 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HeadersTest.kt @@ -5,7 +5,6 @@ package aws.smithy.kotlin.runtime.http import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt index 5dc79c7b16..a76f8ddc9e 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/HttpBodyTest.kt @@ -12,7 +12,6 @@ import aws.smithy.kotlin.runtime.io.SdkByteChannel import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import aws.smithy.kotlin.runtime.io.writeAll import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt index 86b880be42..32c420fef3 100644 --- a/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt +++ b/runtime/protocol/http/common/test/aws/smithy/kotlin/runtime/http/response/HttpResponseTest.kt @@ -13,7 +13,6 @@ import aws.smithy.kotlin.runtime.http.HttpStatusCode import aws.smithy.kotlin.runtime.http.toHttpBody import aws.smithy.kotlin.runtime.io.SdkByteReadChannel import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotSame diff --git a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt index b9ade1b3da..02a330f5f3 100644 --- a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt +++ b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/RpcV2CborSmithyProtocolResponseHeaderInterceptorTest.kt @@ -16,7 +16,6 @@ import aws.smithy.kotlin.runtime.io.source import aws.smithy.kotlin.runtime.operation.ExecutionContext import aws.smithy.kotlin.runtime.time.Instant import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertFailsWith diff --git a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt index 1fb83195d6..6357e782f0 100644 --- a/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt +++ b/runtime/protocol/smithy-rpcv2-protocols/common/test/aws/smithy/kotlin/runtime/awsprotocol/rpcv2/cbor/Rpcv2CborErrorDeserializerTest.kt @@ -11,7 +11,6 @@ import aws.smithy.kotlin.runtime.serde.cbor.CborSerialName import aws.smithy.kotlin.runtime.serde.cbor.CborSerializer import aws.smithy.kotlin.runtime.serde.serializeStruct import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt index 9f7a34b3b4..0769c3049b 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/collections/ReadThroughCacheTest.kt @@ -8,7 +8,6 @@ import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.time.ManualClock import aws.smithy.kotlin.runtime.util.ExpiringValue import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.time.Duration.Companion.minutes diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt index 5d4139b097..d5d1fbbcca 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigDecimalTest.kt @@ -5,7 +5,6 @@ package aws.smithy.kotlin.runtime.content import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt index 7b6d58166a..47e3f61707 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/content/BigIntegerTest.kt @@ -6,7 +6,6 @@ package aws.smithy.kotlin.runtime.content import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.text.encoding.decodeHexBytes -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt index c81a2502c2..de56a3b713 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ByteArraySourceTest.kt @@ -6,7 +6,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt index b5b506e6a3..ad1c9bf5b6 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipByteReadChannelTest.kt @@ -7,7 +7,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.crc32 import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt index f3997a5a1e..f36b671894 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/GzipSdkSourceTest.kt @@ -7,7 +7,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.crc32 import kotlinx.coroutines.test.runTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt index ba27fe54b0..1ac4c8794c 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingByteReadChannelTest.kt @@ -9,7 +9,6 @@ import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.toHashFunction import kotlinx.coroutines.test.runTest import kotlin.random.Random -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt index 111278f397..8d0121c375 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSinkTest.kt @@ -7,7 +7,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.toHashFunction -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt index fff0974116..70cfaef8e2 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/HashingSourceTest.kt @@ -7,7 +7,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.hashing.* -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt index 08da05f817..19a845039e 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/ObserversTest.kt @@ -8,7 +8,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.internal.SdkSinkObserver import aws.smithy.kotlin.runtime.io.internal.SdkSourceObserver -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt index 15166d5d29..3469c996fe 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkBufferedSinkTest.kt @@ -6,7 +6,6 @@ package aws.smithy.kotlin.runtime.io import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertContentEquals import kotlin.test.assertEquals diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt index 3070a3d472..1ad0543151 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/io/SdkByteChannelSuspendTest.kt @@ -11,7 +11,6 @@ import io.kotest.matchers.string.shouldContain import kotlinx.coroutines.* import kotlinx.coroutines.test.runTest import kotlin.test.AfterTest -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt index 52db0eee96..64d6d86286 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/InstantTest.kt @@ -5,7 +5,6 @@ package aws.smithy.kotlin.runtime.time import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt index 75c358930d..d9430b9284 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ManualClockTest.kt @@ -6,7 +6,6 @@ package aws.smithy.kotlin.runtime.time import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.time.Duration.Companion.milliseconds diff --git a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt index cf118b0f6a..736ae2a60a 100644 --- a/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt +++ b/runtime/runtime-core/common/test/aws/smithy/kotlin/runtime/time/ParseEpochTest.kt @@ -5,7 +5,6 @@ package aws.smithy.kotlin.runtime.time import aws.smithy.kotlin.runtime.IgnoreNative -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt index 914374e8d4..1ace81d9ef 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerErrorTest.kt @@ -11,7 +11,6 @@ import aws.smithy.kotlin.runtime.serde.SerialKind import aws.smithy.kotlin.runtime.serde.cbor.encoding.Tag import aws.smithy.kotlin.runtime.serde.deserializeList import aws.smithy.kotlin.runtime.serde.deserializeMap -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertFails diff --git a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt index 8c888272fd..93a5b10806 100644 --- a/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt +++ b/runtime/serde/serde-cbor/common/test/aws/smithy/kotlin/runtime/serde/cbor/CborDeserializerTest.kt @@ -6,7 +6,6 @@ package aws.smithy.kotlin.runtime.serde.cbor import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.io.SdkBuffer -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails diff --git a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt index 88a4bf0bdf..9874dbafa4 100644 --- a/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt +++ b/runtime/serde/serde-form-url/common/test/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializerTest.kt @@ -9,7 +9,6 @@ import aws.smithy.kotlin.runtime.IgnoreNative import aws.smithy.kotlin.runtime.serde.* import aws.smithy.kotlin.runtime.time.Instant import aws.smithy.kotlin.runtime.time.TimestampFormat -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals diff --git a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt index a125fdd630..6798ed3d0b 100644 --- a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt +++ b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpRequestTestBuilderTest.kt @@ -13,7 +13,6 @@ import aws.smithy.kotlin.runtime.http.request.url import aws.smithy.kotlin.runtime.net.Host import aws.smithy.kotlin.runtime.operation.ExecutionContext import io.kotest.matchers.string.shouldContain -import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertFails diff --git a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt index 8b56c20616..8571acdb17 100644 --- a/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt +++ b/runtime/smithy-test/common/test/aws/smithy/kotlin/runtime/smithy/test/HttpResponseTestBuilderTest.kt @@ -10,7 +10,6 @@ import aws.smithy.kotlin.runtime.http.readAll import aws.smithy.kotlin.runtime.http.request.HttpRequestBuilder import aws.smithy.kotlin.runtime.operation.ExecutionContext import io.kotest.matchers.string.shouldContain -import kotlin.test.Ignore import kotlin.test.Test class HttpResponseTestBuilderTest { From f370fada2619cb3923950da9a1c3d13a99592a32 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 6 Jan 2025 19:50:53 -0500 Subject: [PATCH 15/33] CI From 91e22abacf7c43fefad12e6563080c32106fd9e3 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 09:40:08 -0500 Subject: [PATCH 16/33] CI From ef0fd8daab562bab1a95385a2e1c093d55b52c7d Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:00:09 -0500 Subject: [PATCH 17/33] CI From 1af9a30ac416708934f01d22361ef3a07fc09efa Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:18:25 -0500 Subject: [PATCH 18/33] rename file to match main branch --- .github/workflows/{ci.yml => continuous-integration.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => continuous-integration.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/continuous-integration.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/continuous-integration.yml From b32b2f355ca11e85dc4607fd2639d57bf050edf5 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:22:57 -0500 Subject: [PATCH 19/33] Add all-platforms checks back --- .github/workflows/continuous-integration.yml | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a3cdbee204..7abee8f53d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -135,6 +135,35 @@ jobs: name: test-reports-windows path: '**/build/reports' + all-platforms: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Configure JDK + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: 17 + cache: 'gradle' + - name: Test + shell: bash + run: | + # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532 + # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties + ./gradlew apiCheck + ./gradlew test jvmTest + - name: Save Test Reports + if: failure() + uses: actions/upload-artifact@v3 + with: + name: test-reports-${{ matrix.os }} + path: '**/build/reports' + protocol-tests: runs-on: ubuntu-latest steps: From b2d85016d0722de5ba0586e5103c8a0aee5cadea Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:27:33 -0500 Subject: [PATCH 20/33] Remove checks that are stalled --- .github/workflows/api-compat-verification.yml | 32 ----- .github/workflows/artifact-size-metrics.yml | 118 ------------------ .github/workflows/changelog-verification.yml | 24 ---- 3 files changed, 174 deletions(-) delete mode 100644 .github/workflows/api-compat-verification.yml delete mode 100644 .github/workflows/artifact-size-metrics.yml delete mode 100644 .github/workflows/changelog-verification.yml diff --git a/.github/workflows/api-compat-verification.yml b/.github/workflows/api-compat-verification.yml deleted file mode 100644 index 26c7ef3901..0000000000 --- a/.github/workflows/api-compat-verification.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: API compatibility verification - -on: - pull_request: - types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ main ] - -jobs: - api-compat-verification: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Check for API compatibility - if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-api-break') }} - run: | - git fetch origin ${{ github.base_ref }} --depth 1 && \ - git diff remotes/origin/${{ github.base_ref }} --numstat "*.api" | awk ' - BEGIN { s = 0 } - - # git diff numstat shows lines deleted in field 2, hence sum up field 2 across all items - { s += $2 } - - # exit with the number of lines deleted as the result code so that `if failure()` works below - END { exit s } - ' - - name: Error message - if: ${{ failure() }} - run: | - echo "::error ::This change modifies the public API in a way that may be backwards-incompatible. Carefully review this pull request and either:" - echo "::error ::* Revert the changes which caused the API incompatibility –or–" - echo "::error ::* Add the 'acknowledge-api-break' label to this PR (in rare cases warranting an API breakage)" - exit 1 diff --git a/.github/workflows/artifact-size-metrics.yml b/.github/workflows/artifact-size-metrics.yml deleted file mode 100644 index bd1c521e16..0000000000 --- a/.github/workflows/artifact-size-metrics.yml +++ /dev/null @@ -1,118 +0,0 @@ -name: Artifact Size Metrics -on: - pull_request: - types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ main ] - release: - types: [published] - -permissions: - id-token: write - contents: read - pull-requests: write - -jobs: - release-metrics: - if: github.event_name == 'release' - runs-on: ubuntu-latest - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Configure JDK - uses: actions/setup-java@v3 - with: - distribution: 'corretto' - java-version: 17 - cache: 'gradle' - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} - aws-region: us-west-2 - - name: Generate Artifact Size Metrics - run: ./gradlew artifactSizeMetrics - - name: Save Artifact Size Metrics - run: ./gradlew saveArtifactSizeMetrics -Prelease=${{ github.event.release.tag_name }} - - name: Put Artifact Size Metrics in CloudWatch - run: ./gradlew putArtifactSizeMetricsInCloudWatch -Prelease=${{ github.event.release.tag_name }} - size-check: - if: github.event_name == 'pull_request' - runs-on: ubuntu-latest - steps: - - name: Checkout Sources - uses: actions/checkout@v4 - - name: Configure JDK - uses: actions/setup-java@v3 - with: - distribution: 'corretto' - java-version: 17 - cache: 'gradle' - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} - aws-region: us-west-2 - - name: Generate Artifact Size Metrics - run: ./gradlew artifactSizeMetrics - - name: Analyze Artifact Size Metrics - run: ./gradlew analyzeArtifactSizeMetrics - - name: Show Results - uses: actions/github-script@v7 - with: - script: | - const getComments = - `query { - repository(owner:"${context.repo.owner}", name:"${context.repo.repo}"){ - pullRequest(number: ${context.issue.number}) { - id - comments(last:100) { - nodes { - id - body - author { - login - } - isMinimized - } - } - } - } - }` - - const response = await github.graphql(getComments) - const comments = response.repository.pullRequest.comments.nodes - - const mutations = comments - .filter(comment => comment.author.login == 'github-actions' && !comment.isMinimized && comment.body.startsWith('Affected Artifacts')) - .map(comment => - github.graphql( - `mutation { - minimizeComment(input:{subjectId:"${comment.id}", classifier:OUTDATED}){ - clientMutationId - } - }` - ) - ) - await Promise.all(mutations) - - const fs = require('node:fs') - const comment = fs.readFileSync('build/reports/metrics/artifact-analysis.md', 'utf8') - - const writeComment = - `mutation { - addComment(input:{body:"""${comment}""", subjectId:"${response.repository.pullRequest.id}"}){ - clientMutationId - } - }` - - await github.graphql(writeComment) - - - name: Evaluate - if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-artifact-size-increase') }} - run: | - cd build/reports/metrics - cat has-significant-change.txt | grep false || { - echo An artifact increased in size by more than allowed or a new artifact was created. - echo If this is expected please add the 'acknowledge-artifact-size-increase' label to this pull request. - exit 1 - } diff --git a/.github/workflows/changelog-verification.yml b/.github/workflows/changelog-verification.yml deleted file mode 100644 index 547b155abf..0000000000 --- a/.github/workflows/changelog-verification.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Changelog verification - -on: - pull_request: - types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ main ] - -jobs: - changelog-verification: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Check for changelog entry - if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }} - run: | - git fetch origin ${{ github.base_ref }} --depth 1 && \ - git diff remotes/origin/${{ github.base_ref }} --name-only | grep -P "\.changes/[0-9a-f-]+\.json" - - name: Error message - if: ${{ failure() }} - run: | - echo "::error ::No new/updated changelog entry found in /.changes directory. Please either:" - echo "::error ::* Add a changelog entry (see CONTRIBUTING.md for instructions) –or–" - echo "::error ::* Add the 'no-changelog' label to this PR (in rare cases not warranting a changelog entry)" - exit 1 From 1e9f6a9d7a5b08faa1eab36b15cce4a7cca24a96 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:29:07 -0500 Subject: [PATCH 21/33] Revert "Remove checks that are stalled" This reverts commit b2d85016d0722de5ba0586e5103c8a0aee5cadea. --- .github/workflows/api-compat-verification.yml | 32 +++++ .github/workflows/artifact-size-metrics.yml | 118 ++++++++++++++++++ .github/workflows/changelog-verification.yml | 24 ++++ 3 files changed, 174 insertions(+) create mode 100644 .github/workflows/api-compat-verification.yml create mode 100644 .github/workflows/artifact-size-metrics.yml create mode 100644 .github/workflows/changelog-verification.yml diff --git a/.github/workflows/api-compat-verification.yml b/.github/workflows/api-compat-verification.yml new file mode 100644 index 0000000000..26c7ef3901 --- /dev/null +++ b/.github/workflows/api-compat-verification.yml @@ -0,0 +1,32 @@ +name: API compatibility verification + +on: + pull_request: + types: [ opened, synchronize, reopened, labeled, unlabeled ] + branches: [ main ] + +jobs: + api-compat-verification: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check for API compatibility + if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-api-break') }} + run: | + git fetch origin ${{ github.base_ref }} --depth 1 && \ + git diff remotes/origin/${{ github.base_ref }} --numstat "*.api" | awk ' + BEGIN { s = 0 } + + # git diff numstat shows lines deleted in field 2, hence sum up field 2 across all items + { s += $2 } + + # exit with the number of lines deleted as the result code so that `if failure()` works below + END { exit s } + ' + - name: Error message + if: ${{ failure() }} + run: | + echo "::error ::This change modifies the public API in a way that may be backwards-incompatible. Carefully review this pull request and either:" + echo "::error ::* Revert the changes which caused the API incompatibility –or–" + echo "::error ::* Add the 'acknowledge-api-break' label to this PR (in rare cases warranting an API breakage)" + exit 1 diff --git a/.github/workflows/artifact-size-metrics.yml b/.github/workflows/artifact-size-metrics.yml new file mode 100644 index 0000000000..bd1c521e16 --- /dev/null +++ b/.github/workflows/artifact-size-metrics.yml @@ -0,0 +1,118 @@ +name: Artifact Size Metrics +on: + pull_request: + types: [ opened, synchronize, reopened, labeled, unlabeled ] + branches: [ main ] + release: + types: [published] + +permissions: + id-token: write + contents: read + pull-requests: write + +jobs: + release-metrics: + if: github.event_name == 'release' + runs-on: ubuntu-latest + steps: + - name: Checkout Sources + uses: actions/checkout@v4 + - name: Configure JDK + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: 17 + cache: 'gradle' + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} + aws-region: us-west-2 + - name: Generate Artifact Size Metrics + run: ./gradlew artifactSizeMetrics + - name: Save Artifact Size Metrics + run: ./gradlew saveArtifactSizeMetrics -Prelease=${{ github.event.release.tag_name }} + - name: Put Artifact Size Metrics in CloudWatch + run: ./gradlew putArtifactSizeMetricsInCloudWatch -Prelease=${{ github.event.release.tag_name }} + size-check: + if: github.event_name == 'pull_request' + runs-on: ubuntu-latest + steps: + - name: Checkout Sources + uses: actions/checkout@v4 + - name: Configure JDK + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: 17 + cache: 'gradle' + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} + aws-region: us-west-2 + - name: Generate Artifact Size Metrics + run: ./gradlew artifactSizeMetrics + - name: Analyze Artifact Size Metrics + run: ./gradlew analyzeArtifactSizeMetrics + - name: Show Results + uses: actions/github-script@v7 + with: + script: | + const getComments = + `query { + repository(owner:"${context.repo.owner}", name:"${context.repo.repo}"){ + pullRequest(number: ${context.issue.number}) { + id + comments(last:100) { + nodes { + id + body + author { + login + } + isMinimized + } + } + } + } + }` + + const response = await github.graphql(getComments) + const comments = response.repository.pullRequest.comments.nodes + + const mutations = comments + .filter(comment => comment.author.login == 'github-actions' && !comment.isMinimized && comment.body.startsWith('Affected Artifacts')) + .map(comment => + github.graphql( + `mutation { + minimizeComment(input:{subjectId:"${comment.id}", classifier:OUTDATED}){ + clientMutationId + } + }` + ) + ) + await Promise.all(mutations) + + const fs = require('node:fs') + const comment = fs.readFileSync('build/reports/metrics/artifact-analysis.md', 'utf8') + + const writeComment = + `mutation { + addComment(input:{body:"""${comment}""", subjectId:"${response.repository.pullRequest.id}"}){ + clientMutationId + } + }` + + await github.graphql(writeComment) + + - name: Evaluate + if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-artifact-size-increase') }} + run: | + cd build/reports/metrics + cat has-significant-change.txt | grep false || { + echo An artifact increased in size by more than allowed or a new artifact was created. + echo If this is expected please add the 'acknowledge-artifact-size-increase' label to this pull request. + exit 1 + } diff --git a/.github/workflows/changelog-verification.yml b/.github/workflows/changelog-verification.yml new file mode 100644 index 0000000000..547b155abf --- /dev/null +++ b/.github/workflows/changelog-verification.yml @@ -0,0 +1,24 @@ +name: Changelog verification + +on: + pull_request: + types: [ opened, synchronize, reopened, labeled, unlabeled ] + branches: [ main ] + +jobs: + changelog-verification: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Check for changelog entry + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }} + run: | + git fetch origin ${{ github.base_ref }} --depth 1 && \ + git diff remotes/origin/${{ github.base_ref }} --name-only | grep -P "\.changes/[0-9a-f-]+\.json" + - name: Error message + if: ${{ failure() }} + run: | + echo "::error ::No new/updated changelog entry found in /.changes directory. Please either:" + echo "::error ::* Add a changelog entry (see CONTRIBUTING.md for instructions) –or–" + echo "::error ::* Add the 'no-changelog' label to this PR (in rare cases not warranting a changelog entry)" + exit 1 From 5571b1b570103e8b7223a80dd29fcd3da918fe06 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:49:56 -0500 Subject: [PATCH 22/33] Disable aws.kotlin.native in all-platforms --- .github/workflows/continuous-integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7abee8f53d..9ee7845202 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -155,8 +155,8 @@ jobs: run: | # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532 # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties - ./gradlew apiCheck - ./gradlew test jvmTest + ./gradlew -Paws.kotlin.native apiCheck + ./gradlew -Paws.kotlin.native=false test jvmTest - name: Save Test Reports if: failure() uses: actions/upload-artifact@v3 From a9d4a9a5a3f1c5a3bfc6e09c8faae2af59cb83cc Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 12:50:53 -0500 Subject: [PATCH 23/33] Add `=false` --- .github/workflows/continuous-integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 9ee7845202..1f81d7a3bc 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -155,7 +155,7 @@ jobs: run: | # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532 # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties - ./gradlew -Paws.kotlin.native apiCheck + ./gradlew -Paws.kotlin.native=false apiCheck ./gradlew -Paws.kotlin.native=false test jvmTest - name: Save Test Reports if: failure() From 4ecac4a59b1e7185459b5353aae7686318b6a31e Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 13:15:45 -0500 Subject: [PATCH 24/33] CI From 4854db607dd2e2f514eeb66ef1d10f860d3949bc Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 13:25:02 -0500 Subject: [PATCH 25/33] Remove all-platforms --- .github/workflows/continuous-integration.yml | 29 -------------------- 1 file changed, 29 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1f81d7a3bc..a3cdbee204 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -135,35 +135,6 @@ jobs: name: test-reports-windows path: '**/build/reports' - all-platforms: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ ubuntu-latest, macos-latest, windows-latest ] - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Configure JDK - uses: actions/setup-java@v3 - with: - distribution: 'corretto' - java-version: 17 - cache: 'gradle' - - name: Test - shell: bash - run: | - # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532 - # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties - ./gradlew -Paws.kotlin.native=false apiCheck - ./gradlew -Paws.kotlin.native=false test jvmTest - - name: Save Test Reports - if: failure() - uses: actions/upload-artifact@v3 - with: - name: test-reports-${{ matrix.os }} - path: '**/build/reports' - protocol-tests: runs-on: ubuntu-latest steps: From 7b168ed58e8465f5276b247737fb39662711f9ac Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 13:25:44 -0500 Subject: [PATCH 26/33] Add all-platforms --- .github/workflows/continuous-integration.yml | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a3cdbee204..1f81d7a3bc 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -135,6 +135,35 @@ jobs: name: test-reports-windows path: '**/build/reports' + all-platforms: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Configure JDK + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: 17 + cache: 'gradle' + - name: Test + shell: bash + run: | + # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532 + # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties + ./gradlew -Paws.kotlin.native=false apiCheck + ./gradlew -Paws.kotlin.native=false test jvmTest + - name: Save Test Reports + if: failure() + uses: actions/upload-artifact@v3 + with: + name: test-reports-${{ matrix.os }} + path: '**/build/reports' + protocol-tests: runs-on: ubuntu-latest steps: From 8f70b68e6a319ab2dcafdec79ad5579f53720867 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 13:27:01 -0500 Subject: [PATCH 27/33] CI From 70672f2e010338ddffd307414a026b9e812efb76 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 13:42:41 -0500 Subject: [PATCH 28/33] Run a few more checks on '*-main' branches (expanded from just 'main') --- .github/workflows/api-compat-verification.yml | 2 +- .github/workflows/artifact-size-metrics.yml | 2 +- .github/workflows/changelog-verification.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-compat-verification.yml b/.github/workflows/api-compat-verification.yml index 26c7ef3901..8f0826b195 100644 --- a/.github/workflows/api-compat-verification.yml +++ b/.github/workflows/api-compat-verification.yml @@ -3,7 +3,7 @@ name: API compatibility verification on: pull_request: types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ main ] + branches: [ '*-main' ] jobs: api-compat-verification: diff --git a/.github/workflows/artifact-size-metrics.yml b/.github/workflows/artifact-size-metrics.yml index bd1c521e16..394a6cdb77 100644 --- a/.github/workflows/artifact-size-metrics.yml +++ b/.github/workflows/artifact-size-metrics.yml @@ -2,7 +2,7 @@ name: Artifact Size Metrics on: pull_request: types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ main ] + branches: [ '*-main' ] release: types: [published] diff --git a/.github/workflows/changelog-verification.yml b/.github/workflows/changelog-verification.yml index 547b155abf..dcc0eabcf6 100644 --- a/.github/workflows/changelog-verification.yml +++ b/.github/workflows/changelog-verification.yml @@ -3,7 +3,7 @@ name: Changelog verification on: pull_request: types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ main ] + branches: [ '*-main' ] jobs: changelog-verification: From adeb4bb9345a50cd7ac718b86225d276695970ab Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 13:46:49 -0500 Subject: [PATCH 29/33] Fix artifact-size-metrics running Native build --- .github/workflows/artifact-size-metrics.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artifact-size-metrics.yml b/.github/workflows/artifact-size-metrics.yml index 394a6cdb77..d81e376d7a 100644 --- a/.github/workflows/artifact-size-metrics.yml +++ b/.github/workflows/artifact-size-metrics.yml @@ -53,9 +53,9 @@ jobs: role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} aws-region: us-west-2 - name: Generate Artifact Size Metrics - run: ./gradlew artifactSizeMetrics + run: ./gradlew -Paws.kotlin.native=false artifactSizeMetrics - name: Analyze Artifact Size Metrics - run: ./gradlew analyzeArtifactSizeMetrics + run: ./gradlew -Paws.kotlin.native=false analyzeArtifactSizeMetrics - name: Show Results uses: actions/github-script@v7 with: From 74da55c838525b2744dd20635d8f96264d1d5e9d Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 14:55:13 -0500 Subject: [PATCH 30/33] Run on main too --- .github/workflows/api-compat-verification.yml | 2 +- .github/workflows/artifact-size-metrics.yml | 2 +- .github/workflows/changelog-verification.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-compat-verification.yml b/.github/workflows/api-compat-verification.yml index 8f0826b195..8094a95c08 100644 --- a/.github/workflows/api-compat-verification.yml +++ b/.github/workflows/api-compat-verification.yml @@ -3,7 +3,7 @@ name: API compatibility verification on: pull_request: types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ '*-main' ] + branches: [ main, '*-main' ] jobs: api-compat-verification: diff --git a/.github/workflows/artifact-size-metrics.yml b/.github/workflows/artifact-size-metrics.yml index d81e376d7a..676084e08d 100644 --- a/.github/workflows/artifact-size-metrics.yml +++ b/.github/workflows/artifact-size-metrics.yml @@ -2,7 +2,7 @@ name: Artifact Size Metrics on: pull_request: types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ '*-main' ] + branches: [ main, '*-main' ] release: types: [published] diff --git a/.github/workflows/changelog-verification.yml b/.github/workflows/changelog-verification.yml index dcc0eabcf6..c9ad6da818 100644 --- a/.github/workflows/changelog-verification.yml +++ b/.github/workflows/changelog-verification.yml @@ -3,7 +3,7 @@ name: Changelog verification on: pull_request: types: [ opened, synchronize, reopened, labeled, unlabeled ] - branches: [ '*-main' ] + branches: [ main, '*-main' ] jobs: changelog-verification: From 310051973230bbd67c0f30a81ac9d72e17e8a0a2 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 15:32:19 -0500 Subject: [PATCH 31/33] Setup build --- .github/workflows/continuous-integration.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 1f81d7a3bc..2e357c9d60 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -144,12 +144,17 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 + + - name: Setup build + uses: ./smithy-kotlin/.github/actions/setup-build + - name: Configure JDK uses: actions/setup-java@v3 with: distribution: 'corretto' java-version: 17 cache: 'gradle' + - name: Test shell: bash run: | @@ -157,6 +162,7 @@ jobs: # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties ./gradlew -Paws.kotlin.native=false apiCheck ./gradlew -Paws.kotlin.native=false test jvmTest + - name: Save Test Reports if: failure() uses: actions/upload-artifact@v3 From 8d43b229f80c1deb47215faea90c2b2ac02d1e35 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 15:40:14 -0500 Subject: [PATCH 32/33] Checkout with path` --- .github/workflows/continuous-integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2e357c9d60..4c5e76d0e2 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -144,6 +144,8 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 + with: + path: 'smithy-kotlin' - name: Setup build uses: ./smithy-kotlin/.github/actions/setup-build From 1bdf14463b7d83ab690bacfef447c943dfa96c12 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Tue, 7 Jan 2025 15:50:31 -0500 Subject: [PATCH 33/33] Add working-directory --- .github/workflows/continuous-integration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4c5e76d0e2..ccbca2a8e0 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -158,6 +158,7 @@ jobs: cache: 'gradle' - name: Test + working-directory: ./smithy-kotlin shell: bash run: | # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532