Skip to content

Commit 9fe5d55

Browse files
authored
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._
1 parent d912326 commit 9fe5d55

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/AwsCustomizableOperationDecorator.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) :
6969
self.interceptors.push(#{SharedInterceptor}::new(interceptor));
7070
self
7171
}
72+
73+
##[doc(hidden)]
74+
// This is a temporary method for testing. NEVER use it in production
75+
pub fn remove_invocation_id_for_tests(mut self) -> Self {
76+
let interceptor = #{TestParamsSetterInterceptor}::new(|context: &mut #{BeforeTransmitInterceptorContextMut}<'_>, _: &mut #{ConfigBag}| {
77+
context.request_mut().headers_mut().remove("amz-sdk-invocation-id");
78+
});
79+
self.interceptors.push(#{SharedInterceptor}::new(interceptor));
80+
self
81+
}
7282
""",
7383
*codegenScope,
7484
)
@@ -89,6 +99,12 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) :
8999
self.operation.properties_mut().insert(#{AwsUserAgent}::for_tests());
90100
self
91101
}
102+
103+
##[doc(hidden)]
104+
// This is a temporary method for testing. NEVER use it in production
105+
pub fn remove_invocation_id_for_tests(self) -> Self {
106+
self
107+
}
92108
""",
93109
*codegenScope,
94110
)

aws/sdk/integration-tests/s3control/tests/signing-it.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ async fn test_signer() {
3939
.unwrap()
4040
.request_time_for_tests(UNIX_EPOCH + Duration::from_secs(1636751225))
4141
.user_agent_for_tests()
42+
.remove_invocation_id_for_tests()
4243
.send()
4344
.await
4445
.expect_err("empty response");

tools/ci-scripts/check-aws-sdk-orchestrator-impl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ cd smithy-rs
1515
# TODO(enableNewSmithyRuntime): Move these into `services_that_compile` as more progress is made
1616
services_that_fail_compile=(\
1717
"s3"\
18-
"s3control"\
19-
"transcribestreaming"\
2018
"polly"\
2119
)
2220

2321
# TODO(enableNewSmithyRuntime): Move these into `services_that_pass_tests` as more progress is made
2422
services_that_compile=(\
23+
"aws-config"\
2524
"dynamodb"\
2625
"route53"\
2726
"sts"\
@@ -36,7 +35,9 @@ services_that_pass_tests=(\
3635
"kms"\
3736
"lambda"\
3837
"qldbsession"\
38+
"s3control"\
3939
"sso"\
40+
"transcribestreaming"\
4041
)
4142

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

0 commit comments

Comments
 (0)