@@ -14,19 +14,19 @@ func Test_AzurermStorageAccountHTTPSTrafficOnlyEnabled(t *testing.T) {
14
14
Expected helper.Issues
15
15
}{
16
16
{
17
- Name : "https_traffic_only disabled" ,
17
+ Name : "https_traffic_only_enabled disabled" ,
18
18
Content : `
19
19
resource "azurerm_storage_account" "example" {
20
- https_traffic_only = false
20
+ https_traffic_only_enabled = false
21
21
}` ,
22
22
Expected : helper.Issues {
23
23
{
24
24
Rule : NewAzurermStorageAccountHTTPSTrafficOnlyEnabled (),
25
- Message : "https_traffic_only should be true" ,
25
+ Message : "https_traffic_only_enabled should be true" ,
26
26
Range : hcl.Range {
27
27
Filename : "resource.tf" ,
28
- Start : hcl.Pos {Line : 3 , Column : 26 },
29
- End : hcl.Pos {Line : 3 , Column : 31 },
28
+ Start : hcl.Pos {Line : 3 , Column : 34 },
29
+ End : hcl.Pos {Line : 3 , Column : 39 },
30
30
},
31
31
},
32
32
},
@@ -39,7 +39,7 @@ resource "azurerm_storage_account" "example" {
39
39
Expected : helper.Issues {
40
40
{
41
41
Rule : NewAzurermStorageAccountHTTPSTrafficOnlyEnabled (),
42
- Message : "https_traffic_only is not defined and should be true" ,
42
+ Message : "https_traffic_only_enabled is not defined and should be true" ,
43
43
Range : hcl.Range {
44
44
Filename : "resource.tf" ,
45
45
Start : hcl.Pos {Line : 2 , Column : 1 },
@@ -49,10 +49,10 @@ resource "azurerm_storage_account" "example" {
49
49
},
50
50
},
51
51
{
52
- Name : "https_traffic_only enabled" ,
52
+ Name : "https_traffic_only_enabled enabled" ,
53
53
Content : `
54
54
resource "azurerm_storage_account" "example" {
55
- https_traffic_only = true
55
+ https_traffic_only_enabled = true
56
56
}` ,
57
57
Expected : helper.Issues {},
58
58
},
0 commit comments