Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fixes region and aws account to be used for trigger acc test #1558

Merged
merged 8 commits into from
Oct 30, 2023
13 changes: 7 additions & 6 deletions mongodbatlas/resource_mongodbatlas_event_trigger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"log"
"os"
"strings"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/acctest"
Expand Down Expand Up @@ -82,8 +83,8 @@ func TestAccConfigRSEventTriggerDatabase_eventProccesor(t *testing.T) {
var (
resourceName = "mongodbatlas_event_trigger.test"
projectID = os.Getenv("MONGODB_ATLAS_PROJECT_ID")
awsAccountID = os.Getenv("AWS_ACCOUNT_ID")
awsRegion = os.Getenv("AWS_REGION")
awsAccountID = os.Getenv("AWS_EVENTBRIDGE_ACCOUNT_ID")
marcosuma marked this conversation as resolved.
Show resolved Hide resolved
awsRegion = strings.ReplaceAll(strings.ToLower(os.Getenv("AWS_REGION")), "_", "-")
appID = os.Getenv("MONGODB_REALM_APP_ID")
eventResp = realm.EventTrigger{}
)
Expand Down Expand Up @@ -207,8 +208,8 @@ func TestAccConfigRSEventTriggerAuth_eventProcessor(t *testing.T) {
var (
resourceName = "mongodbatlas_event_trigger.test"
projectID = os.Getenv("MONGODB_ATLAS_PROJECT_ID")
awsAccountID = os.Getenv("AWS_ACCOUNT_ID")
awsRegion = os.Getenv("AWS_REGION")
awsAccountID = os.Getenv("AWS_EVENTBRIDGE_ACCOUNT_ID")
awsRegion = strings.ReplaceAll(strings.ToLower(os.Getenv("AWS_REGION")), "_", "-")
marcosuma marked this conversation as resolved.
Show resolved Hide resolved
appID = os.Getenv("MONGODB_REALM_APP_ID")
eventResp = realm.EventTrigger{}
)
Expand Down Expand Up @@ -324,8 +325,8 @@ func TestAccConfigRSEventTriggerSchedule_eventProcessor(t *testing.T) {
var (
resourceName = "mongodbatlas_event_trigger.test"
projectID = os.Getenv("MONGODB_ATLAS_PROJECT_ID")
awsAccountID = os.Getenv("AWS_ACCOUNT_ID")
awsRegion = os.Getenv("AWS_REGION")
awsAccountID = os.Getenv("AWS_EVENTBRIDGE_ACCOUNT_ID")
awsRegion = strings.ReplaceAll(strings.ToLower(os.Getenv("AWS_REGION")), "_", "-")
appID = os.Getenv("MONGODB_REALM_APP_ID")
eventResp = realm.EventTrigger{}
)
Expand Down
Loading