-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for service with MultiAuth only and not using Sigv4
- Loading branch information
Showing
9 changed files
with
337 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...nerated-classes-test/src/main/resources/codegen-resources/sigv4aonly/customization.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"skipEndpointTestGeneration": true | ||
} |
69 changes: 69 additions & 0 deletions
69
...rated-classes-test/src/main/resources/codegen-resources/sigv4aonly/endpoint-rule-set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"version": "1.3", | ||
"parameters": { | ||
"Region": { | ||
"builtIn": "AWS::Region", | ||
"required": true, | ||
"documentation": "The AWS region used to dispatch the request.", | ||
"type": "String" | ||
}, | ||
"ApiType": { | ||
"required": true, | ||
"documentation": "Parameter to determine whether current API is a control plane or dataplane API", | ||
"type": "String" | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "stringEquals", | ||
"argv": [ | ||
{ | ||
"ref": "ApiType" | ||
}, | ||
"onlySigv4a" | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "https://only-region.{Region}.on.aws", | ||
"properties": { | ||
"authSchemes": [ | ||
{ | ||
"name": "sigv4a", | ||
"signingName": "from-endpoint-params", | ||
"signingRegionSet": [ | ||
"*" | ||
] | ||
} | ||
] | ||
}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "stringEquals", | ||
"argv": [ | ||
{ | ||
"ref": "ApiType" | ||
}, | ||
"NoEndpointSigningProperties" | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "https://only-region.{Region}.on.aws", | ||
"properties": { | ||
"authSchemes": [ | ||
] | ||
}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
...enerated-classes-test/src/main/resources/codegen-resources/sigv4aonly/endpoint-tests.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"testCases": [ | ||
], | ||
"version": "1.0" | ||
} |
51 changes: 51 additions & 0 deletions
51
...gen-generated-classes-test/src/main/resources/codegen-resources/sigv4aonly/service-2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"version":"2.0", | ||
"metadata":{ | ||
"apiVersion":"2016-03-11", | ||
"endpointPrefix":"internalconfig", | ||
"jsonVersion":"1.1", | ||
"protocol":"rest-json", | ||
"serviceAbbreviation":"AwsSigv4aMultiAuthService", | ||
"serviceFullName":"AWS Multi Auth Service", | ||
"serviceId":"Sigv4aauth", | ||
"targetPrefix":"Sigv4aauth", | ||
"auth":["aws.auth#sigv4a"], | ||
"timestampFormat":"unixTimestamp", | ||
"uid":"restjson-2016-03-11" | ||
}, | ||
"operations":{ | ||
"simpleOperationWithNoEndpointParams":{ | ||
"name":"simpleOperationWithNoEndpointParams", | ||
"http":{ | ||
"method":"POST", | ||
"requestUri":"/2016-03-11/simpleOperationWithNoEndpointParams" | ||
}, | ||
"input":{"shape":"sampleRequest"}, | ||
"staticContextParams":{ | ||
"ApiType":{"value":"NoEndpointSigningProperties"} | ||
} | ||
}, | ||
"simpleOperationWithEndpointParams":{ | ||
"name":"simpleOperationWithEndpointParams", | ||
"http":{ | ||
"method":"POST", | ||
"requestUri":"/2016-03-11/multiAuthWithOnlySigv4aAndSigv4" | ||
}, | ||
"input":{"shape":"sampleRequest"}, | ||
"staticContextParams":{ | ||
"ApiType":{"value":"onlySigv4a"} | ||
} | ||
} | ||
}, | ||
"shapes": { | ||
"sampleRequest": { | ||
"type": "structure", | ||
"members": { | ||
"StringMember": { | ||
"shape": "String" | ||
} | ||
} | ||
}, | ||
"String":{"type":"string"} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.