Skip to content

Commit f28a051

Browse files
gitmknanonymous
andauthored
Fix/automated test (#1410)
* fix/tmp-test * fix: modify tmp_exporter_integration * fix: add changelog Co-authored-by: anonymous <anonymous@mail.org>
1 parent 29f5df4 commit f28a051

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.changelog/1410.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
resource/tencentcloud_monitor_tmp_exporter_integration: Optimized initialization
3+
```

tencentcloud/resource_tc_monitor_grafana_sso_account_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ func TestAccTencentCloudMonitorGrafanaSsoAccount_basic(t *testing.T) {
2424
Config: testAccMonitorGrafanaSsoAccount,
2525
Check: resource.ComposeTestCheckFunc(
2626
testAccCheckSsoAccountExists("tencentcloud_monitor_grafana_sso_account.ssoAccount"),
27-
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "user_id", "202109071220"),
28-
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "notes", "desc-202109071220"),
27+
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "user_id", "100027012454"),
28+
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "notes", "desc-100027012454"),
2929
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "role.#", "1"),
3030
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "role.0.role", "Admin"),
3131
resource.TestCheckResourceAttr("tencentcloud_monitor_grafana_sso_account.ssoAccount", "role.0.organization", "Main Org."),
@@ -113,8 +113,8 @@ const testAccMonitorGrafanaSsoAccount = testMonitorGrafanaSsoAccountVar + `
113113
114114
resource "tencentcloud_monitor_grafana_sso_account" "ssoAccount" {
115115
instance_id = var.instance_id
116-
user_id = "202109071220"
117-
notes = "desc-202109071220"
116+
user_id = "100027012454"
117+
notes = "desc-100027012454"
118118
role {
119119
organization = "Main Org."
120120
role = "Admin"

tencentcloud/resource_tc_monitor_tmp_exporter_integration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func resourceTencentCloudMonitorTmpExporterIntegrationCreate(d *schema.ResourceD
140140
return nil
141141
})
142142
if err != nil {
143-
return resource.NonRetryableError(fmt.Errorf("prometheusInstanceInit error %v, operate failed", err))
143+
return resource.RetryableError(fmt.Errorf("prometheusInstanceInit error %v, operate failed", err))
144144
}
145145
return resource.RetryableError(fmt.Errorf("prometheusInstance initializing, retry..."))
146146
}

0 commit comments

Comments
 (0)