Skip to content

Commit c99c316

Browse files
authored
tgc-revival: skip TestAccSpannerInstance_basicWithAutoscalingUsingNodeConfigUpdateDisableAutoscaling (GoogleCloudPlatform#16275)
1 parent 78799ae commit c99c316

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

mmv1/products/spanner/Instance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ virtual_fields:
7474
This must be set to true if you created a backup manually in the console.
7575
type: Boolean
7676
default_value: false
77+
tgc_tests:
78+
- name: 'TestAccSpannerInstance_basicWithAutoscalingUsingNodeConfigUpdateDisableAutoscaling'
79+
skip: 'sometimes the CAI asset data for step3 is unavailable'
7780
parameters:
7881
properties:
7982
- name: 'name'

mmv1/provider/terraform_tgc_next.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,15 +377,15 @@ func (tgc TerraformGoogleConversionNext) addTestsFromHandwrittenTests(object *ap
377377
}
378378

379379
matches := testRegex.FindAllSubmatch(data, -1)
380-
tests := make([]resource.TGCTest, len(matches))
381-
for i, match := range matches {
380+
tests := make([]resource.TGCTest, 0)
381+
for _, match := range matches {
382382
if len(match) == 2 {
383383
if _, ok := testNamesInYAML[string(match[1])]; ok {
384384
continue
385385
}
386-
tests[i] = resource.TGCTest{
386+
tests = append(tests, resource.TGCTest{
387387
Name: string(match[1]),
388-
}
388+
})
389389
}
390390
}
391391

0 commit comments

Comments
 (0)