Skip to content

Commit c4653ff

Browse files
committed
Add zero-arg constructor, apply @IgnoreNative everywhere!
1 parent adb9e36 commit c4653ff

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

aws-crt-kotlin/common/test/aws/sdk/kotlin/crt/auth/credentials/CredentialsProviderTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ import kotlin.test.assertEquals
1717
private val EXPECTED_CREDENTIALS = Credentials("access_key_id", "secret_access_key", "session_token")
1818

1919
class CredentialsProviderTest : CrtTest() {
20-
@Ignore // FIXME Enable when Kotlin/Native implementation is complete
20+
@IgnoreNative // FIXME Enable when Kotlin/Native implementation is complete
2121
@Test
2222
fun testStaticProvider() = runTest {
2323
val provider = StaticCredentialsProvider.fromCredentials(EXPECTED_CREDENTIALS)
2424
val actual = provider.getCredentials()
2525
assertEquals(EXPECTED_CREDENTIALS, actual)
2626
}
2727

28-
@Ignore // FIXME Enable when Kotlin/Native implementation is complete
28+
@IgnoreNative // FIXME Enable when Kotlin/Native implementation is complete
2929
@Test
3030
fun testCreateDestroyDefaultChain() {
3131
val elg = EventLoopGroup(1)
@@ -42,7 +42,7 @@ class CredentialsProviderTest : CrtTest() {
4242
}
4343
}
4444

45-
@Ignore // FIXME Enable when Kotlin/Native implementation is complete
45+
@IgnoreNative // FIXME Enable when Kotlin/Native implementation is complete
4646
@Test
4747
fun testCacheStatic() = runTest {
4848
val provider = CachedCredentialsProvider.build {

aws-crt-kotlin/common/test/aws/sdk/kotlin/crt/io/UriTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class UriTest : CrtTest() {
182182
assertEquals(expected, uri.toString())
183183
}
184184

185-
@Ignore // FIXME Enable when Kotlin/Native implementation is complete
185+
@IgnoreNative // FIXME Enable when Kotlin/Native implementation is complete
186186
@Test
187187
fun itParses() {
188188
val uri = "https://test.aws.com:8000/kotlin?foo=baz"

aws-crt-kotlin/jvm/test/aws/sdk/kotlin/crt/http/HttpRequestResponseTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class HttpRequestResponseTest : HttpClientTest() {
6565
}
6666
}
6767

68-
@Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
68+
@IgnoreNative // FIXME This test is broken since switching runSuspendingTest to runTest
6969
@Test
7070
fun testHttpGet() = runTest {
7171
testSimpleRequest("GET", "/get", 200)
@@ -74,7 +74,7 @@ class HttpRequestResponseTest : HttpClientTest() {
7474
testSimpleRequest("GET", "/delete", 405)
7575
}
7676

77-
@Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
77+
@IgnoreNative // FIXME This test is broken since switching runSuspendingTest to runTest
7878
@Test
7979
fun testHttpPost() = runTest {
8080
testSimpleRequest("POST", "/get", 405)
@@ -83,7 +83,7 @@ class HttpRequestResponseTest : HttpClientTest() {
8383
testSimpleRequest("POST", "/delete", 405)
8484
}
8585

86-
@Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
86+
@IgnoreNative // FIXME This test is broken since switching runSuspendingTest to runTest
8787
@Test
8888
fun testHttpPut() = runTest {
8989
testSimpleRequest("PUT", "/get", 405)
@@ -92,7 +92,7 @@ class HttpRequestResponseTest : HttpClientTest() {
9292
testSimpleRequest("PUT", "/delete", 405)
9393
}
9494

95-
@Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
95+
@IgnoreNative // FIXME This test is broken since switching runSuspendingTest to runTest
9696
@Test
9797
fun testHttpDelete() = runTest {
9898
testSimpleRequest("DELETE", "/get", 405)
@@ -101,7 +101,7 @@ class HttpRequestResponseTest : HttpClientTest() {
101101
testSimpleRequest("DELETE", "/delete", 200)
102102
}
103103

104-
@Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
104+
@IgnoreNative // FIXME This test is broken since switching runSuspendingTest to runTest
105105
@Test
106106
fun testHttpDownload() = runTest {
107107
val response = roundTrip(url = "https://aws-crt-test-stuff.s3.amazonaws.com/http_test_doc.txt", verb = "GET")
@@ -111,7 +111,7 @@ class HttpRequestResponseTest : HttpClientTest() {
111111
assertEquals(TEST_DOC_SHA256, Digest.sha256(response.body).encodeToHex())
112112
}
113113

114-
@Ignore // FIXME This test is broken since switching runSuspendingTest to runTest
114+
@IgnoreNative // FIXME This test is broken since switching runSuspendingTest to runTest
115115
@Test
116116
fun testHttpUpload() = runTest {
117117
val bodyToSend = TEST_DOC_LINE

0 commit comments

Comments
 (0)