Loading .github/workflows/ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ jobs: - action: check-aws-config - action: check-aws-sdk-canary - action: check-aws-sdk-cargo-deny - action: check-aws-sdk-services - action: check-only-aws-sdk-services - action: check-aws-sdk-smoketest-docs-clippy-udeps - action: check-aws-sdk-smoketest-unit-tests - action: check-aws-sdk-standalone-integration-tests Loading aws/sdk-adhoc-test/models/single-static-endpoint.smithy +7 −1 Original line number Diff line number Diff line Loading @@ -48,11 +48,17 @@ use smithy.rules#endpointTests } }, "params": { } "operationInputs": [ { "operationName": "TestOperation", "operationParams": { "bar": { f: "blah" } } } ] }] }) @restJson1 @title("Test Service") @service(sdkId: "Test") @aws.auth#sigv4(name: "test-service") service TestService { operations: [TestOperation] } Loading @@ -60,7 +66,7 @@ service TestService { @input structure Foo { bar: Bar } structure Bar {} structure Bar { f: String } @http(uri: "/foo", method: "POST") operation TestOperation { Loading aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/endpoints/OperationInputTestGenerator.kt +3 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import software.amazon.smithy.rust.codegen.core.rustlang.rust import software.amazon.smithy.rust.codegen.core.rustlang.rustBlock import software.amazon.smithy.rust.codegen.core.rustlang.rustTemplate import software.amazon.smithy.rust.codegen.core.rustlang.writable import software.amazon.smithy.rust.codegen.core.smithy.PublicImportSymbolProvider import software.amazon.smithy.rust.codegen.core.smithy.RustCrate import software.amazon.smithy.rust.codegen.core.smithy.generators.setterName import software.amazon.smithy.rust.codegen.core.testutil.integrationTest Loading Loading @@ -113,7 +114,8 @@ fun usesDeprecatedBuiltIns(testOperationInput: EndpointTestOperationInput): Bool * Doing this in AWS codegen allows us to actually integration test generated clients. */ class OperationInputTestGenerator(private val ctx: ClientCodegenContext, private val test: EndpointTestCase) { class OperationInputTestGenerator(_ctx: ClientCodegenContext, private val test: EndpointTestCase) { private val ctx = _ctx.copy(symbolProvider = PublicImportSymbolProvider(_ctx.symbolProvider, _ctx.moduleUseName())) private val runtimeConfig = ctx.runtimeConfig private val moduleName = ctx.moduleUseName() private val endpointCustomizations = ctx.rootDecorator.endpointCustomizations(ctx) Loading ci.mk +4 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ check-aws-sdk-examples: generate-aws-sdk check-aws-sdk-services: generate-aws-sdk $(CI_ACTION) $@ $(ARGS) .PHONY: check-only-aws-sdk-services check-only-aws-sdk-services: generate-aws-sdk $(CI_ACTION) $@ $(ARGS) .PHONY: check-aws-sdk-smoketest-docs-clippy-udeps check-aws-sdk-smoketest-docs-clippy-udeps: generate-aws-sdk-smoketest $(CI_ACTION) $@ $(ARGS) Loading codegen-client/src/test/kotlin/software/amazon/smithy/rust/codegen/client/endpoint/EndpointsDecoratorTest.kt +7 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class EndpointsDecoratorTest { "Region": "test-region" }, "operationInputs": [ { "operationName": "TestOperation" } { "operationName": "TestOperation", "operationParams": { "nested": { "field": "test" } } } ], "expect": { "endpoint": { Loading Loading @@ -110,7 +110,12 @@ class EndpointsDecoratorTest { structure TestOperationInput { @contextParam(name: "Bucket") bucket: String bucket: String, nested: NestedStructure } structure NestedStructure { field: String } """.asSmithyModel() Loading Loading
.github/workflows/ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ jobs: - action: check-aws-config - action: check-aws-sdk-canary - action: check-aws-sdk-cargo-deny - action: check-aws-sdk-services - action: check-only-aws-sdk-services - action: check-aws-sdk-smoketest-docs-clippy-udeps - action: check-aws-sdk-smoketest-unit-tests - action: check-aws-sdk-standalone-integration-tests Loading
aws/sdk-adhoc-test/models/single-static-endpoint.smithy +7 −1 Original line number Diff line number Diff line Loading @@ -48,11 +48,17 @@ use smithy.rules#endpointTests } }, "params": { } "operationInputs": [ { "operationName": "TestOperation", "operationParams": { "bar": { f: "blah" } } } ] }] }) @restJson1 @title("Test Service") @service(sdkId: "Test") @aws.auth#sigv4(name: "test-service") service TestService { operations: [TestOperation] } Loading @@ -60,7 +66,7 @@ service TestService { @input structure Foo { bar: Bar } structure Bar {} structure Bar { f: String } @http(uri: "/foo", method: "POST") operation TestOperation { Loading
aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/endpoints/OperationInputTestGenerator.kt +3 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import software.amazon.smithy.rust.codegen.core.rustlang.rust import software.amazon.smithy.rust.codegen.core.rustlang.rustBlock import software.amazon.smithy.rust.codegen.core.rustlang.rustTemplate import software.amazon.smithy.rust.codegen.core.rustlang.writable import software.amazon.smithy.rust.codegen.core.smithy.PublicImportSymbolProvider import software.amazon.smithy.rust.codegen.core.smithy.RustCrate import software.amazon.smithy.rust.codegen.core.smithy.generators.setterName import software.amazon.smithy.rust.codegen.core.testutil.integrationTest Loading Loading @@ -113,7 +114,8 @@ fun usesDeprecatedBuiltIns(testOperationInput: EndpointTestOperationInput): Bool * Doing this in AWS codegen allows us to actually integration test generated clients. */ class OperationInputTestGenerator(private val ctx: ClientCodegenContext, private val test: EndpointTestCase) { class OperationInputTestGenerator(_ctx: ClientCodegenContext, private val test: EndpointTestCase) { private val ctx = _ctx.copy(symbolProvider = PublicImportSymbolProvider(_ctx.symbolProvider, _ctx.moduleUseName())) private val runtimeConfig = ctx.runtimeConfig private val moduleName = ctx.moduleUseName() private val endpointCustomizations = ctx.rootDecorator.endpointCustomizations(ctx) Loading
ci.mk +4 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ check-aws-sdk-examples: generate-aws-sdk check-aws-sdk-services: generate-aws-sdk $(CI_ACTION) $@ $(ARGS) .PHONY: check-only-aws-sdk-services check-only-aws-sdk-services: generate-aws-sdk $(CI_ACTION) $@ $(ARGS) .PHONY: check-aws-sdk-smoketest-docs-clippy-udeps check-aws-sdk-smoketest-docs-clippy-udeps: generate-aws-sdk-smoketest $(CI_ACTION) $@ $(ARGS) Loading
codegen-client/src/test/kotlin/software/amazon/smithy/rust/codegen/client/endpoint/EndpointsDecoratorTest.kt +7 −2 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class EndpointsDecoratorTest { "Region": "test-region" }, "operationInputs": [ { "operationName": "TestOperation" } { "operationName": "TestOperation", "operationParams": { "nested": { "field": "test" } } } ], "expect": { "endpoint": { Loading Loading @@ -110,7 +110,12 @@ class EndpointsDecoratorTest { structure TestOperationInput { @contextParam(name: "Bucket") bucket: String bucket: String, nested: NestedStructure } structure NestedStructure { field: String } """.asSmithyModel() Loading