@@ -52,7 +52,7 @@ resource "oxide_vpc_firewall_rules" "{{.BlockName}}" {
5252 }
5353 ]
5454 ports = ["8123"]
55- protocols = ["ICMP "]
55+ protocols = ["icmp "]
5656 },
5757 targets = [
5858 {
@@ -123,7 +123,7 @@ resource "oxide_vpc_firewall_rules" "{{.BlockName}}" {
123123 }
124124 ]
125125 ports = ["443"]
126- protocols = ["TCP "]
126+ protocols = ["tcp "]
127127 },
128128 targets = [
129129 {
@@ -147,7 +147,7 @@ resource "oxide_vpc_firewall_rules" "{{.BlockName}}" {
147147 }
148148 ]
149149 ports = ["22"]
150- protocols = ["TCP "]
150+ protocols = ["tcp "]
151151 },
152152 targets = [
153153 {
@@ -190,7 +190,7 @@ resource "oxide_vpc_firewall_rules" "{{.BlockName}}" {
190190 }
191191 ]
192192 ports = ["443"]
193- protocols = ["TCP "]
193+ protocols = ["tcp "]
194194 },
195195 targets = [
196196 {
@@ -354,7 +354,7 @@ func checkResourceFirewallRulesUpdate(resourceName string) resource.TestCheckFun
354354 resource .TestCheckResourceAttrSet (resourceName , "rules.0.filters.hosts.0.type" ),
355355 resource .TestCheckResourceAttrSet (resourceName , "rules.0.filters.hosts.0.value" ),
356356 resource .TestCheckResourceAttr (resourceName , "rules.0.filters.ports.0" , "443" ),
357- resource .TestCheckResourceAttr (resourceName , "rules.0.filters.protocols.0" , "TCP " ),
357+ resource .TestCheckResourceAttr (resourceName , "rules.0.filters.protocols.0" , "tcp " ),
358358 resource .TestCheckResourceAttr (resourceName , "rules.0.targets.0.type" , "subnet" ),
359359 resource .TestCheckResourceAttrSet (resourceName , "rules.0.targets.0.value" ),
360360 // Rule 2.
@@ -367,7 +367,7 @@ func checkResourceFirewallRulesUpdate(resourceName string) resource.TestCheckFun
367367 resource .TestCheckResourceAttrSet (resourceName , "rules.1.filters.hosts.0.type" ),
368368 resource .TestCheckResourceAttrSet (resourceName , "rules.1.filters.hosts.0.value" ),
369369 resource .TestCheckResourceAttr (resourceName , "rules.1.filters.ports.0" , "22" ),
370- resource .TestCheckResourceAttr (resourceName , "rules.1.filters.protocols.0" , "TCP " ),
370+ resource .TestCheckResourceAttr (resourceName , "rules.1.filters.protocols.0" , "tcp " ),
371371 resource .TestCheckResourceAttr (resourceName , "rules.1.targets.0.type" , "subnet" ),
372372 resource .TestCheckResourceAttrSet (resourceName , "rules.1.targets.0.value" ),
373373 }... )
@@ -389,7 +389,7 @@ func checkResourceFirewallRulesUpdate2(resourceName, vpcName string) resource.Te
389389 resource .TestCheckResourceAttrSet (resourceName , "rules.0.filters.hosts.0.type" ),
390390 resource .TestCheckResourceAttrSet (resourceName , "rules.0.filters.hosts.0.value" ),
391391 resource .TestCheckResourceAttr (resourceName , "rules.0.filters.ports.0" , "443" ),
392- resource .TestCheckResourceAttr (resourceName , "rules.0.filters.protocols.0" , "TCP " ),
392+ resource .TestCheckResourceAttr (resourceName , "rules.0.filters.protocols.0" , "tcp " ),
393393 resource .TestCheckResourceAttr (resourceName , "rules.0.targets.0.type" , "subnet" ),
394394 resource .TestCheckResourceAttrSet (resourceName , "rules.0.targets.0.value" ),
395395 }... )
0 commit comments