@@ -33,12 +33,17 @@ func TestAccComputeForwardingRule_forwardingRuleGlobalInternallbExample(t *testi
3333
3434 resource .Test (t , resource.TestCase {
3535 PreCheck : func () { testAccPreCheck (t ) },
36- Providers : testAccProvidersOiCS ,
36+ Providers : testAccProviders ,
3737 CheckDestroy : testAccCheckComputeForwardingRuleDestroy ,
3838 Steps : []resource.TestStep {
3939 {
4040 Config : testAccComputeForwardingRule_forwardingRuleGlobalInternallbExample (context ),
4141 },
42+ {
43+ ResourceName : "google_compute_forwarding_rule.default" ,
44+ ImportState : true ,
45+ ImportStateVerify : true ,
46+ },
4247 },
4348 })
4449}
@@ -47,7 +52,6 @@ func testAccComputeForwardingRule_forwardingRuleGlobalInternallbExample(context
4752 return Nprintf (`
4853// Forwarding rule for Internal Load Balancing
4954resource "google_compute_forwarding_rule" "default" {
50- provider = "google-beta"
5155 name = "tf-test-website-forwarding-rule%{random_suffix}"
5256 region = "us-central1"
5357 load_balancing_scheme = "INTERNAL"
@@ -58,13 +62,11 @@ resource "google_compute_forwarding_rule" "default" {
5862 subnetwork = "${google_compute_subnetwork.default.name}"
5963}
6064resource "google_compute_region_backend_service" "backend" {
61- provider = "google-beta"
6265 name = "tf-test-website-backend%{random_suffix}"
6366 region = "us-central1"
6467 health_checks = ["${google_compute_health_check.hc.self_link}"]
6568}
6669resource "google_compute_health_check" "hc" {
67- provider = "google-beta"
6870 name = "check-tf-test-website-backend%{random_suffix}"
6971 check_interval_sec = 1
7072 timeout_sec = 1
@@ -73,12 +75,10 @@ resource "google_compute_health_check" "hc" {
7375 }
7476}
7577resource "google_compute_network" "default" {
76- provider = "google-beta"
7778 name = "tf-test-website-net%{random_suffix}"
7879 auto_create_subnetworks = false
7980}
8081resource "google_compute_subnetwork" "default" {
81- provider = "google-beta"
8282 name = "tf-test-website-net%{random_suffix}"
8383 ip_cidr_range = "10.0.0.0/16"
8484 region = "us-central1"
0 commit comments