Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lowercase headers for prefix-header test #2437

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ apply HttpPrefixHeaders @httpRequestTests([
uri: "/HttpPrefixHeaders",
body: "",
headers: {
"X-Foo": "Foo",
"X-Foo-Abc": "Abc value",
"X-Foo-Def": "Def value",
"x-foo": "Foo",
"x-foo-abc": "Abc value",
"x-foo-def": "Def value",
},
params: {
foo: "Foo",
fooMap: {
Abc: "Abc value",
Def: "Def value",
abc: "Abc value",
def: "Def value",
}
}
},
Expand All @@ -48,7 +48,7 @@ apply HttpPrefixHeaders @httpRequestTests([
uri: "/HttpPrefixHeaders",
body: "",
headers: {
"X-Foo": "Foo"
"x-foo": "Foo"
},
params: {
foo: "Foo",
Expand All @@ -65,11 +65,11 @@ apply HttpPrefixHeaders @httpRequestTests([
body: "",
params: {
fooMap: {
Abc: ""
abc: ""
}
},
headers: {
"X-Foo-Abc": ""
"x-foo-abc": ""
}
appliesTo: "client",
},
Expand All @@ -82,35 +82,35 @@ apply HttpPrefixHeaders @httpResponseTests([
protocol: restJson1,
code: 200,
headers: {
"X-Foo": "Foo",
"X-Foo-Abc": "Abc value",
"X-Foo-Def": "Def value",
"x-foo": "Foo",
"x-foo-abc": "Abc value",
"x-foo-def": "Def value",
},
params: {
foo: "Foo",
fooMap: {
Abc: "Abc value",
Def: "Def value",
abc: "Abc value",
def: "Def value",
}
}
},
])

@input
structure HttpPrefixHeadersInput {
@httpHeader("X-Foo")
@httpHeader("x-foo")
foo: String,

@httpPrefixHeaders("X-Foo-")
@httpPrefixHeaders("x-foo-")
fooMap: StringMap,
}

@output
structure HttpPrefixHeadersOutput {
@httpHeader("X-Foo")
@httpHeader("x-foo")
foo: String,

@httpPrefixHeaders("X-Foo-")
@httpPrefixHeaders("x-foo-")
fooMap: StringMap,
}

Expand All @@ -129,13 +129,13 @@ apply HttpPrefixHeadersInResponse @httpResponseTests([
protocol: restJson1,
code: 200,
headers: {
"X-Foo": "Foo",
"Hello": "Hello"
"x-foo": "Foo",
"hello": "Hello"
},
params: {
prefixHeaders: {
"X-Foo": "Foo",
"Hello": "Hello"
"x-foo": "Foo",
"hello": "Hello"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ apply HttpPrefixHeaders @httpRequestTests([
uri: "/HttpPrefixHeaders",
body: "",
headers: {
"X-Foo": "Foo",
"X-Foo-Abc": "Abc value",
"X-Foo-Def": "Def value",
"x-foo": "Foo",
"x-foo-abc": "Abc value",
"x-foo-def": "Def value",
},
params: {
foo: "Foo",
fooMap: {
Abc: "Abc value",
Def: "Def value",
abc: "Abc value",
def: "Def value",
}
}
},
Expand All @@ -47,7 +47,7 @@ apply HttpPrefixHeaders @httpRequestTests([
uri: "/HttpPrefixHeaders",
body: "",
headers: {
"X-Foo": "Foo"
"x-foo": "Foo"
},
params: {
foo: "Foo",
Expand All @@ -64,11 +64,11 @@ apply HttpPrefixHeaders @httpRequestTests([
body: "",
params: {
fooMap: {
Abc: ""
abc: ""
}
},
headers: {
"X-Foo-Abc": ""
"x-foo-abc": ""
}
appliesTo: "client",
},
Expand All @@ -82,15 +82,15 @@ apply HttpPrefixHeaders @httpResponseTests([
code: 200,
body: "",
headers: {
"X-Foo": "Foo",
"X-Foo-Abc": "Abc value",
"X-Foo-Def": "Def value",
"x-foo": "Foo",
"x-foo-abc": "Abc value",
"x-foo-def": "Def value",
},
params: {
foo: "Foo",
fooMap: {
Abc: "Abc value",
Def: "Def value",
abc: "Abc value",
def: "Def value",
}
}
},
Expand All @@ -101,7 +101,7 @@ apply HttpPrefixHeaders @httpResponseTests([
code: 200,
body: "",
headers: {
"X-Foo": "Foo"
"x-foo": "Foo"
},
params: {
foo: "Foo",
Expand All @@ -111,10 +111,10 @@ apply HttpPrefixHeaders @httpResponseTests([
])

structure HttpPrefixHeadersInputOutput {
@httpHeader("X-Foo")
@httpHeader("x-foo")
foo: String,

@httpPrefixHeaders("X-Foo-")
@httpPrefixHeaders("x-foo-")
fooMap: FooPrefixHeaders,
}

Expand Down
Loading