@@ -140,11 +140,17 @@ const equivalentContents = (expected: any, generated: any): boolean => {
140140 return true ;
141141} ;
142142
143+ const clientParams = {
144+ region : "us-west-2" ,
145+ credentials : { accessKeyId : "key" , secretAccessKey : "secret" } ,
146+ } ;
147+
143148/**
144149 * Empty input serializes no extra query params
145150 */
146151it ( "Ec2QueryEmptyInputAndEmptyOutput:Request" , async ( ) => {
147152 const client = new EC2ProtocolClient ( {
153+ ...clientParams ,
148154 requestHandler : new RequestSerializationTestHandler ( ) ,
149155 } ) ;
150156
@@ -178,6 +184,7 @@ it("Ec2QueryEmptyInputAndEmptyOutput:Request", async () => {
178184 */
179185it ( "Ec2QueryEmptyInputAndEmptyOutput:Response" , async ( ) => {
180186 const client = new EC2ProtocolClient ( {
187+ ...clientParams ,
181188 requestHandler : new ResponseDeserializationTestHandler (
182189 true ,
183190 200 ,
@@ -209,6 +216,7 @@ it("Ec2QueryEmptyInputAndEmptyOutput:Response", async () => {
209216 */
210217it ( "Ec2GreetingWithErrors:Response" , async ( ) => {
211218 const client = new EC2ProtocolClient ( {
219+ ...clientParams ,
212220 requestHandler : new ResponseDeserializationTestHandler (
213221 true ,
214222 200 ,
@@ -250,6 +258,7 @@ it("Ec2GreetingWithErrors:Response", async () => {
250258 */
251259it ( "Ec2InvalidGreetingError:Error:GreetingWithErrors" , async ( ) => {
252260 const client = new EC2ProtocolClient ( {
261+ ...clientParams ,
253262 requestHandler : new ResponseDeserializationTestHandler (
254263 false ,
255264 400 ,
@@ -298,6 +307,7 @@ it("Ec2InvalidGreetingError:Error:GreetingWithErrors", async () => {
298307
299308it ( "Ec2ComplexError:Error:GreetingWithErrors" , async ( ) => {
300309 const client = new EC2ProtocolClient ( {
310+ ...clientParams ,
301311 requestHandler : new ResponseDeserializationTestHandler (
302312 false ,
303313 400 ,
@@ -357,6 +367,7 @@ it("Ec2ComplexError:Error:GreetingWithErrors", async () => {
357367 */
358368it ( "Ec2IgnoresWrappingXmlName:Response" , async ( ) => {
359369 const client = new EC2ProtocolClient ( {
370+ ...clientParams ,
360371 requestHandler : new ResponseDeserializationTestHandler (
361372 true ,
362373 200 ,
@@ -398,6 +409,7 @@ it("Ec2IgnoresWrappingXmlName:Response", async () => {
398409 */
399410it ( "Ec2NestedStructures:Request" , async ( ) => {
400411 const client = new EC2ProtocolClient ( {
412+ ...clientParams ,
401413 requestHandler : new RequestSerializationTestHandler ( ) ,
402414 } ) ;
403415
@@ -444,6 +456,7 @@ it("Ec2NestedStructures:Request", async () => {
444456 */
445457it ( "Ec2QueryNoInputAndOutput:Request" , async ( ) => {
446458 const client = new EC2ProtocolClient ( {
459+ ...clientParams ,
447460 requestHandler : new RequestSerializationTestHandler ( ) ,
448461 } ) ;
449462
@@ -477,6 +490,7 @@ it("Ec2QueryNoInputAndOutput:Request", async () => {
477490 */
478491it ( "Ec2QueryNoInputAndOutput:Response" , async ( ) => {
479492 const client = new EC2ProtocolClient ( {
493+ ...clientParams ,
480494 requestHandler : new ResponseDeserializationTestHandler (
481495 true ,
482496 200 ,
@@ -508,6 +522,7 @@ it("Ec2QueryNoInputAndOutput:Response", async () => {
508522 */
509523it ( "Ec2ProtocolIdempotencyTokenAutoFill:Request" , async ( ) => {
510524 const client = new EC2ProtocolClient ( {
525+ ...clientParams ,
511526 requestHandler : new RequestSerializationTestHandler ( ) ,
512527 } ) ;
513528
@@ -544,6 +559,7 @@ it("Ec2ProtocolIdempotencyTokenAutoFill:Request", async () => {
544559 */
545560it ( "Ec2ProtocolIdempotencyTokenAutoFillIsSet:Request" , async ( ) => {
546561 const client = new EC2ProtocolClient ( {
562+ ...clientParams ,
547563 requestHandler : new RequestSerializationTestHandler ( ) ,
548564 } ) ;
549565
@@ -580,6 +596,7 @@ it("Ec2ProtocolIdempotencyTokenAutoFillIsSet:Request", async () => {
580596 */
581597it ( "Ec2Lists:Request" , async ( ) => {
582598 const client = new EC2ProtocolClient ( {
599+ ...clientParams ,
583600 requestHandler : new RequestSerializationTestHandler ( ) ,
584601 } ) ;
585602
@@ -630,6 +647,7 @@ it("Ec2Lists:Request", async () => {
630647 */
631648it ( "Ec2EmptyQueryLists:Request" , async ( ) => {
632649 const client = new EC2ProtocolClient ( {
650+ ...clientParams ,
633651 requestHandler : new RequestSerializationTestHandler ( ) ,
634652 } ) ;
635653
@@ -665,6 +683,7 @@ it("Ec2EmptyQueryLists:Request", async () => {
665683 */
666684it ( "Ec2ListArgWithXmlNameMember:Request" , async ( ) => {
667685 const client = new EC2ProtocolClient ( {
686+ ...clientParams ,
668687 requestHandler : new RequestSerializationTestHandler ( ) ,
669688 } ) ;
670689
@@ -702,6 +721,7 @@ it("Ec2ListArgWithXmlNameMember:Request", async () => {
702721 */
703722it ( "Ec2ListMemberWithXmlName:Request" , async ( ) => {
704723 const client = new EC2ProtocolClient ( {
724+ ...clientParams ,
705725 requestHandler : new RequestSerializationTestHandler ( ) ,
706726 } ) ;
707727
@@ -739,6 +759,7 @@ it("Ec2ListMemberWithXmlName:Request", async () => {
739759 */
740760it ( "Ec2TimestampsInput:Request" , async ( ) => {
741761 const client = new EC2ProtocolClient ( {
762+ ...clientParams ,
742763 requestHandler : new RequestSerializationTestHandler ( ) ,
743764 } ) ;
744765
@@ -781,6 +802,7 @@ it("Ec2TimestampsInput:Request", async () => {
781802 */
782803it ( "Ec2RecursiveShapes:Response" , async ( ) => {
783804 const client = new EC2ProtocolClient ( {
805+ ...clientParams ,
784806 requestHandler : new ResponseDeserializationTestHandler (
785807 true ,
786808 200 ,
@@ -847,6 +869,7 @@ it("Ec2RecursiveShapes:Response", async () => {
847869 */
848870it ( "Ec2SimpleInputParamsStrings:Request" , async ( ) => {
849871 const client = new EC2ProtocolClient ( {
872+ ...clientParams ,
850873 requestHandler : new RequestSerializationTestHandler ( ) ,
851874 } ) ;
852875
@@ -886,6 +909,7 @@ it("Ec2SimpleInputParamsStrings:Request", async () => {
886909 */
887910it ( "Ec2SimpleInputParamsStringAndBooleanTrue:Request" , async ( ) => {
888911 const client = new EC2ProtocolClient ( {
912+ ...clientParams ,
889913 requestHandler : new RequestSerializationTestHandler ( ) ,
890914 } ) ;
891915
@@ -925,6 +949,7 @@ it("Ec2SimpleInputParamsStringAndBooleanTrue:Request", async () => {
925949 */
926950it ( "Ec2SimpleInputParamsStringsAndBooleanFalse:Request" , async ( ) => {
927951 const client = new EC2ProtocolClient ( {
952+ ...clientParams ,
928953 requestHandler : new RequestSerializationTestHandler ( ) ,
929954 } ) ;
930955
@@ -961,6 +986,7 @@ it("Ec2SimpleInputParamsStringsAndBooleanFalse:Request", async () => {
961986 */
962987it ( "Ec2SimpleInputParamsInteger:Request" , async ( ) => {
963988 const client = new EC2ProtocolClient ( {
989+ ...clientParams ,
964990 requestHandler : new RequestSerializationTestHandler ( ) ,
965991 } ) ;
966992
@@ -997,6 +1023,7 @@ it("Ec2SimpleInputParamsInteger:Request", async () => {
9971023 */
9981024it ( "Ec2SimpleInputParamsFloat:Request" , async ( ) => {
9991025 const client = new EC2ProtocolClient ( {
1026+ ...clientParams ,
10001027 requestHandler : new RequestSerializationTestHandler ( ) ,
10011028 } ) ;
10021029
@@ -1033,6 +1060,7 @@ it("Ec2SimpleInputParamsFloat:Request", async () => {
10331060 */
10341061it ( "Ec2SimpleInputParamsBlob:Request" , async ( ) => {
10351062 const client = new EC2ProtocolClient ( {
1063+ ...clientParams ,
10361064 requestHandler : new RequestSerializationTestHandler ( ) ,
10371065 } ) ;
10381066
@@ -1069,6 +1097,7 @@ it("Ec2SimpleInputParamsBlob:Request", async () => {
10691097 */
10701098it ( "Ec2Enums:Request" , async ( ) => {
10711099 const client = new EC2ProtocolClient ( {
1100+ ...clientParams ,
10721101 requestHandler : new RequestSerializationTestHandler ( ) ,
10731102 } ) ;
10741103
@@ -1105,6 +1134,7 @@ it("Ec2Enums:Request", async () => {
11051134 */
11061135it ( "Ec2Query:Request" , async ( ) => {
11071136 const client = new EC2ProtocolClient ( {
1137+ ...clientParams ,
11081138 requestHandler : new RequestSerializationTestHandler ( ) ,
11091139 } ) ;
11101140
@@ -1141,6 +1171,7 @@ it("Ec2Query:Request", async () => {
11411171 */
11421172it ( "Ec2QueryIsPreferred:Request" , async ( ) => {
11431173 const client = new EC2ProtocolClient ( {
1174+ ...clientParams ,
11441175 requestHandler : new RequestSerializationTestHandler ( ) ,
11451176 } ) ;
11461177
@@ -1177,6 +1208,7 @@ it("Ec2QueryIsPreferred:Request", async () => {
11771208 */
11781209it ( "Ec2XmlNameIsUppercased:Request" , async ( ) => {
11791210 const client = new EC2ProtocolClient ( {
1211+ ...clientParams ,
11801212 requestHandler : new RequestSerializationTestHandler ( ) ,
11811213 } ) ;
11821214
@@ -1213,6 +1245,7 @@ it("Ec2XmlNameIsUppercased:Request", async () => {
12131245 */
12141246it ( "Ec2SimpleScalarProperties:Response" , async ( ) => {
12151247 const client = new EC2ProtocolClient ( {
1248+ ...clientParams ,
12161249 requestHandler : new ResponseDeserializationTestHandler (
12171250 true ,
12181251 200 ,
@@ -1281,6 +1314,7 @@ it("Ec2SimpleScalarProperties:Response", async () => {
12811314 */
12821315it ( "Ec2XmlBlobs:Response" , async ( ) => {
12831316 const client = new EC2ProtocolClient ( {
1317+ ...clientParams ,
12841318 requestHandler : new ResponseDeserializationTestHandler (
12851319 true ,
12861320 200 ,
@@ -1322,6 +1356,7 @@ it("Ec2XmlBlobs:Response", async () => {
13221356 */
13231357it ( "Ec2XmlEnums:Response" , async ( ) => {
13241358 const client = new EC2ProtocolClient ( {
1359+ ...clientParams ,
13251360 requestHandler : new ResponseDeserializationTestHandler (
13261361 true ,
13271362 200 ,
@@ -1397,6 +1432,7 @@ it("Ec2XmlEnums:Response", async () => {
13971432 */
13981433it ( "Ec2XmlLists:Response" , async ( ) => {
13991434 const client = new EC2ProtocolClient ( {
1435+ ...clientParams ,
14001436 requestHandler : new ResponseDeserializationTestHandler (
14011437 true ,
14021438 200 ,
@@ -1525,6 +1561,7 @@ it("Ec2XmlLists:Response", async () => {
15251561 */
15261562it ( "Ec2XmlNamespaces:Response" , async ( ) => {
15271563 const client = new EC2ProtocolClient ( {
1564+ ...clientParams ,
15281565 requestHandler : new ResponseDeserializationTestHandler (
15291566 true ,
15301567 200 ,
@@ -1576,6 +1613,7 @@ it("Ec2XmlNamespaces:Response", async () => {
15761613 */
15771614it ( "Ec2XmlTimestamps:Response" , async ( ) => {
15781615 const client = new EC2ProtocolClient ( {
1616+ ...clientParams ,
15791617 requestHandler : new ResponseDeserializationTestHandler (
15801618 true ,
15811619 200 ,
@@ -1617,6 +1655,7 @@ it("Ec2XmlTimestamps:Response", async () => {
16171655 */
16181656it ( "Ec2XmlTimestampsWithDateTimeFormat:Response" , async ( ) => {
16191657 const client = new EC2ProtocolClient ( {
1658+ ...clientParams ,
16201659 requestHandler : new ResponseDeserializationTestHandler (
16211660 true ,
16221661 200 ,
@@ -1658,6 +1697,7 @@ it("Ec2XmlTimestampsWithDateTimeFormat:Response", async () => {
16581697 */
16591698it ( "Ec2XmlTimestampsWithEpochSecondsFormat:Response" , async ( ) => {
16601699 const client = new EC2ProtocolClient ( {
1700+ ...clientParams ,
16611701 requestHandler : new ResponseDeserializationTestHandler (
16621702 true ,
16631703 200 ,
@@ -1699,6 +1739,7 @@ it("Ec2XmlTimestampsWithEpochSecondsFormat:Response", async () => {
16991739 */
17001740it ( "Ec2XmlTimestampsWithHttpDateFormat:Response" , async ( ) => {
17011741 const client = new EC2ProtocolClient ( {
1742+ ...clientParams ,
17021743 requestHandler : new ResponseDeserializationTestHandler (
17031744 true ,
17041745 200 ,
0 commit comments