Skip to content

Commit

Permalink
wrap export/import tests in feature toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Helmerich committed May 23, 2019
1 parent 7f97253 commit 06a9caa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func testAccCheckComputeNetworkPeeringAutoCreateRoutes(v bool, peering *computeB
}
}

<% unless version == 'ga' -%>
func testAccCheckComputeNetworkPeeringImportCustomRoutes(v bool, peering *computeBeta.NetworkPeering) resource.TestCheckFunc {
return func(s *terraform.State) error {
if peering.ImportCustomRoutes != v {
Expand All @@ -126,6 +127,7 @@ func testAccCheckComputeNetworkPeeringExportCustomRoutes(v bool, peering *comput
return nil
}
}
<% end -%>

func testAccComputeNetworkPeering_basic() string {
s := `
Expand Down

0 comments on commit 06a9caa

Please sign in to comment.