mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 17:16:44 +00:00
![Paddy](/assets/img/avatar_default.png)
Because of weirdness in our test runner, our CI tries to run every test that matches the TestAcc* prefix, _even if it's commented out_. This leads to failed tests in CI for tests that aren't even running, which is annoying. This PR just lowercases the first letter of the test so it doesn't match the prefix anymore and the CI won't try to run it.
70 lines
1.6 KiB
Go
70 lines
1.6 KiB
Go
package google
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/helper/acctest"
|
|
"github.com/hashicorp/terraform/helper/resource"
|
|
)
|
|
|
|
func TestAccComputeAddress_importBasic(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
resourceName := "google_compute_address.foobar"
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
Providers: testAccProviders,
|
|
CheckDestroy: testAccCheckComputeAddressDestroy,
|
|
Steps: []resource.TestStep{
|
|
resource.TestStep{
|
|
Config: testAccComputeAddress_basic(acctest.RandString(10)),
|
|
},
|
|
|
|
resource.TestStep{
|
|
ResourceName: resourceName,
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
},
|
|
})
|
|
}
|
|
|
|
/* Disabled pending support for importing beta resources. See:
|
|
https://github.com/terraform-providers/terraform-provider-google/issues/694
|
|
|
|
func testAccComputeAddress_importInternal(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
resource.Test(t, resource.TestCase{
|
|
PreCheck: func() { testAccPreCheck(t) },
|
|
Providers: testAccProviders,
|
|
CheckDestroy: testAccCheckComputeAddressDestroy,
|
|
Steps: []resource.TestStep{
|
|
resource.TestStep{
|
|
Config: testAccComputeAddress_internal(acctest.RandString(10)),
|
|
},
|
|
|
|
resource.TestStep{
|
|
ResourceName: "google_compute_address.internal",
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
|
|
resource.TestStep{
|
|
ResourceName: "google_compute_address.internal_with_subnet",
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
|
|
resource.TestStep{
|
|
ResourceName: "google_compute_address.internal_with_subnet_and_address",
|
|
ImportState: true,
|
|
ImportStateVerify: true,
|
|
},
|
|
},
|
|
})
|
|
}
|
|
|
|
*/
|