Skip to content

Commit

Permalink
support launch template
Browse files Browse the repository at this point in the history
  • Loading branch information
景奇 authored and xiaozhu36 committed Apr 23, 2019
1 parent 02dc277 commit 6eb7e22
Show file tree
Hide file tree
Showing 8 changed files with 1,078 additions and 0 deletions.
28 changes: 28 additions & 0 deletions alicloud/import_alicloud_launch_template_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package alicloud

import (
"testing"

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

func TestAccAlicloudLaunchTemplate_importBasic(t *testing.T) {
resourceName := "alicloud_launch_template.template"

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckLaunchTemplateDestroy,
Steps: []resource.TestStep{
{
Config: lauchTemplateConfig,
},

{
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
},
},
})
}
1 change: 1 addition & 0 deletions alicloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ func Provider() terraform.ResourceProvider {
"alicloud_network_interface": resourceAliyunNetworkInterface(),
"alicloud_network_interface_attachment": resourceAliyunNetworkInterfaceAttachment(),
"alicloud_snapshot": resourceAliyunSnapshot(),
"alicloud_launch_template": resourceAliyunLaunchTemplate(),
"alicloud_security_group": resourceAliyunSecurityGroup(),
"alicloud_security_group_rule": resourceAliyunSecurityGroupRule(),
"alicloud_db_database": resourceAlicloudDBDatabase(),
Expand Down
Loading

0 comments on commit 6eb7e22

Please sign in to comment.