@typespec/http-specs 0.1.0-alpha.28-dev.0 → 0.1.0-alpha.28-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,6 +93,34 @@ Scenarios.Encode_Duration_Property_floatMillisecondsArray = createBodyServerTest
|
|
|
93
93
|
},
|
|
94
94
|
[35625, 46750],
|
|
95
95
|
);
|
|
96
|
+
Scenarios.Encode_Duration_Property_int32SecondsLargerUnit = createBodyServerTests(
|
|
97
|
+
"/encode/duration/property/int32-seconds-larger-unit",
|
|
98
|
+
{
|
|
99
|
+
value: 120,
|
|
100
|
+
},
|
|
101
|
+
120,
|
|
102
|
+
);
|
|
103
|
+
Scenarios.Encode_Duration_Property_floatSecondsLargerUnit = createBodyServerTests(
|
|
104
|
+
"/encode/duration/property/float-seconds-larger-unit",
|
|
105
|
+
{
|
|
106
|
+
value: 150.0,
|
|
107
|
+
},
|
|
108
|
+
150.0,
|
|
109
|
+
);
|
|
110
|
+
Scenarios.Encode_Duration_Property_int32MillisecondsLargerUnit = createBodyServerTests(
|
|
111
|
+
"/encode/duration/property/int32-milliseconds-larger-unit",
|
|
112
|
+
{
|
|
113
|
+
value: 180000,
|
|
114
|
+
},
|
|
115
|
+
180000,
|
|
116
|
+
);
|
|
117
|
+
Scenarios.Encode_Duration_Property_floatMillisecondsLargerUnit = createBodyServerTests(
|
|
118
|
+
"/encode/duration/property/float-milliseconds-larger-unit",
|
|
119
|
+
{
|
|
120
|
+
value: 210000.0,
|
|
121
|
+
},
|
|
122
|
+
210000.0,
|
|
123
|
+
);
|
|
96
124
|
|
|
97
125
|
function createQueryServerTests(
|
|
98
126
|
uri: string,
|
|
@@ -191,6 +219,34 @@ Scenarios.Encode_Duration_Query_int32MillisecondsArray = createQueryServerTests(
|
|
|
191
219
|
["36000", "47000"],
|
|
192
220
|
"csv",
|
|
193
221
|
);
|
|
222
|
+
Scenarios.Encode_Duration_Query_int32SecondsLargerUnit = createQueryServerTests(
|
|
223
|
+
"/encode/duration/query/int32-seconds-larger-unit",
|
|
224
|
+
{
|
|
225
|
+
input: 120,
|
|
226
|
+
},
|
|
227
|
+
"120",
|
|
228
|
+
);
|
|
229
|
+
Scenarios.Encode_Duration_Query_floatSecondsLargerUnit = createQueryServerTests(
|
|
230
|
+
"/encode/duration/query/float-seconds-larger-unit",
|
|
231
|
+
{
|
|
232
|
+
input: 150.0,
|
|
233
|
+
},
|
|
234
|
+
"150.0",
|
|
235
|
+
);
|
|
236
|
+
Scenarios.Encode_Duration_Query_int32MillisecondsLargerUnit = createQueryServerTests(
|
|
237
|
+
"/encode/duration/query/int32-milliseconds-larger-unit",
|
|
238
|
+
{
|
|
239
|
+
input: 180000,
|
|
240
|
+
},
|
|
241
|
+
"180000",
|
|
242
|
+
);
|
|
243
|
+
Scenarios.Encode_Duration_Query_floatMillisecondsLargerUnit = createQueryServerTests(
|
|
244
|
+
"/encode/duration/query/float-milliseconds-larger-unit",
|
|
245
|
+
{
|
|
246
|
+
input: 210000.0,
|
|
247
|
+
},
|
|
248
|
+
"210000.0",
|
|
249
|
+
);
|
|
194
250
|
|
|
195
251
|
function createHeaderServerTests(uri: string, headersData: any, value: any) {
|
|
196
252
|
return passOnSuccess({
|
|
@@ -277,3 +333,31 @@ Scenarios.Encode_Duration_Header_int32MillisecondsArray = createHeaderServerTest
|
|
|
277
333
|
},
|
|
278
334
|
"36000,47000",
|
|
279
335
|
);
|
|
336
|
+
Scenarios.Encode_Duration_Header_int32SecondsLargerUnit = createHeaderServerTests(
|
|
337
|
+
"/encode/duration/header/int32-seconds-larger-unit",
|
|
338
|
+
{
|
|
339
|
+
duration: "120",
|
|
340
|
+
},
|
|
341
|
+
"120",
|
|
342
|
+
);
|
|
343
|
+
Scenarios.Encode_Duration_Header_floatSecondsLargerUnit = createHeaderServerTests(
|
|
344
|
+
"/encode/duration/header/float-seconds-larger-unit",
|
|
345
|
+
{
|
|
346
|
+
duration: "150.0",
|
|
347
|
+
},
|
|
348
|
+
"150.0",
|
|
349
|
+
);
|
|
350
|
+
Scenarios.Encode_Duration_Header_int32MillisecondsLargerUnit = createHeaderServerTests(
|
|
351
|
+
"/encode/duration/header/int32-milliseconds-larger-unit",
|
|
352
|
+
{
|
|
353
|
+
duration: "180000",
|
|
354
|
+
},
|
|
355
|
+
"180000",
|
|
356
|
+
);
|
|
357
|
+
Scenarios.Encode_Duration_Header_floatMillisecondsLargerUnit = createHeaderServerTests(
|
|
358
|
+
"/encode/duration/header/float-milliseconds-larger-unit",
|
|
359
|
+
{
|
|
360
|
+
duration: "210000.0",
|
|
361
|
+
},
|
|
362
|
+
"210000.0",
|
|
363
|
+
);
|