Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit 8d489d6

Browse files
committed
fixup protocol test to require URI path label
1 parent af72cf3 commit 8d489d6

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

models/protocol_tests/input/rest-xml.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,9 @@
17541754
"shapes": {
17551755
"InputShape": {
17561756
"type": "structure",
1757+
"required": [
1758+
"URIFooEnum"
1759+
],
17571760
"members": {
17581761
"HeaderEnum": {
17591762
"shape": "EnumType",
@@ -1824,14 +1827,15 @@
18241827
},
18251828
"http": {
18261829
"method": "POST",
1827-
"requestUri": "/path"
1830+
"requestUri": "/Enum/{URIEnum}"
18281831
},
18291832
"name": "OperationName"
18301833
},
18311834
"params": {
1835+
"URIFooEnum": "bar"
18321836
},
18331837
"serialized": {
1834-
"uri": "/path",
1838+
"uri": "/Enum/bar",
18351839
"headers": {}
18361840
}
18371841
}

private/protocol/restxml/build_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5383,7 +5383,7 @@ func (c *InputService25ProtocolTest) InputService25TestCaseOperation2Request(inp
53835383
op := &request.Operation{
53845384
Name: opInputService25TestCaseOperation2,
53855385
HTTPMethod: "POST",
5386-
HTTPPath: "/path",
5386+
HTTPPath: "/Enum/{URIEnum}",
53875387
}
53885388

53895389
if input == nil {
@@ -7008,7 +7008,9 @@ func TestInputService25ProtocolTestEnumCase1(t *testing.T) {
70087008

70097009
func TestInputService25ProtocolTestEnumCase2(t *testing.T) {
70107010
svc := NewInputService25ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
7011-
input := &InputService25TestShapeInputService25TestCaseOperation2Input{}
7011+
input := &InputService25TestShapeInputService25TestCaseOperation2Input{
7012+
URIFooEnum: aws.String("bar"),
7013+
}
70127014
req, _ := svc.InputService25TestCaseOperation2Request(input)
70137015
r := req.HTTPRequest
70147016

@@ -7019,7 +7021,7 @@ func TestInputService25ProtocolTestEnumCase2(t *testing.T) {
70197021
}
70207022

70217023
// assert URL
7022-
awstesting.AssertURL(t, "https://test/path", r.URL.String())
7024+
awstesting.AssertURL(t, "https://test/Enum/bar", r.URL.String())
70237025

70247026
// assert headers
70257027

0 commit comments

Comments
 (0)