Skip to content

Commit 791dcfa

Browse files
committed
chore: update protocol_tests
1 parent efc153e commit 791dcfa

File tree

5 files changed

+549
-487
lines changed

5 files changed

+549
-487
lines changed

protocol_tests/aws-ec2/protocols/Aws_ec2.ts

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ export async function serializeAws_ec2EmptyInputAndEmptyOutputCommand(
113113
input: EmptyInputAndEmptyOutputCommandInput,
114114
context: __SerdeContext
115115
): Promise<__HttpRequest> {
116-
const headers: __HeaderBag = {};
117-
headers["Content-Type"] = "application/x-www-form-urlencoded";
116+
const headers: __HeaderBag = {
117+
"Content-Type": "application/x-www-form-urlencoded"
118+
};
118119
let body: any;
119120
const entries = serializeAws_ec2EmptyInputAndEmptyOutputInput(input, context);
120121
body = buildFormUrlencodedString({
@@ -129,8 +130,9 @@ export async function serializeAws_ec2GreetingWithErrorsCommand(
129130
input: GreetingWithErrorsCommandInput,
130131
context: __SerdeContext
131132
): Promise<__HttpRequest> {
132-
const headers: __HeaderBag = {};
133-
headers["Content-Type"] = "application/x-www-form-urlencoded";
133+
const headers: __HeaderBag = {
134+
"Content-Type": "application/x-www-form-urlencoded"
135+
};
134136
const body = buildFormUrlencodedString({
135137
Action: "GreetingWithErrors",
136138
Version: "2020-01-08"
@@ -142,8 +144,9 @@ export async function serializeAws_ec2IgnoresWrappingXmlNameCommand(
142144
input: IgnoresWrappingXmlNameCommandInput,
143145
context: __SerdeContext
144146
): Promise<__HttpRequest> {
145-
const headers: __HeaderBag = {};
146-
headers["Content-Type"] = "application/x-www-form-urlencoded";
147+
const headers: __HeaderBag = {
148+
"Content-Type": "application/x-www-form-urlencoded"
149+
};
147150
const body = buildFormUrlencodedString({
148151
Action: "IgnoresWrappingXmlName",
149152
Version: "2020-01-08"
@@ -155,8 +158,9 @@ export async function serializeAws_ec2NestedStructuresCommand(
155158
input: NestedStructuresCommandInput,
156159
context: __SerdeContext
157160
): Promise<__HttpRequest> {
158-
const headers: __HeaderBag = {};
159-
headers["Content-Type"] = "application/x-www-form-urlencoded";
161+
const headers: __HeaderBag = {
162+
"Content-Type": "application/x-www-form-urlencoded"
163+
};
160164
let body: any;
161165
const entries = serializeAws_ec2NestedStructuresInput(input, context);
162166
body = buildFormUrlencodedString({
@@ -171,8 +175,9 @@ export async function serializeAws_ec2NoInputAndOutputCommand(
171175
input: NoInputAndOutputCommandInput,
172176
context: __SerdeContext
173177
): Promise<__HttpRequest> {
174-
const headers: __HeaderBag = {};
175-
headers["Content-Type"] = "application/x-www-form-urlencoded";
178+
const headers: __HeaderBag = {
179+
"Content-Type": "application/x-www-form-urlencoded"
180+
};
176181
const body = buildFormUrlencodedString({
177182
Action: "NoInputAndOutput",
178183
Version: "2020-01-08"
@@ -184,8 +189,9 @@ export async function serializeAws_ec2QueryIdempotencyTokenAutoFillCommand(
184189
input: QueryIdempotencyTokenAutoFillCommandInput,
185190
context: __SerdeContext
186191
): Promise<__HttpRequest> {
187-
const headers: __HeaderBag = {};
188-
headers["Content-Type"] = "application/x-www-form-urlencoded";
192+
const headers: __HeaderBag = {
193+
"Content-Type": "application/x-www-form-urlencoded"
194+
};
189195
let body: any;
190196
const entries = serializeAws_ec2QueryIdempotencyTokenAutoFillInput(
191197
input,
@@ -203,8 +209,9 @@ export async function serializeAws_ec2QueryListsCommand(
203209
input: QueryListsCommandInput,
204210
context: __SerdeContext
205211
): Promise<__HttpRequest> {
206-
const headers: __HeaderBag = {};
207-
headers["Content-Type"] = "application/x-www-form-urlencoded";
212+
const headers: __HeaderBag = {
213+
"Content-Type": "application/x-www-form-urlencoded"
214+
};
208215
let body: any;
209216
const entries = serializeAws_ec2QueryListsInput(input, context);
210217
body = buildFormUrlencodedString({
@@ -219,8 +226,9 @@ export async function serializeAws_ec2QueryTimestampsCommand(
219226
input: QueryTimestampsCommandInput,
220227
context: __SerdeContext
221228
): Promise<__HttpRequest> {
222-
const headers: __HeaderBag = {};
223-
headers["Content-Type"] = "application/x-www-form-urlencoded";
229+
const headers: __HeaderBag = {
230+
"Content-Type": "application/x-www-form-urlencoded"
231+
};
224232
let body: any;
225233
const entries = serializeAws_ec2QueryTimestampsInput(input, context);
226234
body = buildFormUrlencodedString({
@@ -235,8 +243,9 @@ export async function serializeAws_ec2RecursiveXmlShapesCommand(
235243
input: RecursiveXmlShapesCommandInput,
236244
context: __SerdeContext
237245
): Promise<__HttpRequest> {
238-
const headers: __HeaderBag = {};
239-
headers["Content-Type"] = "application/x-www-form-urlencoded";
246+
const headers: __HeaderBag = {
247+
"Content-Type": "application/x-www-form-urlencoded"
248+
};
240249
const body = buildFormUrlencodedString({
241250
Action: "RecursiveXmlShapes",
242251
Version: "2020-01-08"
@@ -248,8 +257,9 @@ export async function serializeAws_ec2SimpleInputParamsCommand(
248257
input: SimpleInputParamsCommandInput,
249258
context: __SerdeContext
250259
): Promise<__HttpRequest> {
251-
const headers: __HeaderBag = {};
252-
headers["Content-Type"] = "application/x-www-form-urlencoded";
260+
const headers: __HeaderBag = {
261+
"Content-Type": "application/x-www-form-urlencoded"
262+
};
253263
let body: any;
254264
const entries = serializeAws_ec2SimpleInputParamsInput(input, context);
255265
body = buildFormUrlencodedString({
@@ -264,8 +274,9 @@ export async function serializeAws_ec2SimpleScalarXmlPropertiesCommand(
264274
input: SimpleScalarXmlPropertiesCommandInput,
265275
context: __SerdeContext
266276
): Promise<__HttpRequest> {
267-
const headers: __HeaderBag = {};
268-
headers["Content-Type"] = "application/x-www-form-urlencoded";
277+
const headers: __HeaderBag = {
278+
"Content-Type": "application/x-www-form-urlencoded"
279+
};
269280
const body = buildFormUrlencodedString({
270281
Action: "SimpleScalarXmlProperties",
271282
Version: "2020-01-08"
@@ -277,8 +288,9 @@ export async function serializeAws_ec2XmlBlobsCommand(
277288
input: XmlBlobsCommandInput,
278289
context: __SerdeContext
279290
): Promise<__HttpRequest> {
280-
const headers: __HeaderBag = {};
281-
headers["Content-Type"] = "application/x-www-form-urlencoded";
291+
const headers: __HeaderBag = {
292+
"Content-Type": "application/x-www-form-urlencoded"
293+
};
282294
const body = buildFormUrlencodedString({
283295
Action: "XmlBlobs",
284296
Version: "2020-01-08"
@@ -290,8 +302,9 @@ export async function serializeAws_ec2XmlEnumsCommand(
290302
input: XmlEnumsCommandInput,
291303
context: __SerdeContext
292304
): Promise<__HttpRequest> {
293-
const headers: __HeaderBag = {};
294-
headers["Content-Type"] = "application/x-www-form-urlencoded";
305+
const headers: __HeaderBag = {
306+
"Content-Type": "application/x-www-form-urlencoded"
307+
};
295308
const body = buildFormUrlencodedString({
296309
Action: "XmlEnums",
297310
Version: "2020-01-08"
@@ -303,8 +316,9 @@ export async function serializeAws_ec2XmlListsCommand(
303316
input: XmlListsCommandInput,
304317
context: __SerdeContext
305318
): Promise<__HttpRequest> {
306-
const headers: __HeaderBag = {};
307-
headers["Content-Type"] = "application/x-www-form-urlencoded";
319+
const headers: __HeaderBag = {
320+
"Content-Type": "application/x-www-form-urlencoded"
321+
};
308322
const body = buildFormUrlencodedString({
309323
Action: "XmlLists",
310324
Version: "2020-01-08"
@@ -316,8 +330,9 @@ export async function serializeAws_ec2XmlNamespacesCommand(
316330
input: XmlNamespacesCommandInput,
317331
context: __SerdeContext
318332
): Promise<__HttpRequest> {
319-
const headers: __HeaderBag = {};
320-
headers["Content-Type"] = "application/x-www-form-urlencoded";
333+
const headers: __HeaderBag = {
334+
"Content-Type": "application/x-www-form-urlencoded"
335+
};
321336
const body = buildFormUrlencodedString({
322337
Action: "XmlNamespaces",
323338
Version: "2020-01-08"
@@ -329,8 +344,9 @@ export async function serializeAws_ec2XmlTimestampsCommand(
329344
input: XmlTimestampsCommandInput,
330345
context: __SerdeContext
331346
): Promise<__HttpRequest> {
332-
const headers: __HeaderBag = {};
333-
headers["Content-Type"] = "application/x-www-form-urlencoded";
347+
const headers: __HeaderBag = {
348+
"Content-Type": "application/x-www-form-urlencoded"
349+
};
334350
const body = buildFormUrlencodedString({
335351
Action: "XmlTimestamps",
336352
Version: "2020-01-08"

protocol_tests/aws-json/protocols/Aws_json1_1.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,21 @@ export async function serializeAws_json1_1EmptyOperationCommand(
4040
input: EmptyOperationCommandInput,
4141
context: __SerdeContext
4242
): Promise<__HttpRequest> {
43-
const headers: __HeaderBag = {};
44-
headers["Content-Type"] = "application/x-amz-json-1.1";
45-
headers["X-Amz-Target"] = "JsonProtocol.EmptyOperation";
43+
const headers: __HeaderBag = {
44+
"Content-Type": "application/x-amz-json-1.1",
45+
"X-Amz-Target": "JsonProtocol.EmptyOperation"
46+
};
4647
return buildHttpRpcRequest(context, headers, "/", undefined, undefined);
4748
}
4849

4950
export async function serializeAws_json1_1KitchenSinkOperationCommand(
5051
input: KitchenSinkOperationCommandInput,
5152
context: __SerdeContext
5253
): Promise<__HttpRequest> {
53-
const headers: __HeaderBag = {};
54-
headers["Content-Type"] = "application/x-amz-json-1.1";
55-
headers["X-Amz-Target"] = "JsonProtocol.KitchenSinkOperation";
54+
const headers: __HeaderBag = {
55+
"Content-Type": "application/x-amz-json-1.1",
56+
"X-Amz-Target": "JsonProtocol.KitchenSinkOperation"
57+
};
5658
let body: any;
5759
body = JSON.stringify(serializeAws_json1_1KitchenSink(input, context));
5860
return buildHttpRpcRequest(context, headers, "/", undefined, body);
@@ -62,9 +64,10 @@ export async function serializeAws_json1_1OperationWithOptionalInputOutputComman
6264
input: OperationWithOptionalInputOutputCommandInput,
6365
context: __SerdeContext
6466
): Promise<__HttpRequest> {
65-
const headers: __HeaderBag = {};
66-
headers["Content-Type"] = "application/x-amz-json-1.1";
67-
headers["X-Amz-Target"] = "JsonProtocol.OperationWithOptionalInputOutput";
67+
const headers: __HeaderBag = {
68+
"Content-Type": "application/x-amz-json-1.1",
69+
"X-Amz-Target": "JsonProtocol.OperationWithOptionalInputOutput"
70+
};
6871
let body: any;
6972
body = JSON.stringify(serializeAws_json1_1SimpleStruct(input, context));
7073
return buildHttpRpcRequest(context, headers, "/", undefined, body);

0 commit comments

Comments
 (0)