cloudwatch-log-alerts/cloudwatch-log-alerts_test.go

27 lines
682 B
Go
Raw Permalink Normal View History

2024-08-09 16:30:53 +01:00
package main
// import (
// "testing"
// "github.com/aws/aws-cdk-go/awscdk/v2"
// "github.com/aws/aws-cdk-go/awscdk/v2/assertions"
// "github.com/aws/jsii-runtime-go"
// )
// example tests. To run these tests, uncomment this file along with the
// example resource in cloudwatch-log-alerts_test.go
// func TestCloudwatchLogAlertsStack(t *testing.T) {
// // GIVEN
// app := awscdk.NewApp(nil)
// // WHEN
// stack := NewCloudwatchLogAlertsStack(app, "MyStack", nil)
// // THEN
// template := assertions.Template_FromStack(stack, nil)
// template.HasResourceProperties(jsii.String("AWS::SQS::Queue"), map[string]interface{}{
// "VisibilityTimeout": 300,
// })
// }