From 19b6be730f08c4dc772fa03a0eea7c0c5942b2bb Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Mon, 16 Oct 2023 14:18:39 -0400 Subject: [PATCH] Make CRT signer tests JVM-only --- runtime/auth/http-auth-aws/build.gradle.kts | 8 ++++++-- .../http-auth-aws/jvm/test/AwsHttpSignerTestBaseJvm.kt | 9 +++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 runtime/auth/http-auth-aws/jvm/test/AwsHttpSignerTestBaseJvm.kt diff --git a/runtime/auth/http-auth-aws/build.gradle.kts b/runtime/auth/http-auth-aws/build.gradle.kts index aafbe4ab5..dfcc0c7da 100644 --- a/runtime/auth/http-auth-aws/build.gradle.kts +++ b/runtime/auth/http-auth-aws/build.gradle.kts @@ -22,12 +22,16 @@ kotlin { implementation(project(":runtime:protocol:http-client")) implementation(project(":runtime:protocol:http-test")) implementation(project(":runtime:auth:aws-signing-default")) - // FIXME - re-enable - // implementation(project(":runtime:auth:aws-signing-crt")) implementation(libs.kotlinx.coroutines.test) } } + jvmTest { + dependencies { + implementation(project(":runtime:auth:aws-signing-crt")) + } + } + all { languageSettings.optIn("aws.smithy.kotlin.runtime.InternalApi") } diff --git a/runtime/auth/http-auth-aws/jvm/test/AwsHttpSignerTestBaseJvm.kt b/runtime/auth/http-auth-aws/jvm/test/AwsHttpSignerTestBaseJvm.kt new file mode 100644 index 000000000..d95813abc --- /dev/null +++ b/runtime/auth/http-auth-aws/jvm/test/AwsHttpSignerTestBaseJvm.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.http.auth + +import aws.smithy.kotlin.runtime.auth.awssigning.crt.CrtAwsSigner + +class CrtAwsHttpSignerTest : AwsHttpSignerTestBase(CrtAwsSigner)