Skip to content

Commit

Permalink
remove parent_project_id
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Feb 12, 2024
1 parent 6eefe70 commit 2ef7b10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
5 changes: 2 additions & 3 deletions client/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 2 additions & 3 deletions client/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ var _ = Describe("Project", func() {
}

mockModuleTestingProject := ModuleTestingProject{
Id: "idx",
Name: "namex",
ParentProjectId: "parentProjectIdx",
Id: "idx",
Name: "namex",
}

Describe("ProjectCreate", func() {
Expand Down
5 changes: 0 additions & 5 deletions env0/data_module_testing_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}
}
Expand Down
6 changes: 2 additions & 4 deletions env0/data_module_testing_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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),
),
},
},
Expand Down

0 comments on commit 2ef7b10

Please sign in to comment.