Skip to content

Commit

Permalink
Merge pull request #471 from skmcgrail/improveTestCases
Browse files Browse the repository at this point in the history
Modify float and double values to have explicit decimal values
  • Loading branch information
JordonPhillips authored Jun 23, 2020
2 parents 319dee7 + 0725a1e commit 57eff20
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 40 deletions.
16 changes: 8 additions & 8 deletions smithy-aws-protocol-tests/model/restJson1/http-headers.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
Expand All @@ -67,8 +67,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
Expand Down Expand Up @@ -150,8 +150,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
Expand All @@ -160,8 +160,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
Expand Down
6 changes: 3 additions & 3 deletions smithy-aws-protocol-tests/model/restJson1/http-labels.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ apply HttpRequestWithLabels @httpRequestTests([
documentation: "Sends a GET request that uses URI label bindings",
protocol: restJson1,
method: "GET",
uri: "/HttpRequestWithLabels/string/1/2/3/4.0/5.0/true/2019-12-16T23%3A48%3A18Z",
uri: "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z",
body: "",
params: {
string: "string",
short: 1,
integer: 2,
long: 3,
float: 4.0,
double: 5.0,
float: 4.1,
double: 5.1,
boolean: true,
timestamp: 1576540098
}
Expand Down
18 changes: 9 additions & 9 deletions smithy-aws-protocol-tests/model/restJson1/http-query.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ apply AllQueryStringTypes @httpRequestTests([
"IntegerSet=2",
"IntegerSet=3",
"Long=4",
"Float=1",
"Double=1",
"DoubleList=1.0",
"DoubleList=2.0",
"DoubleList=3.0",
"Float=1.1",
"Double=1.1",
"DoubleList=1.1",
"DoubleList=2.1",
"DoubleList=3.1",
"Boolean=true",
"BooleanList=true",
"BooleanList=false",
"BooleanList=true",
"Timestamp=1",
"Timestamp=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A02Z",
"TimestampList=1970-01-01T00%3A00%3A03Z",
Expand All @@ -79,9 +79,9 @@ apply AllQueryStringTypes @httpRequestTests([
queryIntegerList: [1, 2, 3],
queryIntegerSet: [1, 2, 3],
queryLong: 4,
queryFloat: 1,
queryDouble: 1,
queryDoubleList: [1.0, 2.0, 3.0],
queryFloat: 1.1,
queryDouble: 1.1,
queryDoubleList: [1.1, 2.1, 3.1],
queryBoolean: true,
queryBooleanList: [true, false, true],
queryTimestamp: 1,
Expand Down
16 changes: 8 additions & 8 deletions smithy-aws-protocol-tests/model/restXml/http-headers.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
Expand All @@ -67,8 +67,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
Expand Down Expand Up @@ -150,8 +150,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
Expand All @@ -160,8 +160,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
Expand Down
6 changes: 3 additions & 3 deletions smithy-aws-protocol-tests/model/restXml/http-labels.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ apply HttpRequestWithLabels @httpRequestTests([
documentation: "Sends a GET request that uses URI label bindings",
protocol: restXml,
method: "GET",
uri: "/HttpRequestWithLabels/string/1/2/3/4.0/5.0/true/2019-12-16T23%3A48%3A18Z",
uri: "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z",
body: "",
params: {
string: "string",
short: 1,
integer: 2,
long: 3,
float: 4.0,
double: 5.0,
float: 4.1,
double: 5.1,
boolean: true,
timestamp: 1576540098
}
Expand Down
18 changes: 9 additions & 9 deletions smithy-aws-protocol-tests/model/restXml/http-query.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ apply AllQueryStringTypes @httpRequestTests([
"IntegerSet=2",
"IntegerSet=3",
"Long=4",
"Float=1",
"Double=1",
"DoubleList=1.0",
"DoubleList=2.0",
"DoubleList=3.0",
"Float=1.1",
"Double=1.1",
"DoubleList=1.1",
"DoubleList=2.1",
"DoubleList=3.1",
"Boolean=true",
"BooleanList=true",
"BooleanList=false",
"BooleanList=true",
"Timestamp=1",
"Timestamp=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A02Z",
"TimestampList=1970-01-01T00%3A00%3A03Z",
Expand All @@ -79,9 +79,9 @@ apply AllQueryStringTypes @httpRequestTests([
queryIntegerList: [1, 2, 3],
queryIntegerSet: [1, 2, 3],
queryLong: 4,
queryFloat: 1,
queryDouble: 1,
queryDoubleList: [1.0, 2.0, 3.0],
queryFloat: 1.1,
queryDouble: 1.1,
queryDoubleList: [1.1, 2.1, 3.1],
queryBoolean: true,
queryBooleanList: [true, false, true],
queryTimestamp: 1,
Expand Down

0 comments on commit 57eff20

Please sign in to comment.