Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update testing rubic_category, rubric_level, scorecard, rm old test f… #513

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion opslevel/resource_opslevel_rubric_category.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (r *RubricCategoryResource) Read(ctx context.Context, req resource.ReadRequ
return
}

rubricCategory, err := r.client.GetCategory(opslevel.ID(data.Id.ValueString()))
rubricCategory, err := r.client.GetCategory(asID(data.Id))
if err != nil {
if (rubricCategory == nil || rubricCategory.Id == "") && opslevel.IsOpsLevelApiError(err) {
resp.State.RemoveResource(ctx)
Expand Down
2 changes: 1 addition & 1 deletion opslevel/resource_opslevel_rubric_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (r *RubricLevelResource) Read(ctx context.Context, req resource.ReadRequest
return
}

rubricLevel, err := r.client.GetLevel(opslevel.ID(stateModel.Id.ValueString()))
rubricLevel, err := r.client.GetLevel(asID(stateModel.Id))
if err != nil {
if (rubricLevel == nil || rubricLevel.Id == "") && opslevel.IsOpsLevelApiError(err) {
resp.State.RemoveResource(ctx)
Expand Down
94 changes: 0 additions & 94 deletions tests/remote/rubric_category.tftest.hcl

This file was deleted.

19 changes: 0 additions & 19 deletions tests/remote/rubric_category/main.tf

This file was deleted.

3 changes: 0 additions & 3 deletions tests/remote/rubric_category/outputs.tf

This file was deleted.

4 changes: 0 additions & 4 deletions tests/remote/rubric_category/variables.tf

This file was deleted.

165 changes: 0 additions & 165 deletions tests/remote/rubric_level.tftest.hcl

This file was deleted.

35 changes: 0 additions & 35 deletions tests/remote/rubric_level/main.tf

This file was deleted.

7 changes: 0 additions & 7 deletions tests/remote/rubric_level/outputs.tf

This file was deleted.

14 changes: 0 additions & 14 deletions tests/remote/rubric_level/variables.tf

This file was deleted.

Loading
Loading