Skip to content

Commit

Permalink
Magic Modules changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye authored and modular-magician committed Oct 24, 2018
1 parent ed7f478 commit 081974d
Show file tree
Hide file tree
Showing 27 changed files with 173 additions and 260 deletions.
18 changes: 9 additions & 9 deletions google-beta/resource_compute_address_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeAddress_addressBasicExample(t *testing.T) {
func TestAccComputeAddress_AddressBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeAddress_addressBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeAddressDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeAddress_addressBasicExample(acctest.RandString(10)),
Config: testAccComputeAddress_AddressBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_address.ip_address",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeAddress_addressBasicExample(t *testing.T) {
})
}

func testAccComputeAddress_addressBasicExample(val string) string {
func testAccComputeAddress_AddressBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_address" "ip_address" {
name = "my-address-%s"
Expand All @@ -51,7 +51,7 @@ resource "google_compute_address" "ip_address" {
)
}

func TestAccComputeAddress_addressWithSubnetworkExample(t *testing.T) {
func TestAccComputeAddress_AddressWithSubnetworkExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -60,7 +60,7 @@ func TestAccComputeAddress_addressWithSubnetworkExample(t *testing.T) {
CheckDestroy: testAccCheckComputeAddressDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeAddress_addressWithSubnetworkExample(acctest.RandString(10)),
Config: testAccComputeAddress_AddressWithSubnetworkExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_address.internal_with_subnet_and_address",
Expand All @@ -71,7 +71,7 @@ func TestAccComputeAddress_addressWithSubnetworkExample(t *testing.T) {
})
}

func testAccComputeAddress_addressWithSubnetworkExample(val string) string {
func testAccComputeAddress_AddressWithSubnetworkExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_network" "default" {
name = "my-network-%s"
Expand All @@ -95,7 +95,7 @@ resource "google_compute_address" "internal_with_subnet_and_address" {
)
}

func TestAccComputeAddress_instanceWithIpExample(t *testing.T) {
func TestAccComputeAddress_InstanceWithIpExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -104,7 +104,7 @@ func TestAccComputeAddress_instanceWithIpExample(t *testing.T) {
CheckDestroy: testAccCheckComputeAddressDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeAddress_instanceWithIpExample(acctest.RandString(10)),
Config: testAccComputeAddress_InstanceWithIpExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_address.static",
Expand All @@ -115,7 +115,7 @@ func TestAccComputeAddress_instanceWithIpExample(t *testing.T) {
})
}

func testAccComputeAddress_instanceWithIpExample(val string) string {
func testAccComputeAddress_InstanceWithIpExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_address" "static" {
name = "ipv4-address-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_autoscaler_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeAutoscaler_autoscalerBasicExample(t *testing.T) {
func TestAccComputeAutoscaler_AutoscalerBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeAutoscaler_autoscalerBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeAutoscalerDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeAutoscaler_autoscalerBasicExample(acctest.RandString(10)),
Config: testAccComputeAutoscaler_AutoscalerBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_autoscaler.foobar",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeAutoscaler_autoscalerBasicExample(t *testing.T) {
})
}

func testAccComputeAutoscaler_autoscalerBasicExample(val string) string {
func testAccComputeAutoscaler_AutoscalerBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_autoscaler" "foobar" {
name = "my-autoscaler-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_backend_bucket_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeBackendBucket_backendBucketBasicExample(t *testing.T) {
func TestAccComputeBackendBucket_BackendBucketBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeBackendBucket_backendBucketBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeBackendBucketDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeBackendBucket_backendBucketBasicExample(acctest.RandString(10)),
Config: testAccComputeBackendBucket_BackendBucketBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_backend_bucket.image_backend",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeBackendBucket_backendBucketBasicExample(t *testing.T) {
})
}

func testAccComputeBackendBucket_backendBucketBasicExample(val string) string {
func testAccComputeBackendBucket_BackendBucketBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_backend_bucket" "image_backend" {
name = "image-backend-bucket-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_disk_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeDisk_diskBasicExample(t *testing.T) {
func TestAccComputeDisk_DiskBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeDisk_diskBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeDiskDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeDisk_diskBasicExample(acctest.RandString(10)),
Config: testAccComputeDisk_DiskBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_disk.default",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeDisk_diskBasicExample(t *testing.T) {
})
}

func testAccComputeDisk_diskBasicExample(val string) string {
func testAccComputeDisk_DiskBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_disk" "default" {
name = "test-disk-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_firewall_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeFirewall_firewallBasicExample(t *testing.T) {
func TestAccComputeFirewall_FirewallBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeFirewall_firewallBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeFirewallDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeFirewall_firewallBasicExample(acctest.RandString(10)),
Config: testAccComputeFirewall_FirewallBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_firewall.default",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeFirewall_firewallBasicExample(t *testing.T) {
})
}

func testAccComputeFirewall_firewallBasicExample(val string) string {
func testAccComputeFirewall_FirewallBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_firewall" "default" {
name = "test-firewall-%s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeForwardingRule_forwardingRuleBasicExample(t *testing.T) {
func TestAccComputeForwardingRule_ForwardingRuleBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeForwardingRule_forwardingRuleBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeForwardingRuleDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeForwardingRule_forwardingRuleBasicExample(acctest.RandString(10)),
Config: testAccComputeForwardingRule_ForwardingRuleBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_forwarding_rule.default",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeForwardingRule_forwardingRuleBasicExample(t *testing.T) {
})
}

func testAccComputeForwardingRule_forwardingRuleBasicExample(val string) string {
func testAccComputeForwardingRule_ForwardingRuleBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_forwarding_rule" "default" {
name = "website-forwarding-rule-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_global_address_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeGlobalAddress_globalAddressBasicExample(t *testing.T) {
func TestAccComputeGlobalAddress_GlobalAddressBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeGlobalAddress_globalAddressBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeGlobalAddressDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeGlobalAddress_globalAddressBasicExample(acctest.RandString(10)),
Config: testAccComputeGlobalAddress_GlobalAddressBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_global_address.default",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeGlobalAddress_globalAddressBasicExample(t *testing.T) {
})
}

func testAccComputeGlobalAddress_globalAddressBasicExample(val string) string {
func testAccComputeGlobalAddress_GlobalAddressBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_global_address" "default" {
name = "global-appserver-ip-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_health_check_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeHealthCheck_healthCheckBasicExample(t *testing.T) {
func TestAccComputeHealthCheck_HealthCheckBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeHealthCheck_healthCheckBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeHealthCheckDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeHealthCheck_healthCheckBasicExample(acctest.RandString(10)),
Config: testAccComputeHealthCheck_HealthCheckBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_health_check.internal-health-check",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeHealthCheck_healthCheckBasicExample(t *testing.T) {
})
}

func testAccComputeHealthCheck_healthCheckBasicExample(val string) string {
func testAccComputeHealthCheck_HealthCheckBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_health_check" "internal-health-check" {
name = "internal-service-health-check-%s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeHttpHealthCheck_httpHealthCheckBasicExample(t *testing.T) {
func TestAccComputeHttpHealthCheck_HttpHealthCheckBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeHttpHealthCheck_httpHealthCheckBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeHttpHealthCheckDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeHttpHealthCheck_httpHealthCheckBasicExample(acctest.RandString(10)),
Config: testAccComputeHttpHealthCheck_HttpHealthCheckBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_http_health_check.default",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeHttpHealthCheck_httpHealthCheckBasicExample(t *testing.T) {
})
}

func testAccComputeHttpHealthCheck_httpHealthCheckBasicExample(val string) string {
func testAccComputeHttpHealthCheck_HttpHealthCheckBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_http_health_check" "default" {
name = "authentication-health-check-%s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeHttpsHealthCheck_httpsHealthCheckBasicExample(t *testing.T) {
func TestAccComputeHttpsHealthCheck_HttpsHealthCheckBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeHttpsHealthCheck_httpsHealthCheckBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeHttpsHealthCheckDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeHttpsHealthCheck_httpsHealthCheckBasicExample(acctest.RandString(10)),
Config: testAccComputeHttpsHealthCheck_HttpsHealthCheckBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_https_health_check.default",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeHttpsHealthCheck_httpsHealthCheckBasicExample(t *testing.T) {
})
}

func testAccComputeHttpsHealthCheck_httpsHealthCheckBasicExample(val string) string {
func testAccComputeHttpsHealthCheck_HttpsHealthCheckBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_https_health_check" "default" {
name = "authentication-health-check-%s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample(t *testing.T) {
func TestAccComputeRegionAutoscaler_RegionAutoscalerBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeRegionAutoscalerDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeRegionAutoscaler_regionAutoscalerBasicExample(acctest.RandString(10)),
Config: testAccComputeRegionAutoscaler_RegionAutoscalerBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_region_autoscaler.foobar",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample(t *testing.T) {
})
}

func testAccComputeRegionAutoscaler_regionAutoscalerBasicExample(val string) string {
func testAccComputeRegionAutoscaler_RegionAutoscalerBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_region_autoscaler" "foobar" {
name = "my-region-autoscaler-%s"
Expand Down
6 changes: 3 additions & 3 deletions google-beta/resource_compute_region_disk_generated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/hashicorp/terraform/helper/resource"
)

func TestAccComputeRegionDisk_regionDiskBasicExample(t *testing.T) {
func TestAccComputeRegionDisk_RegionDiskBasicExample(t *testing.T) {
t.Parallel()

resource.Test(t, resource.TestCase{
Expand All @@ -31,7 +31,7 @@ func TestAccComputeRegionDisk_regionDiskBasicExample(t *testing.T) {
CheckDestroy: testAccCheckComputeRegionDiskDestroy,
Steps: []resource.TestStep{
{
Config: testAccComputeRegionDisk_regionDiskBasicExample(acctest.RandString(10)),
Config: testAccComputeRegionDisk_RegionDiskBasicExample(acctest.RandString(10)),
},
{
ResourceName: "google_compute_region_disk.regiondisk",
Expand All @@ -42,7 +42,7 @@ func TestAccComputeRegionDisk_regionDiskBasicExample(t *testing.T) {
})
}

func testAccComputeRegionDisk_regionDiskBasicExample(val string) string {
func testAccComputeRegionDisk_RegionDiskBasicExample(val string) string {
return fmt.Sprintf(`
resource "google_compute_region_disk" "regiondisk" {
name = "my-region-disk-%s"
Expand Down
Loading

0 comments on commit 081974d

Please sign in to comment.