@@ -176,7 +176,7 @@ it("Ec2QueryEmptyInputAndEmptyOutput:Request", async () => {
176
176
expect ( r . body ) . toBeDefined ( ) ;
177
177
const bodyString = `Action=EmptyInputAndEmptyOutput
178
178
&Version=2020-01-08` ;
179
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
179
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
180
180
expect ( unequalParts ) . toBeUndefined ( ) ;
181
181
}
182
182
} ) ;
@@ -449,7 +449,7 @@ it("Ec2NestedStructures:Request", async () => {
449
449
&Nested.StringArg=foo
450
450
&Nested.OtherArg=true
451
451
&Nested.RecursiveArg.StringArg=baz` ;
452
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
452
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
453
453
expect ( unequalParts ) . toBeUndefined ( ) ;
454
454
}
455
455
} ) ;
@@ -483,7 +483,7 @@ it("Ec2QueryNoInputAndOutput:Request", async () => {
483
483
expect ( r . body ) . toBeDefined ( ) ;
484
484
const bodyString = `Action=NoInputAndOutput
485
485
&Version=2020-01-08` ;
486
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
486
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
487
487
expect ( unequalParts ) . toBeUndefined ( ) ;
488
488
}
489
489
} ) ;
@@ -553,7 +553,7 @@ it("Ec2ProtocolIdempotencyTokenAutoFill:Request", async () => {
553
553
const bodyString = `Action=QueryIdempotencyTokenAutoFill
554
554
&Version=2020-01-08
555
555
&Token=00000000-0000-4000-8000-000000000000` ;
556
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
556
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
557
557
expect ( unequalParts ) . toBeUndefined ( ) ;
558
558
}
559
559
} ) ;
@@ -591,7 +591,7 @@ it("Ec2ProtocolIdempotencyTokenAutoFillIsSet:Request", async () => {
591
591
const bodyString = `Action=QueryIdempotencyTokenAutoFill
592
592
&Version=2020-01-08
593
593
&Token=00000000-0000-4000-8000-000000000123` ;
594
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
594
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
595
595
expect ( unequalParts ) . toBeUndefined ( ) ;
596
596
}
597
597
} ) ;
@@ -642,7 +642,7 @@ it("Ec2Lists:Request", async () => {
642
642
&ListArg.3=baz
643
643
&ComplexListArg.1.Hi=hello
644
644
&ComplexListArg.2.Hi=hola` ;
645
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
645
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
646
646
expect ( unequalParts ) . toBeUndefined ( ) ;
647
647
}
648
648
} ) ;
@@ -678,7 +678,7 @@ it("Ec2EmptyQueryLists:Request", async () => {
678
678
expect ( r . body ) . toBeDefined ( ) ;
679
679
const bodyString = `Action=QueryLists
680
680
&Version=2020-01-08` ;
681
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
681
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
682
682
expect ( unequalParts ) . toBeUndefined ( ) ;
683
683
}
684
684
} ) ;
@@ -716,7 +716,7 @@ it("Ec2ListArgWithXmlNameMember:Request", async () => {
716
716
&Version=2020-01-08
717
717
&ListArgWithXmlNameMember.1=A
718
718
&ListArgWithXmlNameMember.2=B` ;
719
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
719
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
720
720
expect ( unequalParts ) . toBeUndefined ( ) ;
721
721
}
722
722
} ) ;
@@ -754,7 +754,7 @@ it("Ec2ListMemberWithXmlName:Request", async () => {
754
754
&Version=2020-01-08
755
755
&Hi.1=A
756
756
&Hi.2=B` ;
757
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
757
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
758
758
expect ( unequalParts ) . toBeUndefined ( ) ;
759
759
}
760
760
} ) ;
@@ -798,7 +798,7 @@ it("Ec2TimestampsInput:Request", async () => {
798
798
&NormalFormat=2015-01-25T08%3A00%3A00Z
799
799
&EpochMember=1422172800
800
800
&EpochTarget=1422172800` ;
801
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
801
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
802
802
expect ( unequalParts ) . toBeUndefined ( ) ;
803
803
}
804
804
} ) ;
@@ -906,7 +906,7 @@ it("Ec2SimpleInputParamsStrings:Request", async () => {
906
906
&Version=2020-01-08
907
907
&Foo=val1
908
908
&Bar=val2` ;
909
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
909
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
910
910
expect ( unequalParts ) . toBeUndefined ( ) ;
911
911
}
912
912
} ) ;
@@ -947,7 +947,7 @@ it("Ec2SimpleInputParamsStringAndBooleanTrue:Request", async () => {
947
947
&Version=2020-01-08
948
948
&Foo=val1
949
949
&Baz=true` ;
950
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
950
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
951
951
expect ( unequalParts ) . toBeUndefined ( ) ;
952
952
}
953
953
} ) ;
@@ -985,7 +985,7 @@ it("Ec2SimpleInputParamsStringsAndBooleanFalse:Request", async () => {
985
985
const bodyString = `Action=SimpleInputParams
986
986
&Version=2020-01-08
987
987
&Baz=false` ;
988
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
988
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
989
989
expect ( unequalParts ) . toBeUndefined ( ) ;
990
990
}
991
991
} ) ;
@@ -1023,7 +1023,7 @@ it("Ec2SimpleInputParamsInteger:Request", async () => {
1023
1023
const bodyString = `Action=SimpleInputParams
1024
1024
&Version=2020-01-08
1025
1025
&Bam=10` ;
1026
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1026
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1027
1027
expect ( unequalParts ) . toBeUndefined ( ) ;
1028
1028
}
1029
1029
} ) ;
@@ -1061,7 +1061,7 @@ it("Ec2SimpleInputParamsFloat:Request", async () => {
1061
1061
const bodyString = `Action=SimpleInputParams
1062
1062
&Version=2020-01-08
1063
1063
&Boo=10.8` ;
1064
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1064
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1065
1065
expect ( unequalParts ) . toBeUndefined ( ) ;
1066
1066
}
1067
1067
} ) ;
@@ -1099,7 +1099,7 @@ it("Ec2SimpleInputParamsBlob:Request", async () => {
1099
1099
const bodyString = `Action=SimpleInputParams
1100
1100
&Version=2020-01-08
1101
1101
&Qux=dmFsdWU%3D` ;
1102
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1102
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1103
1103
expect ( unequalParts ) . toBeUndefined ( ) ;
1104
1104
}
1105
1105
} ) ;
@@ -1137,7 +1137,7 @@ it("Ec2Enums:Request", async () => {
1137
1137
const bodyString = `Action=SimpleInputParams
1138
1138
&Version=2020-01-08
1139
1139
&FooEnum=Foo` ;
1140
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1140
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1141
1141
expect ( unequalParts ) . toBeUndefined ( ) ;
1142
1142
}
1143
1143
} ) ;
@@ -1175,7 +1175,7 @@ it("Ec2Query:Request", async () => {
1175
1175
const bodyString = `Action=SimpleInputParams
1176
1176
&Version=2020-01-08
1177
1177
&A=Hi` ;
1178
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1178
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1179
1179
expect ( unequalParts ) . toBeUndefined ( ) ;
1180
1180
}
1181
1181
} ) ;
@@ -1213,7 +1213,7 @@ it("Ec2QueryIsPreferred:Request", async () => {
1213
1213
const bodyString = `Action=SimpleInputParams
1214
1214
&Version=2020-01-08
1215
1215
&B=Hi` ;
1216
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1216
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1217
1217
expect ( unequalParts ) . toBeUndefined ( ) ;
1218
1218
}
1219
1219
} ) ;
@@ -1251,7 +1251,7 @@ it("Ec2XmlNameIsUppercased:Request", async () => {
1251
1251
const bodyString = `Action=SimpleInputParams
1252
1252
&Version=2020-01-08
1253
1253
&C=Hi` ;
1254
- const unequalParts : any = compareEquivalentBodies ( bodyString , r . body . toString ( ) ) ;
1254
+ const unequalParts : any = compareEquivalentFormUrlencodedBodies ( bodyString , r . body . toString ( ) ) ;
1255
1255
expect ( unequalParts ) . toBeUndefined ( ) ;
1256
1256
}
1257
1257
} ) ;
@@ -1932,7 +1932,7 @@ it("Ec2XmlTimestampsWithHttpDateFormat:Response", async () => {
1932
1932
* Returns a map of key names that were un-equal to value objects showing the
1933
1933
* discrepancies between the components.
1934
1934
*/
1935
- const compareEquivalentBodies = ( expectedBody : string , generatedBody : string ) : Object => {
1935
+ const compareEquivalentFormUrlencodedBodies = ( expectedBody : string , generatedBody : string ) : Object => {
1936
1936
const fromEntries = ( components : string [ ] [ ] ) : { [ key : string ] : string } => {
1937
1937
const parts : { [ key : string ] : string } = { } ;
1938
1938
0 commit comments