Skip to content

Commit 4b047bf

Browse files
committed
chore: improved test functions name
1 parent 9b0421d commit 4b047bf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mongodbatlas/alert_configurations_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func TestAlertConfiguration_Create(t *testing.T) {
108108
}
109109
}
110110

111-
func TestAlertConfiguration_EnableAnAlert(t *testing.T) {
111+
func TestAlertConfiguration_EnableAnAlertConfig(t *testing.T) {
112112
setup()
113113
defer teardown()
114114

@@ -151,9 +151,9 @@ func TestAlertConfiguration_EnableAnAlert(t *testing.T) {
151151
}`)
152152
})
153153

154-
alertConfiguration, _, err := client.AlertConfigurations.EnableAnAlert(ctx, groupID, alertConfigID, pointy.Bool(true))
154+
alertConfiguration, _, err := client.AlertConfigurations.EnableAnAlertConfig(ctx, groupID, alertConfigID, pointy.Bool(true))
155155
if err != nil {
156-
t.Errorf("AlertConfiguration.EnableAnAlert returned error: %v", err)
156+
t.Errorf("AlertConfiguration.EnableAnAlertConfig returned error: %v", err)
157157
}
158158

159159
expected := &AlertConfiguration{
@@ -180,7 +180,7 @@ func TestAlertConfiguration_EnableAnAlert(t *testing.T) {
180180
}
181181
}
182182

183-
func TestAlertConfiguration_GetAnAlert(t *testing.T) {
183+
func TestAlertConfiguration_GetAnAlertConfig(t *testing.T) {
184184
setup()
185185
defer teardown()
186186

@@ -221,9 +221,9 @@ func TestAlertConfiguration_GetAnAlert(t *testing.T) {
221221
}`)
222222
})
223223

224-
alertConfiguration, _, err := client.AlertConfigurations.GetAnAlert(ctx, groupID, alertConfigID)
224+
alertConfiguration, _, err := client.AlertConfigurations.GetAnAlertConfig(ctx, groupID, alertConfigID)
225225
if err != nil {
226-
t.Errorf("AlertConfigurations.GetAnAlert returned error: %v", err)
226+
t.Errorf("AlertConfigurations.GetAnAlertConfig returned error: %v", err)
227227
}
228228

229229
expected := &AlertConfiguration{
@@ -262,7 +262,7 @@ func TestAlertConfiguration_GetAnAlert(t *testing.T) {
262262
}
263263
}
264264

265-
func TestAlertConfiguration_GetOpenAlerts(t *testing.T) {
265+
func TestAlertConfiguration_GetOpenAlertsConfig(t *testing.T) {
266266
setup()
267267
defer teardown()
268268

@@ -307,9 +307,9 @@ func TestAlertConfiguration_GetOpenAlerts(t *testing.T) {
307307
}`)
308308
})
309309

310-
alertConfigurations, _, err := client.AlertConfigurations.GetOpenAlerts(ctx, groupID, alertConfigID)
310+
alertConfigurations, _, err := client.AlertConfigurations.GetOpenAlertsConfig(ctx, groupID, alertConfigID)
311311
if err != nil {
312-
t.Errorf("AlertConfigurations.GetOpenAlerts returned error: %v", err)
312+
t.Errorf("AlertConfigurations.GetOpenAlertsConfig returned error: %v", err)
313313
}
314314

315315
expected := []AlertConfiguration{

0 commit comments

Comments
 (0)