Skip to content

Commit

Permalink
Vpnaas: IKE Policy resource (gophercloud#316)
Browse files Browse the repository at this point in the history
* Vendor changes

* Added new ikepolicy resource

* Added waitforstates for create and update

* added doc fixes
  • Loading branch information
simonre authored and jtopjian committed May 13, 2018
1 parent 6fd4668 commit a6f84e6
Show file tree
Hide file tree
Showing 13 changed files with 1,168 additions and 1 deletion.
28 changes: 28 additions & 0 deletions openstack/import_openstack_vpnaas_ike_policy_v2_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package openstack

import (
"testing"

"github.com/hashicorp/terraform/helper/resource"
)

func TestAccIKEPolicy_importBasic(t *testing.T) {
resourceName := "openstack_vpnaas_ike_policy_v2.policy_1"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheckVPN(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckIKEPolicyV2Destroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccIKEPolicyV2_basic,
},

resource.TestStep{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
1 change: 1 addition & 0 deletions openstack/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func Provider() terraform.ResourceProvider {
"openstack_objectstorage_object_v1": resourceObjectStorageObjectV1(),
"openstack_vpnaas_ipsec_policy_v2": resourceIPSecPolicyV2(),
"openstack_vpnaas_service_v2": resourceServiceV2(),
"openstack_vpnaas_ike_policy_v2": resourceIKEPolicyV2(),
},

ConfigureFunc: configureProvider,
Expand Down
Loading

0 comments on commit a6f84e6

Please sign in to comment.