Skip to content

Commit 4d29f8b

Browse files
committed
lint
1 parent 3fd227d commit 4d29f8b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/EnvironmentBearerTokenCustomization.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class EnvironmentBearerTokenCustomization : KotlinIntegration {
5656
writer,
5757
ctx,
5858
serviceShape,
59-
serviceName
59+
serviceName,
6060
)
6161
}
6262
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import kotlin.test.Test
99
import kotlin.test.assertFalse
1010
import kotlin.test.assertTrue
1111

12-
class EnvironmentTokenCustomizationTest {
12+
class EnvironmentBearerTokenCustomizationTest {
1313
private val bedrockModel = """
1414
namespace com.test
1515
use aws.auth#sigv4
@@ -65,31 +65,31 @@ class EnvironmentTokenCustomizationTest {
6565
@Test
6666
fun `test customization enabled for bedrock sigv4 signing name`() {
6767
assertTrue {
68-
EnvironmentTokenCustomization()
68+
EnvironmentBearerTokenCustomization()
6969
.enabledForService(bedrockModel, bedrockModel.defaultSettings())
7070
}
7171
}
7272

7373
@Test
7474
fun `test customization not enabled for non-bedrock sigv4 signing name`() {
7575
assertFalse {
76-
EnvironmentTokenCustomization()
76+
EnvironmentBearerTokenCustomization()
7777
.enabledForService(nonBedrockModel, nonBedrockModel.defaultSettings())
7878
}
7979
}
8080

8181
@Test
8282
fun `test customization not enabled for model without sigv4 trait`() {
8383
assertFalse {
84-
EnvironmentTokenCustomization()
84+
EnvironmentBearerTokenCustomization()
8585
.enabledForService(noSigV4Model, noSigV4Model.defaultSettings())
8686
}
8787
}
8888

8989
@Test
9090
fun `test customization not enabled for model without bearer auth trait`() {
9191
assertFalse {
92-
EnvironmentTokenCustomization()
92+
EnvironmentBearerTokenCustomization()
9393
.enabledForService(noBearerAuthModel, noBearerAuthModel.defaultSettings())
9494
}
9595
}

services/bedrock/e2eTest/src/BedrockEnvironmentTokenTest.kt renamed to services/bedrock/e2eTest/src/BedrockEnvironmentBearerTokenTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import kotlin.test.assertEquals
2929

3030
// Environment variable AWS_BEARER_TOKEN_BEDROCK is configured with the value "bedrock-token" for this test suite.
3131
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
32-
class BedrockEnvironmentTokenTest {
32+
class BedrockEnvironmentBearerTokenTest {
3333
private fun mockHttpClient(handler: (HttpRequest) -> HttpResponse): HttpClientEngine {
3434
return object : HttpClientEngineBase("test engine") {
3535
override val config: HttpClientEngineConfig = HttpClientEngineConfig.Default

0 commit comments

Comments
 (0)