(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestSqsLambdaStack(t *testing.T) { |
| 12 | // GIVEN |
| 13 | app := awscdk.NewApp(nil) |
| 14 | |
| 15 | // WHEN |
| 16 | stack := NewSqsLambdaStack(app, "MyStack", nil) |
| 17 | |
| 18 | // THEN |
| 19 | template := assertions.Template_FromStack(stack, nil) |
| 20 | |
| 21 | template.HasResourceProperties(jsii.String("AWS::Lambda::Function"), map[string]interface{}{ |
| 22 | "Runtime": "provided.al2", |
| 23 | }) |
| 24 | |
| 25 | template.HasResourceProperties(jsii.String("AWS::SQS::Queue"), map[string]interface{}{ |
| 26 | "VisibilityTimeout": 300, |
| 27 | }) |
| 28 | } |
nothing calls this directly
no test coverage detected