You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/ShapeValueGenerator.kt
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/smoketests/SmokeTestsRunnerGenerator.kt
val paramsToShapes = mapOperationParametersToModeledShapes(operation)
184
+
writeInline("client.#L", operation.defaultName())
198
185
199
-
testCase.operationParameters.forEach { param ->
200
-
val paramName = param.key.value.toCamelCase()
201
-
writer.writeInline("#L = ", paramName)
202
-
val paramShape = paramsToShapes[paramName] ?:throwIllegalArgumentException("Unable to find shape for operation parameter '$paramName' in smoke test '${testCase.functionName}'.")
val memberShape = shape.allMembers[member.key.value] ?:throwIllegalArgumentException("Unable to find shape for operation parameter '$paramName' in smoke test '${testCase.functionName}'.")
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/main/resources/META-INF/services/software.amazon.smithy.kotlin.codegen.integration.KotlinIntegration
Copy file name to clipboardExpand all lines: codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/smoketests/SmokeTestsRunnerGeneratorTest.kt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -106,12 +106,12 @@ class SmokeTestsRunnerGeneratorTest {
106
106
}
107
107
108
108
try {
109
-
com.test.TestClient {
109
+
TestClient {
110
110
interceptors.add(SmokeTestsInterceptor())
111
111
region = "eu-central-1"
112
112
}.use { client ->
113
113
client.testOperation(
114
-
com.test.model.TestOperationRequest {
114
+
TestOperationRequest {
115
115
bar = "2"
116
116
}
117
117
)
@@ -143,11 +143,11 @@ class SmokeTestsRunnerGeneratorTest {
143
143
}
144
144
145
145
try {
146
-
com.test.TestClient {
146
+
TestClient {
147
147
148
148
}.use { client ->
149
149
client.testOperation(
150
-
com.test.model.TestOperationRequest {
150
+
TestOperationRequest {
151
151
bar = "föö"
152
152
}
153
153
)
@@ -179,12 +179,12 @@ class SmokeTestsRunnerGeneratorTest {
0 commit comments