Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: protocol test codegen project + service clients (#1058)
* Add project for protocol test codegen This commit adds a separate Gradle project that depends on the published version of the smithy-aws-protocol-tests. This new project contains 1 projection for each protocol, generating the full AWS SDK for JS V3 client and test suite for each contained service. * Add generated protocol tests This commit adds the protocol tests generated by the protocol-test-codegen project to the repository. It enables their building and running through the use of new package level commands, build:protocols and test:protocols.
- Loading branch information
Showing
198 changed files
with
48,098 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
import software.amazon.smithy.gradle.tasks.SmithyBuild | ||
|
||
plugins { | ||
id("software.amazon.smithy") version "0.4.3" | ||
} | ||
|
||
dependencies { | ||
implementation("software.amazon.smithy:smithy-aws-protocol-tests:0.9.8") | ||
compile(project(":smithy-aws-typescript-codegen")) | ||
} | ||
|
||
// This project doesn't produce a JAR. | ||
tasks["jar"].enabled = false | ||
|
||
// Run the SmithyBuild task manually since this project needs the built JAR | ||
// from smithy-aws-typescript-codegen. | ||
tasks["smithyBuildJar"].enabled = false | ||
|
||
tasks.create<SmithyBuild>("buildSdk") { | ||
addRuntimeClasspath = true | ||
} | ||
|
||
// Run the `buildSdk` automatically. | ||
tasks["build"].finalizedBy(tasks["buildSdk"]) |
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,105 @@ | ||
{ | ||
"version": "1.0", | ||
"projections": { | ||
"aws-ec2": { | ||
"transforms": [ | ||
{"name": "includeServices", "args": ["aws.protocols.tests.ec2#AwsEc2"]} | ||
], | ||
"plugins": { | ||
"typescript-codegen": { | ||
"package": "@aws-sdk/protocol-tests-aws-ec2", | ||
"packageVersion": "1.0.0-alpha.1", | ||
"packageJson": { | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0" | ||
}, | ||
"protocol": "aws.ec2", | ||
"private": true | ||
} | ||
} | ||
}, | ||
"aws-json": { | ||
"transforms": [ | ||
{"name": "includeServices", "args": ["aws.protocols.tests.json#JsonProtocol"]} | ||
], | ||
"plugins": { | ||
"typescript-codegen": { | ||
"package": "@aws-sdk/protocol-tests-aws-json", | ||
"packageVersion": "1.0.0-alpha.1", | ||
"packageJson": { | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0" | ||
}, | ||
"protocol": "aws.json-1.1", | ||
"private": true | ||
} | ||
} | ||
}, | ||
"aws-query": { | ||
"transforms": [ | ||
{"name": "includeServices", "args": ["aws.protocols.tests.query#AwsQuery"]} | ||
], | ||
"plugins": { | ||
"typescript-codegen": { | ||
"package": "@aws-sdk/protocol-tests-aws-query", | ||
"packageVersion": "1.0.0-alpha.1", | ||
"packageJson": { | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0" | ||
}, | ||
"protocol": "aws.query", | ||
"private": true | ||
} | ||
} | ||
}, | ||
"aws-restjson": { | ||
"transforms": [ | ||
{"name": "includeServices", "args": ["aws.protocols.tests.restjson#RestJson"]} | ||
], | ||
"plugins": { | ||
"typescript-codegen": { | ||
"package": "@aws-sdk/protocol-tests-aws-restjson", | ||
"packageVersion": "1.0.0-alpha.1", | ||
"packageJson": { | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0" | ||
}, | ||
"protocol": "aws.rest-json-1.1", | ||
"private": true | ||
} | ||
} | ||
}, | ||
"aws-restxml": { | ||
"transforms": [ | ||
{"name": "includeServices", "args": ["aws.protocols.tests.restxml#RestXml"]} | ||
], | ||
"plugins": { | ||
"typescript-codegen": { | ||
"package": "@aws-sdk/protocol-tests-aws-restxml", | ||
"packageVersion": "1.0.0-alpha.1", | ||
"packageJson": { | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0" | ||
}, | ||
"protocol": "aws.rest-xml", | ||
"private": true | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.