Skip to content

Commit e912cf5

Browse files
committed
Fix things
1 parent a6f39fb commit e912cf5

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

codegen-client-test/build.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,15 @@ val allCodegenTests = listOf(
6767
ClientTest(
6868
"aws.protocoltests.restjson#RestJsonExtras",
6969
"rest_json_extras",
70-
dependsOn = listOf("rest-json-extras.smithy"),
70+
dependsOn = listOf(
71+
"rest-json-extras.smithy",
72+
// TODO(https://github.com/smithy-lang/smithy/pull/2310): Can be deleted when consumed in next Smithy version.
73+
"rest-json-extras-2310.smithy",
74+
// TODO(https://github.com/smithy-lang/smithy/pull/2314): Can be deleted when consumed in next Smithy version.
75+
"rest-json-extras-2314.smithy",
76+
// TODO(https://github.com/smithy-lang/smithy/pull/2315): Can be deleted when consumed in next Smithy version.
77+
"rest-json-extras-2315.smithy",
78+
),
7179
),
7280
ClientTest("aws.protocoltests.misc#MiscService", "misc", dependsOn = listOf("misc.smithy")),
7381
ClientTest("aws.protocoltests.restxml#RestXml", "rest_xml", addMessageToErrors = false),

codegen-server-test/python/build.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,15 @@ val allCodegenTests = "../../codegen-core/common-test-models".let { commonModels
6161
CodegenTest(
6262
"aws.protocoltests.restjson#RestJsonExtras",
6363
"rest_json_extras",
64-
imports = listOf("$commonModels/rest-json-extras.smithy"),
64+
imports = listOf(
65+
"$commonModels/rest-json-extras.smithy",
66+
// TODO(https://github.com/smithy-lang/smithy/pull/2310): Can be deleted when consumed in next Smithy version.
67+
"$commonModels/rest-json-extras-2310.smithy",
68+
// TODO(https://github.com/smithy-lang/smithy/pull/2314): Can be deleted when consumed in next Smithy version.
69+
"$commonModels/rest-json-extras-2314.smithy",
70+
// TODO(https://github.com/smithy-lang/smithy/pull/2315): Can be deleted when consumed in next Smithy version.
71+
"$commonModels/rest-json-extras-2315.smithy",
72+
),
6573
),
6674
// TODO(https://github.com/smithy-lang/smithy-rs/issues/2477)
6775
// CodegenTest(

codegen-server/python/src/test/kotlin/software/amazon/smithy/rust/codegen/server/python/smithy/generators/PythonServerTypesTest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ internal class PythonServerTypesTest {
130130
let req = Request::builder()
131131
.method("POST")
132132
.uri("/echo")
133+
.header("content-type", "application/json")
133134
.body(Body::from(${payload.dq()}))
134135
.unwrap();
135136
@@ -222,6 +223,7 @@ internal class PythonServerTypesTest {
222223
let req = Request::builder()
223224
.method("POST")
224225
.uri("/echo")
226+
.header("content-type", "application/json")
225227
.body(Body::from("{\"value\":1676298520}"))
226228
.unwrap();
227229
let res = service.call(req).await.unwrap();

rust-runtime/aws-smithy-http-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-smithy-http-server"
3-
version = "0.61.2"
3+
version = "0.61.3"
44
authors = ["Smithy Rust Server <[email protected]>"]
55
edition = "2021"
66
license = "Apache-2.0"

rust-runtime/aws-smithy-http-server/src/protocol/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ pub fn accept_header_classifier(headers: &HeaderMap, content_type: &mime::Mime)
142142
#[cfg(test)]
143143
mod tests {
144144
use super::*;
145-
use aws_smithy_runtime_api::http::Headers;
146145
use http::header::{HeaderValue, ACCEPT, CONTENT_TYPE};
147146

148147
fn req_content_type_smithy(content_type: &'static str) -> SmithyHeaders {

0 commit comments

Comments
 (0)