mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Skip migrations if we're not running acc tests.
This commit is contained in:
parent
300bae3244
commit
33b526aa10
|
@ -14,6 +14,9 @@ import (
|
|||
)
|
||||
|
||||
func TestComputeInstanceMigrateState(t *testing.T) {
|
||||
if os.Getenv(resource.TestEnvVar) == "" {
|
||||
t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar))
|
||||
}
|
||||
cases := map[string]struct {
|
||||
StateVersion int
|
||||
Attributes map[string]string
|
||||
|
@ -70,6 +73,9 @@ func TestComputeInstanceMigrateState(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestComputeInstanceMigrateState_empty(t *testing.T) {
|
||||
if os.Getenv(resource.TestEnvVar) == "" {
|
||||
t.Skip(fmt.Sprintf("Network access not allowed; use %s=1 to enable", resource.TestEnvVar))
|
||||
}
|
||||
var is *terraform.InstanceState
|
||||
var meta interface{}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user