(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestEc2InstanceStack(t *testing.T) { |
| 12 | // GIVEN |
| 13 | app := awscdk.NewApp(nil) |
| 14 | |
| 15 | // WHEN |
| 16 | stack := NewEc2InstanceStack(app, "MyStack", nil) |
| 17 | |
| 18 | // THEN |
| 19 | template := assertions.Template_FromStack(stack, nil) |
| 20 | |
| 21 | template.HasResourceProperties(jsii.String("AWS::SQS::Queue"), map[string]interface{}{ |
| 22 | "VisibilityTimeout": 300, |
| 23 | }) |
| 24 | template.ResourceCountIs(jsii.String("AWS::SNS::Topic"), jsii.Number(1)) |
| 25 | } |
nothing calls this directly
no test coverage detected