@@ -1057,67 +1057,6 @@ class ServerProtocolTestGenerator(
1057
1057
// or because they are flaky
1058
1058
private val DisableTests = setOf<String >()
1059
1059
1060
- private fun fixRestJsonSupportsNaNFloatQueryValues (
1061
- testCase : HttpRequestTestCase ,
1062
- @Suppress(" UNUSED_PARAMETER" )
1063
- operationShape : OperationShape ,
1064
- ): HttpRequestTestCase {
1065
- val params = Node .parse(
1066
- """
1067
- {
1068
- "queryFloat": "NaN",
1069
- "queryDouble": "NaN",
1070
- "queryParamsMapOfStringList": {
1071
- "Float": ["NaN"],
1072
- "Double": ["NaN"]
1073
- }
1074
- }
1075
- """ .trimIndent(),
1076
- ).asObjectNode().get()
1077
-
1078
- return testCase.toBuilder().params(params).build()
1079
- }
1080
-
1081
- private fun fixRestJsonSupportsInfinityFloatQueryValues (
1082
- testCase : HttpRequestTestCase ,
1083
- @Suppress(" UNUSED_PARAMETER" )
1084
- operationShape : OperationShape ,
1085
- ): HttpRequestTestCase =
1086
- testCase.toBuilder().params(
1087
- Node .parse(
1088
- """
1089
- {
1090
- "queryFloat": "Infinity",
1091
- "queryDouble": "Infinity",
1092
- "queryParamsMapOfStringList": {
1093
- "Float": ["Infinity"],
1094
- "Double": ["Infinity"]
1095
- }
1096
- }
1097
- """ .trimMargin(),
1098
- ).asObjectNode().get(),
1099
- ).build()
1100
-
1101
- private fun fixRestJsonSupportsNegativeInfinityFloatQueryValues (
1102
- testCase : HttpRequestTestCase ,
1103
- @Suppress(" UNUSED_PARAMETER" )
1104
- operationShape : OperationShape ,
1105
- ): HttpRequestTestCase =
1106
- testCase.toBuilder().params(
1107
- Node .parse(
1108
- """
1109
- {
1110
- "queryFloat": "-Infinity",
1111
- "queryDouble": "-Infinity",
1112
- "queryParamsMapOfStringList": {
1113
- "Float": ["-Infinity"],
1114
- "Double": ["-Infinity"]
1115
- }
1116
- }
1117
- """ .trimMargin(),
1118
- ).asObjectNode().get(),
1119
- ).build()
1120
-
1121
1060
private fun fixRestJsonAllQueryStringTypes (
1122
1061
testCase : HttpRequestTestCase ,
1123
1062
@Suppress(" UNUSED_PARAMETER" )
@@ -1226,14 +1165,9 @@ class ServerProtocolTestGenerator(
1226
1165
// This is because they have not been written from a server perspective, and as such the expected `params` field is incomplete.
1227
1166
// TODO(https://github.com/awslabs/smithy-rs/issues/1288): Contribute a PR to fix them upstream.
1228
1167
private val BrokenRequestTests = mapOf (
1229
- // https://github.com/awslabs/smithy/pull/1040
1230
- Pair (RestJson , " RestJsonSupportsNaNFloatQueryValues" ) to ::fixRestJsonSupportsNaNFloatQueryValues,
1231
- Pair (RestJson , " RestJsonSupportsInfinityFloatQueryValues" ) to ::fixRestJsonSupportsInfinityFloatQueryValues,
1232
- Pair (
1233
- RestJson ,
1234
- " RestJsonSupportsNegativeInfinityFloatQueryValues" ,
1235
- ) to ::fixRestJsonSupportsNegativeInfinityFloatQueryValues,
1168
+ // TODO(https://github.com/awslabs/smithy/pull/1564)
1236
1169
Pair (RestJson , " RestJsonAllQueryStringTypes" ) to ::fixRestJsonAllQueryStringTypes,
1170
+ // TODO(https://github.com/awslabs/smithy/pull/1562)
1237
1171
Pair (RestJson , " RestJsonQueryStringEscaping" ) to ::fixRestJsonQueryStringEscaping,
1238
1172
1239
1173
// https://github.com/awslabs/smithy/pull/1392
0 commit comments