Skip to content

Commit

Permalink
Fixes for tests (#28)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Woolum <[email protected]>
  • Loading branch information
cwoolum and Christopher Woolum authored Jan 27, 2024
1 parent 1ce6d5c commit 796ed80
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 13 deletions.
7 changes: 6 additions & 1 deletion aws-amplifyuibuilder-component/.rpdk-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"artifact_type": "RESOURCE",
"typeName": "AWS::AmplifyUIBuilder::Component",
"language": "java",
"runtime": "java8",
"runtime": "java11",
"entrypoint": "software.amazon.amplifyuibuilder.component.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.amplifyuibuilder.component.HandlerWrapper::testEntrypoint",
"settings": {
Expand All @@ -12,6 +12,10 @@
"force": false,
"type_name": null,
"artifact_type": null,
"endpoint_url": null,
"region": null,
"target_schemas": [],
"profile": null,
"namespace": [
"software",
"amazon",
Expand All @@ -21,5 +25,6 @@
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
},
"logProcessorEnabled": "true",
"executableEntrypoint": "software.amazon.amplifyuibuilder.component.HandlerWrapperExecutable"
}
6 changes: 3 additions & 3 deletions aws-amplifyuibuilder-component/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ Description: AWS SAM template for the AWS::AmplifyUIBuilder::Component resource

Globals:
Function:
Timeout: 180 # docker start-up times can be long for SAM CLI
Timeout: 180 # docker start-up times can be long for SAM CLI
MemorySize: 256

Resources:
TypeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.amplifyuibuilder.component.HandlerWrapper::handleRequest
Runtime: java8
Runtime: java11
CodeUri: ./target/aws-amplifyuibuilder-component-handler-1.0-SNAPSHOT.jar

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.amplifyuibuilder.component.HandlerWrapper::testEntrypoint
Runtime: java8
Runtime: java11
CodeUri: ./target/aws-amplifyuibuilder-component-handler-1.0-SNAPSHOT.jar
4 changes: 2 additions & 2 deletions aws-amplifyuibuilder-form/.rpdk-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"artifact_type": "RESOURCE",
"typeName": "AWS::AmplifyUIBuilder::Form",
"language": "java",
"runtime": "java8",
"runtime": "java11",
"entrypoint": "software.amazon.amplifyuibuilder.form.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.amplifyuibuilder.form.HandlerWrapper::testEntrypoint",
"settings": {
Expand All @@ -21,7 +21,7 @@
"amplifyuibuilder",
"form"
],
"codegen_template_path": "default",
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
},
"logProcessorEnabled": "true",
Expand Down
2 changes: 2 additions & 0 deletions aws-amplifyuibuilder-form/aws-amplifyuibuilder-form.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@
"permissions": [
"amplify:GetApp",
"amplifyuibuilder:CreateForm",
"amplifyuibuilder:GetForm",
"amplifyuibuilder:TagResource",
"amplifyuibuilder:UntagResource"
]
Expand All @@ -549,6 +550,7 @@
"update": {
"permissions": [
"amplify:GetApp",
"amplifyuibuilder:GetForm",
"amplifyuibuilder:TagResource",
"amplifyuibuilder:UntagResource",
"amplifyuibuilder:UpdateForm"
Expand Down
6 changes: 3 additions & 3 deletions aws-amplifyuibuilder-form/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ Description: AWS SAM template for the AWS::AmplifyUIBuilder::Form resource type

Globals:
Function:
Timeout: 180 # docker start-up times can be long for SAM CLI
Timeout: 180 # docker start-up times can be long for SAM CLI
MemorySize: 256

Resources:
TypeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.amplifyuibuilder.form.HandlerWrapper::handleRequest
Runtime: java8
Runtime: java11
CodeUri: ./target/aws-amplifyuibuilder-form-1.0.jar

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.amplifyuibuilder.form.HandlerWrapper::testEntrypoint
Runtime: java8
Runtime: java11
CodeUri: ./target/aws-amplifyuibuilder-form-1.0.jar
3 changes: 2 additions & 1 deletion aws-amplifyuibuilder-theme/.rpdk-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"artifact_type": "RESOURCE",
"typeName": "AWS::AmplifyUIBuilder::Theme",
"language": "java",
"runtime": "java8",
"runtime": "java11",
"entrypoint": "software.amazon.amplifyuibuilder.theme.HandlerWrapper::handleRequest",
"testEntrypoint": "software.amazon.amplifyuibuilder.theme.HandlerWrapper::testEntrypoint",
"settings": {
Expand All @@ -21,5 +21,6 @@
"codegen_template_path": "guided_aws",
"protocolVersion": "2.0.0"
},
"logProcessorEnabled": "true",
"executableEntrypoint": "software.amazon.amplifyuibuilder.theme.HandlerWrapperExecutable"
}
2 changes: 2 additions & 0 deletions aws-amplifyuibuilder-theme/aws-amplifyuibuilder-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"permissions": [
"amplify:GetApp",
"amplifyuibuilder:CreateTheme",
"amplifyuibuilder:GetTheme",
"amplifyuibuilder:TagResource"
]
},
Expand All @@ -111,6 +112,7 @@
"update": {
"permissions": [
"amplify:GetApp",
"amplifyuibuilder:GetTheme",
"amplifyuibuilder:TagResource",
"amplifyuibuilder:UntagResource",
"amplifyuibuilder:UpdateTheme"
Expand Down
6 changes: 3 additions & 3 deletions aws-amplifyuibuilder-theme/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ Description: AWS SAM template for the AWS::AmplifyUIBuilder::Theme resource type

Globals:
Function:
Timeout: 180 # docker start-up times can be long for SAM CLI
Timeout: 180 # docker start-up times can be long for SAM CLI
MemorySize: 256

Resources:
TypeFunction:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.amplifyuibuilder.theme.HandlerWrapper::handleRequest
Runtime: java8
Runtime: java11
CodeUri: ./target/aws-amplifyuibuilder-theme-handler-1.0-SNAPSHOT.jar

TestEntrypoint:
Type: AWS::Serverless::Function
Properties:
Handler: software.amazon.amplifyuibuilder.theme.HandlerWrapper::testEntrypoint
Runtime: java8
Runtime: java11
CodeUri: ./target/aws-amplifyuibuilder-theme-handler-1.0-SNAPSHOT.jar

0 comments on commit 796ed80

Please sign in to comment.