Skip to content

GitHub actions tests #293

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

Merged
merged 61 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
6b45132
fix: fixes that show fail in testacc result
Aug 19, 2020
b5c8ead
test: commented in maintantance asap because is not needed for now, c…
Aug 19, 2020
5353797
fix: error about delete cluster
Aug 19, 2020
5eac223
test: deleted asap function for maintenance, fixes the bug of cluster…
Aug 20, 2020
0beb517
test: fixes bug of destroy global cluster
Aug 20, 2020
9a648e4
test: fix error about whitelist, added project resource inside testac…
Aug 21, 2020
6f2de46
test: changed database user to create project and get it, changed imp…
Aug 21, 2020
32754cd
Fix #285: Unable to import $external auth users (#297)
PacoDw Aug 20, 2020
b2aff78
feat: enabled to run test acceptances when the branch is master or is…
Aug 12, 2020
2490363
test: added a validation when you want to skip some test acceptances …
Aug 12, 2020
f205605
fix: updated travis
Aug 12, 2020
1ba55ac
fix: updated travis
Aug 12, 2020
79ca259
fix: update travis where you print something every 8 min
Aug 13, 2020
797dd43
fix: update travis and wait for 6 hours to avoid output errors
Aug 13, 2020
868b861
fix: update travis and wait for 6 hours to avoid output errors
Aug 13, 2020
77ab9e0
fix: update travis and wait for 6 hours to avoid output errors
Aug 13, 2020
cbbf683
fix: update travis and wait for 6 hours to avoid output errors
Aug 13, 2020
93ec94a
fix: update travis
Aug 13, 2020
f2f932c
fix: update travis
Aug 13, 2020
98a47bb
fix: update travis
Aug 13, 2020
bcd7a42
fix: update travis
Aug 13, 2020
3025bd8
fix: update travis
Aug 13, 2020
1563c4b
fix: added skip function in some test acceptances
Aug 13, 2020
41e1eef
deleted make testacc in travis
Aug 13, 2020
bb6cd1f
feat: added automate-test for github actions
Aug 13, 2020
e1a275d
fix: fix error syntax
Aug 13, 2020
e6220f2
fix: added environment variables
Aug 13, 2020
6fbd18e
fix: checkout with current branch
Aug 13, 2020
1329005
fix: checkout with current branch
Aug 13, 2020
1e7372b
fix: checkout with current branch
Aug 13, 2020
6dbe34c
fix: checkout with current branch
Aug 13, 2020
f7c0192
fix: checkout with current branch
Aug 13, 2020
da8320f
fix: checkout with current branch
Aug 13, 2020
fab6bbe
refactor: changed Test Acceptances to Acceptances Tests
Aug 13, 2020
63b9af1
fix: changed validation so you can run make test, lint, etc every pus…
Aug 14, 2020
f4b96ef
fix: validation modified
Aug 14, 2020
d0e3b4d
added another automated test for acceptances and separate them from n…
Aug 14, 2020
e6f645c
added many others enviroment variables that will be needed if available
Aug 19, 2020
23150b4
fix: added a newline at the end of file
Aug 19, 2020
1d15ce9
test: changed DB_USERNAME to MONGODB_ATLAS_DB_USERNAME, deleted the f…
Aug 19, 2020
55ace7b
deleted the ref for checkout repo
Aug 19, 2020
d35fcd0
docs: added environment variables for db username and teams ids
Aug 20, 2020
3207bfd
test: added enviroment variable and validate to get teams ids
Aug 20, 2020
19f155a
add env var for teams ids in yml tests
Aug 20, 2020
7c59b70
reduced to 20 ip whitelist to see if it works now, somehow it always …
Aug 21, 2020
8470f5b
added ref to actual branch
Aug 21, 2020
47e6eda
test: fixed wrong data in config of database user test
Aug 22, 2020
2e85b06
test: changed import state
Aug 24, 2020
9636189
fix: fixed cloud_provider_snapshot_backup_policy
PacoDw Aug 25, 2020
705761f
fix: fixes import for varios resources
Aug 25, 2020
6e6ad17
test: added validation where you skip import for some resources, it's…
Aug 25, 2020
531cb70
test: changed region aws to avoid error about capacity
Aug 25, 2020
bd871e5
test: fixes some fails testacc
Aug 26, 2020
8ef8ab3
fix: added skip imports in some resources
Aug 26, 2020
f1e1141
fix: added skip imports in some resources
Aug 26, 2020
c0c0322
test: fixes some failed testacc
Aug 26, 2020
b60f105
deleted the ref for checkout and travis so It can use only github act…
Aug 26, 2020
648aafa
fix: changed to aws us east 1 to avoid error capacity for global cluster
Aug 26, 2020
376184e
changed it back as before
Aug 26, 2020
d1a1d0e
test: skip multiple custom db roles because sometimes fails, it seems…
Aug 26, 2020
be7bfba
formated code to avoid linter error
Aug 26, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/automated-test-acceptances.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 'Automated Acceptances Tests'

on:
push:
branches:
- master
pull_request:

jobs:
acceptances-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Acceptance Tests
env:
SKIP_TEST_EXTERNAL_CREDENTIALS: ${{ secrets.SKIP_TEST_EXTERNAL_CREDENTIALS }}
SKIP_TEST_IMPORT: ${{ secrets.SKIP_TEST_IMPORT }}
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_PUBLIC_KEY }}
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_PRIVATE_KEY }}
MONGODB_ATLAS_PROJECT_ID: ${{ secrets.MONGODB_ATLAS_PROJECT_ID }}
MONGODB_ATLAS_ORG_ID: ${{ secrets.MONGODB_ATLAS_ORG_ID }}
MONGODB_ATLAS_DB_USERNAME: ${{ secrets.MONGODB_ATLAS_DB_USERNAME }}
MONGODB_ATLAS_TEAMS_IDS: ${{ secrets.MONGODB_ATLAS_TEAMS_IDS }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_VPC_ID: ${{ secrets.AWS_VPC_ID }}
AWS_VPC_CIDR_BLOCK: ${{ secrets.AWS_VPC_CIDR_BLOCK }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_CUSTOMER_MASTER_KEY_ID: ${{ secrets.AWS_CUSTOMER_MASTER_KEY_ID }}
AZURE_DIRECTORY_ID: ${{ secrets.AZURE_DIRECTORY_ID }}
AZURE_SUBCRIPTION_ID: ${{ secrets.AZURE_SUBCRIPTION_ID }}
AZURE_VNET_NAME: ${{ secrets.AZURE_VNET_NAME }}
AZURE_RESOURCE_GROUP_NAME: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_ID_UPDATED: ${{ secrets.AZURE_CLIENT_ID_UPDATED }}
AZURE_RESOURCE_GROUP_NAME_UPDATED: ${{ secrets.AZURE_RESOURCE_GROUP_NAME_UPDATED }}
AZURE_SECRET: ${{ secrets.AZURE_SECRET }}
AZURE_KEY_VAULT_NAME: ${{ secrets.AZURE_KEY_VAULT_NAME }}
AZURE_KEY_VAULT_NAME_UPDATED: ${{ secrets.AZURE_KEY_VAULT_NAME_UPDATED }}
AZURE_KEY_IDENTIFIER: ${{ secrets.AZURE_KEY_IDENTIFIER }}
AZURE_KEY_IDENTIFIER_UPDATED: ${{ secrets.AZURE_KEY_IDENTIFIER_UPDATED }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
GCP_SERVICE_ACCOUNT_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
GCP_CLUSTER_REGION_NAME: ${{ secrets.GCP_CLUSTER_REGION_NAME }}
GCP_REGION_NAME: ${{ secrets.GCP_REGION_NAME }}
GOOGLE_CLOUD_KEYFILE_JSON: ${{ secrets.GOOGLE_CLOUD_KEYFILE_JSON }}
GCP_KEY_VERSION_RESOURCE_ID: ${{ secrets.GCP_KEY_VERSION_RESOURCE_ID }}
run: make testacc
22 changes: 22 additions & 0 deletions .github/workflows/automated-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Automated Tests'

on: push

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Code Lint
run: make tools && make lint
- name: Website
run: make tools && make website-lint
- name: Test
env:
MONGODB_ATLAS_TEAMS_IDS: ${{ secrets.MONGODB_ATLAS_TEAMS_IDS }}
run: make test
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@ export MONGODB_ATLAS_PUBLIC_KEY=<YOUR_PUBLIC_KEY>
export MONGODB_ATLAS_PRIVATE_KEY=<YOUR_PRIVATE_KEY>
```

- For `Authentication database user` resource configuration:
```sh
$ export MONGODB_ATLAS_DB_USERNAME=<YOUR_DATABASE_NAME>
```

- For `Project(s)` resource configuration:
```sh
$ export MONGODB_ATLAS_TEAMS_IDS=<YOUR_TEAMS_IDS>
```
~> **Notice:** It should be at least one team id up to 3 teams ids depending of acceptance testing using separator comma like this `teamId1,teamdId2,teamId3`.

- For skip acceptances testing that requires additional credentials such as AWS, AZURE and GCP:
```sh
export SKIP_TEST_EXTERNAL_CREDENTIALS=TRUE
```

##### AWS env variables

- For `Network Peering` resource configuration:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func dataSourceMongoDBAtlasCloudProviderSnapshotRestoreJob() *schema.Resource {
Computed: true,
},
"oplog_ts": {
Type: schema.TypeString,
Type: schema.TypeInt,
Computed: true,
},
"point_in_time_utc_seconds": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func testAccMongoDBAtlasDataSourceCloudProviderSnapshotRestoreJobConfig(projectI

// Provider Settings "block"
provider_name = "AWS"
provider_region_name = "EU_WEST_2"
provider_region_name = "US_EAST_1"
provider_instance_size_name = "M10"
provider_backup_enabled = true //enable cloud provider snapshots
provider_disk_iops = 100
Expand All @@ -63,7 +63,7 @@ func testAccMongoDBAtlasDataSourceCloudProviderSnapshotRestoreJobConfig(projectI
resource "mongodbatlas_cloud_provider_snapshot_restore_job" "test" {
project_id = mongodbatlas_cloud_provider_snapshot.test.project_id
cluster_name = mongodbatlas_cloud_provider_snapshot.test.cluster_name
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.id
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.snapshot_id
delivery_type = {
download = true
}
Expand All @@ -73,7 +73,7 @@ func testAccMongoDBAtlasDataSourceCloudProviderSnapshotRestoreJobConfig(projectI
data "mongodbatlas_cloud_provider_snapshot_restore_job" "test" {
project_id = mongodbatlas_cloud_provider_snapshot_restore_job.test.project_id
cluster_name = mongodbatlas_cloud_provider_snapshot_restore_job.test.cluster_name
job_id = mongodbatlas_cloud_provider_snapshot_restore_job.test.id
job_id = mongodbatlas_cloud_provider_snapshot_restore_job.test.snapshot_restore_job_id
}
`, projectID, clusterName, description, retentionInDays)
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func testAccMongoDBAtlasCloudProviderSnapshotRestoreJobsConfig(projectID, cluste
resource "mongodbatlas_cloud_provider_snapshot_restore_job" "test" {
project_id = mongodbatlas_cloud_provider_snapshot.test.project_id
cluster_name = mongodbatlas_cloud_provider_snapshot.test.cluster_name
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.id
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.snapshot_id
delivery_type = {
download = true
}
Expand Down Expand Up @@ -129,7 +129,7 @@ func testAccMongoDBAtlasCloudProviderSnapshotRestoreJobsConfigWithPagination(pro
resource "mongodbatlas_cloud_provider_snapshot_restore_job" "test" {
project_id = mongodbatlas_cloud_provider_snapshot.test.project_id
cluster_name = mongodbatlas_cloud_provider_snapshot.test.cluster_name
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.id
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.snapshot_id
delivery_type = {
download = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func testAccMongoDBAtlasDataSourceCloudProviderSnapshotConfig(projectID, cluster
}

data "mongodbatlas_cloud_provider_snapshot" "test" {
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.id
snapshot_id = mongodbatlas_cloud_provider_snapshot.test.snapshot_id
project_id = mongodbatlas_cloud_provider_snapshot.test.project_id
cluster_name = mongodbatlas_cloud_provider_snapshot.test.cluster_name
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestAccDataSourceMongoDBAtlasCustomDBRole_basic(t *testing.T) {
roleName := fmt.Sprintf("test-acc-custom_role-%s", acctest.RandString(5))

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t); checkPeeringEnvAWS(t) },
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckMongoDBAtlasNetworkPeeringDestroy,
Steps: []resource.TestStep{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestAccDataSourceMongoDBAtlasCustomDBRoles_basic(t *testing.T) {
roleName := fmt.Sprintf("test-acc-custom_role-%s", acctest.RandString(5))

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t); checkPeeringEnvAWS(t) },
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckMongoDBAtlasNetworkPeeringDestroy,
Steps: []resource.TestStep{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func testAccDSMongoDBAtlasGlobalClusterConfig(projectID, name string) string {
zone_name = "Zone 1"
num_shards = 2
regions_config {
region_name = "EU_CENTRAL_1"
region_name = "US_EAST_1"
electable_nodes = 3
priority = 7
read_only_nodes = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@ func TestAccDataSourceMongoDBAtlasMaintenanceWindow_basic(t *testing.T) {
})
}

func TestAccDataSourceMongoDBAtlasMaintenanceWindow_basicWithStartASAP(t *testing.T) {
var maintenance matlas.MaintenanceWindow

projectID := os.Getenv("MONGODB_ATLAS_PROJECT_ID")

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testAccMongoDBAtlasDataSourceMaintenanceWindowConfigWithStartASAP(projectID, true),
Check: resource.ComposeTestCheckFunc(
testAccCheckMongoDBAtlasMaintenanceWindowExists("mongodbatlas_maintenance_window.test", &maintenance),
resource.TestCheckResourceAttrSet("data.mongodbatlas_maintenance_window.test", "start_asap"),
),
},
},
})
}

func testAccMongoDBAtlasDataSourceMaintenanceWindowConfig(projectID string, dayOfWeek, hourOfDay int) string {
return fmt.Sprintf(`
resource "mongodbatlas_maintenance_window" "test" {
Expand All @@ -66,16 +46,3 @@ func testAccMongoDBAtlasDataSourceMaintenanceWindowConfig(projectID string, dayO
}
`, projectID, dayOfWeek, hourOfDay)
}

func testAccMongoDBAtlasDataSourceMaintenanceWindowConfigWithStartASAP(projectID string, startAsap bool) string {
return fmt.Sprintf(`
resource "mongodbatlas_maintenance_window" "test" {
project_id = "%s"
start_asap = %t
}

data "mongodbatlas_maintenance_window" "test" {
project_id = "${mongodbatlas_maintenance_window.test.id}"
}
`, projectID, startAsap)
}
16 changes: 11 additions & 5 deletions mongodbatlas/data_source_mongodbatlas_network_container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ func TestAccDataSourceMongoDBAtlasNetworkContainer_basic(t *testing.T) {
randInt := acctest.RandIntRange(0, 255)

resourceName := "mongodbatlas_network_container.test_ds"
projectID := os.Getenv("MONGODB_ATLAS_PROJECT_ID")
cidrBlock := fmt.Sprintf("10.8.%d.0/24", randInt)
dataSourceName := "data.mongodbatlas_network_container.test_ds"
orgID := os.Getenv("MONGODB_ATLAS_ORG_ID")
projectName := acctest.RandomWithPrefix("test-acc")

providerName := "AWS"

Expand All @@ -28,7 +29,7 @@ func TestAccDataSourceMongoDBAtlasNetworkContainer_basic(t *testing.T) {
CheckDestroy: testAccCheckMongoDBAtlasNetworkContainerDestroy,
Steps: []resource.TestStep{
{
Config: testAccMongoDBAtlasNetworkContainerDSConfig(projectID, cidrBlock),
Config: testAccMongoDBAtlasNetworkContainerDSConfig(projectName, orgID, cidrBlock),
Check: resource.ComposeTestCheckFunc(
testAccCheckMongoDBAtlasNetworkContainerExists(resourceName, &container),
testAccCheckMongoDBAtlasNetworkContainerAttributes(&container, providerName),
Expand All @@ -44,10 +45,15 @@ func TestAccDataSourceMongoDBAtlasNetworkContainer_basic(t *testing.T) {
})
}

func testAccMongoDBAtlasNetworkContainerDSConfig(projectID, cidrBlock string) string {
func testAccMongoDBAtlasNetworkContainerDSConfig(projectName, orgID, cidrBlock string) string {
return fmt.Sprintf(`
resource "mongodbatlas_project" "test" {
name = "%s"
org_id = "%s"
}

resource "mongodbatlas_network_container" "test_ds" {
project_id = "%s"
project_id = "${mongodbatlas_project.test.id}"
atlas_cidr_block = "%s"
provider_name = "AWS"
region_name = "US_EAST_1"
Expand All @@ -57,5 +63,5 @@ func testAccMongoDBAtlasNetworkContainerDSConfig(projectID, cidrBlock string) st
project_id = mongodbatlas_network_container.test_ds.project_id
container_id = mongodbatlas_network_container.test_ds.container_id
}
`, projectID, cidrBlock)
`, projectName, orgID, cidrBlock)
}
29 changes: 12 additions & 17 deletions mongodbatlas/data_source_mongodbatlas_network_containers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ func TestAccDataSourceMongoDBAtlasNetworkContainers_basic(t *testing.T) {
randInt := acctest.RandIntRange(0, 255)

resourceName := "mongodbatlas_network_container.test"
projectID := os.Getenv("MONGODB_ATLAS_PROJECT_ID")
cidrBlock := fmt.Sprintf("10.8.%d.0/24", randInt)
dataSourceName := "data.mongodbatlas_network_containers.test"
orgID := os.Getenv("MONGODB_ATLAS_ORG_ID")
projectName := acctest.RandomWithPrefix("test-acc")

providerName := "AWS"

Expand All @@ -28,18 +29,13 @@ func TestAccDataSourceMongoDBAtlasNetworkContainers_basic(t *testing.T) {
CheckDestroy: testAccCheckMongoDBAtlasNetworkContainerDestroy,
Steps: []resource.TestStep{
{
Config: testAccMongoDBAtlasNetworkContainersDSConfig(projectID, cidrBlock),
Config: testAccMongoDBAtlasNetworkContainersDSConfig(projectName, orgID, cidrBlock),
Check: resource.ComposeTestCheckFunc(
testAccCheckMongoDBAtlasNetworkContainerExists(resourceName, &container),
testAccCheckMongoDBAtlasNetworkContainerAttributes(&container, providerName),
resource.TestCheckResourceAttrSet(resourceName, "project_id"),
resource.TestCheckResourceAttr(resourceName, "provider_name", providerName),
resource.TestCheckResourceAttrSet(resourceName, "provisioned"),
),
},
{
Config: testAccMongoDBAtlasNetworkContainersDataSourceConfigWithDS(projectID, cidrBlock),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet(dataSourceName, "results.#"),
resource.TestCheckResourceAttrSet(dataSourceName, "results.0.id"),
resource.TestCheckResourceAttrSet(dataSourceName, "results.0.atlas_cidr_block"),
Expand All @@ -51,24 +47,23 @@ func TestAccDataSourceMongoDBAtlasNetworkContainers_basic(t *testing.T) {
})
}

func testAccMongoDBAtlasNetworkContainersDSConfig(projectID, cidrBlock string) string {
func testAccMongoDBAtlasNetworkContainersDSConfig(projectName, orgID, cidrBlock string) string {
return fmt.Sprintf(`
resource "mongodbatlas_project" "test" {
name = "%s"
org_id = "%s"
}

resource "mongodbatlas_network_container" "test" {
project_id = "%s"
project_id = "${mongodbatlas_project.test.id}"
atlas_cidr_block = "%s"
provider_name = "AWS"
region_name = "US_EAST_1"
}
`, projectID, cidrBlock)
}

func testAccMongoDBAtlasNetworkContainersDataSourceConfigWithDS(projectID, cidrBlock string) string {
return fmt.Sprintf(`
%s

data "mongodbatlas_network_containers" "test" {
project_id = "%s"
project_id = "${mongodbatlas_network_container.test.project_id}"
provider_name = "AWS"
}
`, testAccMongoDBAtlasNetworkContainersDSConfig(projectID, cidrBlock), projectID)
`, projectName, orgID, cidrBlock)
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
)

func TestAccDataSourceMongoDBAtlasNetworkPeering_basic(t *testing.T) {
SkipTestExtCred(t)
var peer matlas.Peer

resourceName := "mongodbatlas_network_peering.basic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
)

func TestAccDataSourceMongoDBAtlasNetworkPeerings_basic(t *testing.T) {
SkipTestExtCred(t)
var peer matlas.Peer

resourceName := "mongodbatlas_network_peering.test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

func TestAccDataSourceMongoDBAtlasPrivateEndpointLink_basic(t *testing.T) {
SkipTestExtCred(t)
resourceName := "data.mongodbatlas_private_endpoint_interface_link.test"

awsAccessKey := os.Getenv("AWS_ACCESS_KEY_ID")
Expand Down
Loading