@@ -13,21 +13,23 @@ import (
13
13
"github.com/hashicorp/terraform-provider-azurerm/internal/provider"
14
14
)
15
15
16
- // lintignore:AT001
17
16
func (td TestData ) DataSourceTest (t * testing.T , steps []TestStep ) {
18
17
// DataSources don't need a check destroy - however since this is a wrapper function
19
18
// and not matching the ignore pattern `XXX_data_source_test.go`, this needs to be explicitly opted out
19
+
20
+ // lintignore:AT001
20
21
testCase := resource.TestCase {
21
22
PreCheck : func () { PreCheck (t ) },
22
23
Steps : steps ,
23
24
}
24
25
td .runAcceptanceTest (t , testCase )
25
26
}
26
27
27
- // lintignore:AT001
28
28
func (td TestData ) DataSourceTestInSequence (t * testing.T , steps []TestStep ) {
29
29
// DataSources don't need a check destroy - however since this is a wrapper function
30
30
// and not matching the ignore pattern `XXX_data_source_test.go`, this needs to be explicitly opted out
31
+
32
+ // lintignore:AT001
31
33
testCase := resource.TestCase {
32
34
PreCheck : func () { PreCheck (t ) },
33
35
Steps : steps ,
@@ -36,7 +38,6 @@ func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) {
36
38
td .runAcceptanceSequentialTest (t , testCase )
37
39
}
38
40
39
- // lintignore:AT001
40
41
func (td TestData ) ResourceTest (t * testing.T , testResource types.TestResource , steps []TestStep ) {
41
42
testCase := resource.TestCase {
42
43
PreCheck : func () { PreCheck (t ) },
@@ -54,17 +55,17 @@ func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, s
54
55
55
56
// ResourceTestIgnoreCheckDestroyed skips the check to confirm the resource test has been destroyed.
56
57
// This is done because certain resources can't actually be deleted.
57
- // lintignore:AT001
58
58
func (td TestData ) ResourceTestSkipCheckDestroyed (t * testing.T , steps []TestStep ) {
59
+ // lintignore:AT001
59
60
testCase := resource.TestCase {
60
61
PreCheck : func () { PreCheck (t ) },
61
62
Steps : steps ,
62
63
}
63
64
td .runAcceptanceTest (t , testCase )
64
65
}
65
66
66
- // lintignore:AT001
67
67
func (td TestData ) ResourceSequentialTestSkipCheckDestroyed (t * testing.T , steps []TestStep ) {
68
+ // lintignore:AT001
68
69
testCase := resource.TestCase {
69
70
PreCheck : func () { PreCheck (t ) },
70
71
Steps : steps ,
0 commit comments