Skip to content

Commit c1f9d3f

Browse files
Expect error when clearing custom performance in Filestore (#13756)
[upstream:135ce53aab48839b20eb9f4c270b994834406664] Signed-off-by: Modular Magician <[email protected]>
1 parent 0a89c0f commit c1f9d3f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

google/services/filestore/resource_filestore_instance_test.go

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"context"
77
"fmt"
88
"reflect"
9+
"regexp"
910
"testing"
1011

1112
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
@@ -325,13 +326,8 @@ func TestAccFilestoreInstance_performanceConfig(t *testing.T) {
325326
ImportStateVerifyIgnore: []string{"zone"},
326327
},
327328
{
328-
Config: testAccFilestoreInstance_defaultConfig(name, location, tier),
329-
},
330-
{
331-
ResourceName: "google_filestore_instance.instance",
332-
ImportState: true,
333-
ImportStateVerify: true,
334-
ImportStateVerifyIgnore: []string{"zone"},
329+
Config: testAccFilestoreInstance_defaultConfig(name, location, tier),
330+
ExpectError: regexp.MustCompile("custom performance cannot be cleared"),
335331
},
336332
},
337333
})

0 commit comments

Comments
 (0)