mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-14 17:44:26 -06:00
Fixing TestAccFWPolicyV1
This commit is contained in:
parent
a6b9a63231
commit
fe668a1ac7
@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/rackspace/gophercloud/openstack/networking/v2/extensions/fwaas/policies"
|
"github.com/rackspace/gophercloud/openstack/networking/v2/extensions/fwaas/policies"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAccFWPolicyV1(t *testing.T) {
|
func TestAccFWPolicyV1_basic(t *testing.T) {
|
||||||
resource.Test(t, resource.TestCase{
|
resource.Test(t, resource.TestCase{
|
||||||
PreCheck: func() { testAccPreCheck(t) },
|
PreCheck: func() { testAccPreCheck(t) },
|
||||||
Providers: testAccProviders,
|
Providers: testAccProviders,
|
||||||
@ -25,6 +25,16 @@ func TestAccFWPolicyV1(t *testing.T) {
|
|||||||
"", "", 0),
|
"", "", 0),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAccFWPolicyV1_addRules(t *testing.T) {
|
||||||
|
resource.Test(t, resource.TestCase{
|
||||||
|
PreCheck: func() { testAccPreCheck(t) },
|
||||||
|
Providers: testAccProviders,
|
||||||
|
CheckDestroy: testAccCheckFWPolicyV1Destroy,
|
||||||
|
Steps: []resource.TestStep{
|
||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
Config: testFirewallPolicyConfigAddRules,
|
Config: testFirewallPolicyConfigAddRules,
|
||||||
Check: resource.ComposeTestCheckFunc(
|
Check: resource.ComposeTestCheckFunc(
|
||||||
@ -33,6 +43,16 @@ func TestAccFWPolicyV1(t *testing.T) {
|
|||||||
"accept_test", "terraform acceptance test", 2),
|
"accept_test", "terraform acceptance test", 2),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAccFWPolicyV1_deleteRules(t *testing.T) {
|
||||||
|
resource.Test(t, resource.TestCase{
|
||||||
|
PreCheck: func() { testAccPreCheck(t) },
|
||||||
|
Providers: testAccProviders,
|
||||||
|
CheckDestroy: testAccCheckFWPolicyV1Destroy,
|
||||||
|
Steps: []resource.TestStep{
|
||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
Config: testFirewallPolicyUpdateDeleteRule,
|
Config: testFirewallPolicyUpdateDeleteRule,
|
||||||
Check: resource.ComposeTestCheckFunc(
|
Check: resource.ComposeTestCheckFunc(
|
||||||
|
Loading…
Reference in New Issue
Block a user