Skip to content

Force recreate gitlab_group when not found on read

when a group was manually deleted, the read operation was throwing an unrecoverable 404 error:

GET https://gitlab.com/api/v4/projects/16151185: 404 {message: 404 Project Not Found}

We should clear this from the state so that we can force recreation of the group

▶ acctests gitlab TestAccGitlabGroup_
=== RUN   TestAccGitlabGroup_basic
--- PASS: TestAccGitlabGroup_basic (29.33s)
=== RUN   TestAccGitlabGroup_import
--- PASS: TestAccGitlabGroup_import (12.77s)
=== RUN   TestAccGitlabGroup_nested
--- PASS: TestAccGitlabGroup_nested (54.77s)
=== RUN   TestAccGitlabGroup_disappears
--- PASS: TestAccGitlabGroup_disappears (4.94s)
PASS
ok  	github.com/terraform-providers/terraform-provider-gitlab/gitlab	101.835s

Merge request reports