Skip to content

Commit 749732f

Browse files
fixed errors
1 parent bea7daa commit 749732f

File tree

3 files changed

+3
-66
lines changed

3 files changed

+3
-66
lines changed

mongodbatlas/fw_resource_mongodbatlas_alert_configuration_test.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ func TestAccConfigRSAlertConfiguration_EmptyMatcherMetricThresholdConfig(t *test
8383
resource.TestCheckResourceAttrSet(resourceName, "project_id"),
8484
resource.TestCheckResourceAttr(resourceName, "notification.#", "1"),
8585
),
86-
ExpectNonEmptyPlan: true,
8786
},
8887
},
8988
})
@@ -899,26 +898,6 @@ resource "mongodbatlas_alert_configuration" "test" {
899898
email_enabled = false
900899
roles = ["GROUP_OWNER"]
901900
}
902-
903-
matcher {
904-
field_name = ""
905-
operator = null
906-
value = ""
907-
}
908-
909-
metric_threshold_config {
910-
metric_name = ""
911-
operator = null
912-
threshold = null
913-
units = null
914-
mode = ""
915-
}
916-
917-
threshold_config {
918-
operator = null
919-
threshold = null
920-
units = null
921-
}
922901
}
923902
`, orgID, projectName, enabled)
924903
}

mongodbatlas/fw_resource_mongodbatlas_project_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func TestAccProjectRSProject_withInvalidLimitName(t *testing.T) {
403403
Value: 1,
404404
},
405405
}),
406-
ExpectError: regexp.MustCompile("Limit not found"),
406+
ExpectError: regexp.MustCompile("Not Found"),
407407
},
408408
},
409409
})
@@ -435,7 +435,7 @@ func TestAccProjectRSProject_withInvalidLimitNameOnUpdate(t *testing.T) {
435435
Value: 1,
436436
},
437437
}),
438-
ExpectError: regexp.MustCompile("Limit not found"),
438+
ExpectError: regexp.MustCompile("Not Found"),
439439
},
440440
},
441441
})

mongodbatlas/resource_mongodbatlas_federated_database_instance_test.go

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func TestAccFederatedDatabaseInstance_basic(t *testing.T) {
5757
}
5858

5959
func TestAccFederatedDatabaseInstance_S3bucket(t *testing.T) {
60+
SkipTestExtCred(t)
6061
var (
6162
resourceName = "mongodbatlas_federated_database_instance.test"
6263
orgID = os.Getenv("MONGODB_ATLAS_ORG_ID")
@@ -118,9 +119,6 @@ func TestAccFederatedDatabaseInstance_atlasCluster(t *testing.T) {
118119
resource.TestCheckResourceAttrSet(resourceName, "storage_stores.0.read_preference.0.tag_sets.#"),
119120
resource.TestCheckResourceAttr(resourceName, "storage_stores.0.read_preference.0.tag_sets.#", "2"),
120121
resource.TestCheckResourceAttr(resourceName, "storage_stores.0.read_preference.0.tag_sets.0.tags.#", "2"),
121-
resource.TestCheckResourceAttrSet(resourceName, "storage_stores.0.read_preference.0.tag_sets.#"),
122-
resource.TestCheckResourceAttr(resourceName, "storage_stores.0.read_preference.0.tag_sets.#", "2"),
123-
resource.TestCheckResourceAttr(resourceName, "storage_stores.0.read_preference.0.tag_sets.0.tags.#", "2"),
124122
),
125123
},
126124
},
@@ -201,26 +199,6 @@ func testAccMongoDBAtlasFederatedDatabaseInstanceAtlasProviderConfig(projectName
201199
value = "app-1"
202200
}
203201
}
204-
tag_sets {
205-
tags {
206-
name = "environment"
207-
value = "development"
208-
}
209-
tags {
210-
name = "application"
211-
value = "app"
212-
}
213-
}
214-
tag_sets {
215-
tags {
216-
name = "environment1"
217-
value = "development1"
218-
}
219-
tags {
220-
name = "application1"
221-
value = "app-1"
222-
}
223-
}
224202
}
225203
}
226204
@@ -251,26 +229,6 @@ func testAccMongoDBAtlasFederatedDatabaseInstanceAtlasProviderConfig(projectName
251229
value = "app-1"
252230
}
253231
}
254-
tag_sets {
255-
tags {
256-
name = "environment"
257-
value = "development"
258-
}
259-
tags {
260-
name = "application"
261-
value = "app"
262-
}
263-
}
264-
tag_sets {
265-
tags {
266-
name = "environment1"
267-
value = "development1"
268-
}
269-
tags {
270-
name = "application1"
271-
value = "app-1"
272-
}
273-
}
274232
}
275233
}
276234
}

0 commit comments

Comments
 (0)