From 2ef7b10b816577f0f1d5cdbd04ab056e23cd69ab Mon Sep 17 00:00:00 2001 From: Tomer Heber Date: Mon, 12 Feb 2024 09:50:34 -0600 Subject: [PATCH] remove parent_project_id --- client/project.go | 5 ++--- client/project_test.go | 5 ++--- env0/data_module_testing_project.go | 5 ----- env0/data_module_testing_project_test.go | 6 ++---- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/client/project.go b/client/project.go index e9035720..76d3fbc9 100644 --- a/client/project.go +++ b/client/project.go @@ -27,9 +27,8 @@ type ProjectUpdatePayload struct { } type ModuleTestingProject struct { - Name string `json:"name"` - ParentProjectId string `json:"parentProjectId"` - Id string `json:"id"` + Name string `json:"name"` + Id string `json:"id"` } func (client *ApiClient) Projects() ([]Project, error) { diff --git a/client/project_test.go b/client/project_test.go index 7336b133..06d84933 100644 --- a/client/project_test.go +++ b/client/project_test.go @@ -22,9 +22,8 @@ var _ = Describe("Project", func() { } mockModuleTestingProject := ModuleTestingProject{ - Id: "idx", - Name: "namex", - ParentProjectId: "parentProjectIdx", + Id: "idx", + Name: "namex", } Describe("ProjectCreate", func() { diff --git a/env0/data_module_testing_project.go b/env0/data_module_testing_project.go index b2820d76..9a290a24 100644 --- a/env0/data_module_testing_project.go +++ b/env0/data_module_testing_project.go @@ -24,11 +24,6 @@ func dataModuleTestingProject() *schema.Resource { Description: "the module testing project id", Computed: true, }, - "parent_project_id": { - Type: schema.TypeString, - Description: "the module testing parent project id", - Computed: true, - }, }, } } diff --git a/env0/data_module_testing_project_test.go b/env0/data_module_testing_project_test.go index 8de50114..468dd4f1 100644 --- a/env0/data_module_testing_project_test.go +++ b/env0/data_module_testing_project_test.go @@ -15,9 +15,8 @@ func TestModuleTestingProjectDataSource(t *testing.T) { accessor := dataSourceAccessor(resourceType, resourceName) moduleTestingProject := client.ModuleTestingProject{ - Name: "namex", - ParentProjectId: "pidx", - Id: "idx", + Name: "namex", + Id: "idx", } getTestCase := func() resource.TestCase { @@ -28,7 +27,6 @@ func TestModuleTestingProjectDataSource(t *testing.T) { Check: resource.ComposeAggregateTestCheckFunc( resource.TestCheckResourceAttr(accessor, "name", moduleTestingProject.Name), resource.TestCheckResourceAttr(accessor, "id", moduleTestingProject.Id), - resource.TestCheckResourceAttr(accessor, "parent_project_id", moduleTestingProject.ParentProjectId), ), }, },