Skip to content

Commit ef2baf1

Browse files
committed
adding in custom import in tests
1 parent bafc9e8 commit ef2baf1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mmv1/products/apigee/Space.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ custom_code:
3232
autogen_async: true
3333
iam_policy:
3434
method_name_separator: ':'
35-
parent_resource_attribute: 'name'
35+
parent_resource_attribute: 'space_id'
3636
fetch_iam_policy_verb: 'GET'
3737
set_iam_policy_verb: 'POST'
3838
wrapped_policy_obj: false

mmv1/third_party/terraform/services/apigee/resource_apigee_space_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package apigee_test
22

33
import (
4+
"fmt"
45
"testing"
56

67
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
@@ -32,6 +33,7 @@ func TestAccApigeeSpace_basicTest(t *testing.T) {
3233
},
3334
{
3435
ResourceName: "google_apigee_space.primary",
36+
ImportStateId: fmt.Sprintf("organizations/%s/spaces/%s", context["org_id"], context["space_id"]),
3537
ImportState: true,
3638
ImportStateVerify: true,
3739
},

0 commit comments

Comments
 (0)