Skip to content

Commit 4bf5ecb

Browse files
committed
Uncomment request_body_inspection_size tests - GA API is live
1 parent 2b7a69a commit 4bf5ecb

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

mmv1/third_party/terraform/services/compute/resource_compute_security_policy_test.go.tmpl

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -295,18 +295,15 @@ func TestAccComputeSecurityPolicy_withAdvancedOptionsConfig(t *testing.T) {
295295
ImportState: true,
296296
ImportStateVerify: true,
297297
},
298-
/*
299-
// Uncomment when GA API becomes available
300-
// Add request_body_inspection_size value
301-
{
302-
Config: testAccComputeSecurityPolicy_withAdvancedOptionsConfig_update4(spName),
303-
},
304-
{
305-
ResourceName: "google_compute_security_policy.policy",
306-
ImportState: true,
307-
ImportStateVerify: true,
308-
},
309-
*/
298+
// Add request_body_inspection_size value
299+
{
300+
Config: testAccComputeSecurityPolicy_withAdvancedOptionsConfig_update4(spName),
301+
},
302+
{
303+
ResourceName: "google_compute_security_policy.policy",
304+
ImportState: true,
305+
ImportStateVerify: true,
306+
},
310307
{
311308
Config: testAccComputeSecurityPolicy_basic(spName, "CLOUD_ARMOR"),
312309
},
@@ -1518,10 +1515,8 @@ resource "google_compute_security_policy" "policy" {
15181515
`, spName)
15191516
}
15201517

1521-
/*
1522-
// Uncomment when GA API becomes available
15231518
func testAccComputeSecurityPolicy_withAdvancedOptionsConfig_update4(spName string) string {
1524-
return fmt.Sprintf(`
1519+
return fmt.Sprintf(`
15251520
resource "google_compute_security_policy" "policy" {
15261521
name = "%s"
15271522
advanced_options_config {
@@ -1539,7 +1534,6 @@ resource "google_compute_security_policy" "policy" {
15391534
}
15401535
`, spName)
15411536
}
1542-
*/
15431537

15441538
func testAccComputeSecurityPolicy_withoutAdaptiveProtection(spName string) string {
15451539
return fmt.Sprintf(`

0 commit comments

Comments
 (0)