Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AWS::IoT::SecurityProfile #19

Merged
merged 8 commits into from
Dec 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions aws-iot-securityprofile/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# macOS
.DS_Store
._*

# Maven outputs
.classpath

# IntelliJ
*.iml
.idea
out.java
out/
.settings
.project

# auto-generated files
target/

# our logs
rpdk.log

# contains credentials
sam-tests/
22 changes: 22 additions & 0 deletions aws-iot-securityprofile/.rpdk-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"typeName": "AWS::IoT::SecurityProfile",
"language": "java",
"runtime": "java8",
"entrypoint": "com.amazonaws.iot.securityprofile.HandlerWrapper::handleRequest",
"testEntrypoint": "com.amazonaws.iot.securityprofile.HandlerWrapper::testEntrypoint",
"settings": {
"version": false,
"subparser_name": null,
"verbose": 0,
"force": false,
"type_name": null,
"namespace": [
"com",
"amazonaws",
"iot",
"securityprofile"
],
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
}
}
19 changes: 19 additions & 0 deletions aws-iot-securityprofile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# AWS::IoT::SecurityProfile

## Running Contract Tests

You can execute the following commands to run the tests.
You will need to have docker installed and running.

```bash
# Package the code with Maven
mvn package
# Start SAM which will execute lambdas in Docker
sam local start-lambda

# In a separate terminal, run the contract tests
cfn test --enforce-timeout 240

# Execute a single test
cfn test --enforce-timeout 240 -- -k <testname>
```
Loading