Skip to content

Commit 43664fd

Browse files
committed
Generate alert configuration resource and add acc tests
1 parent 5c5db8a commit 43664fd

File tree

7 files changed

+1893
-0
lines changed

7 files changed

+1893
-0
lines changed

.github/workflows/acceptance-tests-runner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ jobs:
299299
- 'internal/provider/*.go'
300300
autogen_fast:
301301
- 'internal/common/autogen/*.go'
302+
- 'internal/serviceapi/alertconfigurationapi/*.go'
302303
- 'internal/serviceapi/auditingapi/*.go'
303304
- 'internal/serviceapi/customdbroleapi/*.go'
304305
- 'internal/serviceapi/databaseuserapi/*.go'
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package alertconfigurationapi_test
2+
3+
import (
4+
"os"
5+
"testing"
6+
7+
"github.com/mongodb/terraform-provider-mongodbatlas/internal/testutil/acc"
8+
)
9+
10+
func TestMain(m *testing.M) {
11+
cleanup := acc.SetupSharedResources()
12+
exitCode := m.Run()
13+
cleanup()
14+
os.Exit(exitCode)
15+
}

internal/serviceapi/alertconfigurationapi/resource.go

Lines changed: 149 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)