MCPcopy Create free account
hub / github.com/aws-samples/aws-cdk-examples / TestSqsLambdaStack

Function TestSqsLambdaStack

go/sqs-lambda/sqs-lambda_test.go:11–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func 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}

Callers

nothing calls this directly

Calls 1

NewSqsLambdaStackFunction · 0.85

Tested by

no test coverage detected