@@ -14,19 +14,19 @@ func Test_AzurermStorageAccountHTTPSTrafficOnlyEnabled(t *testing.T) {
1414 Expected helper.Issues
1515 }{
1616 {
17- Name : "https_traffic_only disabled" ,
17+ Name : "https_traffic_only_enabled disabled" ,
1818 Content : `
1919resource "azurerm_storage_account" "example" {
20- https_traffic_only = false
20+ https_traffic_only_enabled = false
2121}` ,
2222 Expected : helper.Issues {
2323 {
2424 Rule : NewAzurermStorageAccountHTTPSTrafficOnlyEnabled (),
25- Message : "https_traffic_only should be true" ,
25+ Message : "https_traffic_only_enabled should be true" ,
2626 Range : hcl.Range {
2727 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 },
3030 },
3131 },
3232 },
@@ -39,7 +39,7 @@ resource "azurerm_storage_account" "example" {
3939 Expected : helper.Issues {
4040 {
4141 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" ,
4343 Range : hcl.Range {
4444 Filename : "resource.tf" ,
4545 Start : hcl.Pos {Line : 2 , Column : 1 },
@@ -49,10 +49,10 @@ resource "azurerm_storage_account" "example" {
4949 },
5050 },
5151 {
52- Name : "https_traffic_only enabled" ,
52+ Name : "https_traffic_only_enabled enabled" ,
5353 Content : `
5454resource "azurerm_storage_account" "example" {
55- https_traffic_only = true
55+ https_traffic_only_enabled = true
5656}` ,
5757 Expected : helper.Issues {},
5858 },
0 commit comments