Loading aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/AwsCustomizableOperationDecorator.kt +16 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,16 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) : self.interceptors.push(#{SharedInterceptor}::new(interceptor)); self } ##[doc(hidden)] // This is a temporary method for testing. NEVER use it in production pub fn remove_invocation_id_for_tests(mut self) -> Self { let interceptor = #{TestParamsSetterInterceptor}::new(|context: &mut #{BeforeTransmitInterceptorContextMut}<'_>, _: &mut #{ConfigBag}| { context.request_mut().headers_mut().remove("amz-sdk-invocation-id"); }); self.interceptors.push(#{SharedInterceptor}::new(interceptor)); self } """, *codegenScope, ) Loading @@ -89,6 +99,12 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) : self.operation.properties_mut().insert(#{AwsUserAgent}::for_tests()); self } ##[doc(hidden)] // This is a temporary method for testing. NEVER use it in production pub fn remove_invocation_id_for_tests(self) -> Self { self } """, *codegenScope, ) Loading aws/sdk/integration-tests/s3control/tests/signing-it.rs +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ async fn test_signer() { .unwrap() .request_time_for_tests(UNIX_EPOCH + Duration::from_secs(1636751225)) .user_agent_for_tests() .remove_invocation_id_for_tests() .send() .await .expect_err("empty response"); Loading tools/ci-scripts/check-aws-sdk-orchestrator-impl +3 −2 Original line number Diff line number Diff line Loading @@ -15,13 +15,12 @@ cd smithy-rs # TODO(enableNewSmithyRuntime): Move these into `services_that_compile` as more progress is made services_that_fail_compile=(\ "s3"\ "s3control"\ "transcribestreaming"\ "polly"\ ) # TODO(enableNewSmithyRuntime): Move these into `services_that_pass_tests` as more progress is made services_that_compile=(\ "aws-config"\ "dynamodb"\ "route53"\ "sts"\ Loading @@ -36,7 +35,9 @@ services_that_pass_tests=(\ "kms"\ "lambda"\ "qldbsession"\ "s3control"\ "sso"\ "transcribestreaming"\ ) ./gradlew aws:sdk:assemble -Psmithy.runtime.mode=orchestrator Loading Loading
aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/AwsCustomizableOperationDecorator.kt +16 −0 Original line number Diff line number Diff line Loading @@ -69,6 +69,16 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) : self.interceptors.push(#{SharedInterceptor}::new(interceptor)); self } ##[doc(hidden)] // This is a temporary method for testing. NEVER use it in production pub fn remove_invocation_id_for_tests(mut self) -> Self { let interceptor = #{TestParamsSetterInterceptor}::new(|context: &mut #{BeforeTransmitInterceptorContextMut}<'_>, _: &mut #{ConfigBag}| { context.request_mut().headers_mut().remove("amz-sdk-invocation-id"); }); self.interceptors.push(#{SharedInterceptor}::new(interceptor)); self } """, *codegenScope, ) Loading @@ -89,6 +99,12 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) : self.operation.properties_mut().insert(#{AwsUserAgent}::for_tests()); self } ##[doc(hidden)] // This is a temporary method for testing. NEVER use it in production pub fn remove_invocation_id_for_tests(self) -> Self { self } """, *codegenScope, ) Loading
aws/sdk/integration-tests/s3control/tests/signing-it.rs +1 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ async fn test_signer() { .unwrap() .request_time_for_tests(UNIX_EPOCH + Duration::from_secs(1636751225)) .user_agent_for_tests() .remove_invocation_id_for_tests() .send() .await .expect_err("empty response"); Loading
tools/ci-scripts/check-aws-sdk-orchestrator-impl +3 −2 Original line number Diff line number Diff line Loading @@ -15,13 +15,12 @@ cd smithy-rs # TODO(enableNewSmithyRuntime): Move these into `services_that_compile` as more progress is made services_that_fail_compile=(\ "s3"\ "s3control"\ "transcribestreaming"\ "polly"\ ) # TODO(enableNewSmithyRuntime): Move these into `services_that_pass_tests` as more progress is made services_that_compile=(\ "aws-config"\ "dynamodb"\ "route53"\ "sts"\ Loading @@ -36,7 +35,9 @@ services_that_pass_tests=(\ "kms"\ "lambda"\ "qldbsession"\ "s3control"\ "sso"\ "transcribestreaming"\ ) ./gradlew aws:sdk:assemble -Psmithy.runtime.mode=orchestrator Loading