Unverified Commit 9fe5d55c authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Update the orchestrator CI test script (#2732)

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent d9123266
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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,
                    )
@@ -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,
                    )
+1 −0
Original line number Diff line number Diff line
@@ -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");
+3 −2
Original line number Diff line number Diff line
@@ -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"\
@@ -36,7 +35,9 @@ services_that_pass_tests=(\
    "kms"\
    "lambda"\
    "qldbsession"\
    "s3control"\
    "sso"\
    "transcribestreaming"\
)

./gradlew aws:sdk:assemble -Psmithy.runtime.mode=orchestrator