File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk
sdk/integration-tests/s3control/tests Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,16 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) :
69
69
self.interceptors.push(#{SharedInterceptor}::new(interceptor));
70
70
self
71
71
}
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
+ }
72
82
""" ,
73
83
* codegenScope,
74
84
)
@@ -89,6 +99,12 @@ class CustomizableOperationTestHelpers(runtimeConfig: RuntimeConfig) :
89
99
self.operation.properties_mut().insert(#{AwsUserAgent}::for_tests());
90
100
self
91
101
}
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
+ }
92
108
""" ,
93
109
* codegenScope,
94
110
)
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ async fn test_signer() {
39
39
. unwrap ( )
40
40
. request_time_for_tests ( UNIX_EPOCH + Duration :: from_secs ( 1636751225 ) )
41
41
. user_agent_for_tests ( )
42
+ . remove_invocation_id_for_tests ( )
42
43
. send ( )
43
44
. await
44
45
. expect_err ( "empty response" ) ;
Original file line number Diff line number Diff line change @@ -15,13 +15,12 @@ cd smithy-rs
15
15
# TODO(enableNewSmithyRuntime): Move these into `services_that_compile` as more progress is made
16
16
services_that_fail_compile=(\
17
17
" s3" \
18
- " s3control" \
19
- " transcribestreaming" \
20
18
" polly" \
21
19
)
22
20
23
21
# TODO(enableNewSmithyRuntime): Move these into `services_that_pass_tests` as more progress is made
24
22
services_that_compile=(\
23
+ " aws-config" \
25
24
" dynamodb" \
26
25
" route53" \
27
26
" sts" \
@@ -36,7 +35,9 @@ services_that_pass_tests=(\
36
35
" kms" \
37
36
" lambda" \
38
37
" qldbsession" \
38
+ " s3control" \
39
39
" sso" \
40
+ " transcribestreaming" \
40
41
)
41
42
42
43
./gradlew aws:sdk:assemble -Psmithy.runtime.mode=orchestrator
You can’t perform that action at this time.
0 commit comments