Skip to content

Commit

Permalink
Initial addition of generated Image to Terraform.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson authored and modular-magician committed Dec 29, 2018
1 parent 115c62c commit 20a24ac
Show file tree
Hide file tree
Showing 8 changed files with 601 additions and 228 deletions.
5 changes: 2 additions & 3 deletions google-beta/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ func TestAccComputeImage_resolveImage(t *testing.T) {
fam := fmt.Sprintf("test-image-family-%s", rand)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckComputeImageDestroy,
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testAccComputeImage_resolving(name, fam),
Expand Down
1 change: 0 additions & 1 deletion google-beta/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_compute_attached_disk": resourceComputeAttachedDisk(),
"google_compute_backend_service": resourceComputeBackendService(),
"google_compute_global_forwarding_rule": resourceComputeGlobalForwardingRule(),
"google_compute_image": resourceComputeImage(),
"google_compute_instance": resourceComputeInstance(),
"google_compute_instance_from_template": resourceComputeInstanceFromTemplate(),
"google_compute_instance_group": resourceComputeInstanceGroup(),
Expand Down
1 change: 1 addition & 0 deletions google-beta/provider_compute_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var GeneratedComputeResourcesMap = map[string]*schema.Resource{
"google_compute_http_health_check": resourceComputeHttpHealthCheck(),
"google_compute_https_health_check": resourceComputeHttpsHealthCheck(),
"google_compute_health_check": resourceComputeHealthCheck(),
"google_compute_image": resourceComputeImage(),
"google_compute_interconnect_attachment": resourceComputeInterconnectAttachment(),
"google_compute_region_autoscaler": resourceComputeRegionAutoscaler(),
"google_compute_region_disk": resourceComputeRegionDisk(),
Expand Down
Loading

0 comments on commit 20a24ac

Please sign in to comment.