@@ -201,27 +201,26 @@ func TestAccGitlabGroup_nested(t *testing.T) {
201
201
}),
202
202
),
203
203
},
204
- // TODO In EE version, re-creating on the same path where a previous group was soft-deleted doesn't work.
205
- // {
206
- // Config: testAccGitlabNestedGroupConfig(rInt),
207
- // Check: resource.ComposeTestCheckFunc(
208
- // testAccCheckGitlabGroupExists("gitlab_group.foo", &group),
209
- // testAccCheckGitlabGroupExists("gitlab_group.foo2", &group2),
210
- // testAccCheckGitlabGroupExists("gitlab_group.nested_foo", &nestedGroup),
211
- // testAccCheckGitlabGroupAttributes(&nestedGroup, &testAccGitlabGroupExpectedAttributes{
212
- // Name: fmt.Sprintf("nfoo-name-%d", rInt),
213
- // Path: fmt.Sprintf("nfoo-path-%d", rInt),
214
- // Description: "Terraform acceptance tests",
215
- // LFSEnabled: true,
216
- // Visibility: "public", // default value
217
- // ProjectCreationLevel: "maintainer", // default value
218
- // SubGroupCreationLevel: "owner", // default value
219
- // TwoFactorGracePeriod: 48, // default value
220
- // DefaultBranchProtection: 2, // default value
221
- // Parent: &group,
222
- // }),
223
- // ),
224
- // },
204
+ {
205
+ Config : testAccGitlabNestedGroupConfig (rInt ),
206
+ Check : resource .ComposeTestCheckFunc (
207
+ testAccCheckGitlabGroupExists ("gitlab_group.foo" , & group ),
208
+ testAccCheckGitlabGroupExists ("gitlab_group.foo2" , & group2 ),
209
+ testAccCheckGitlabGroupExists ("gitlab_group.nested_foo" , & nestedGroup ),
210
+ testAccCheckGitlabGroupAttributes (& nestedGroup , & testAccGitlabGroupExpectedAttributes {
211
+ Name : fmt .Sprintf ("nfoo-name-%d" , rInt ),
212
+ Path : fmt .Sprintf ("nfoo-path-%d" , rInt ),
213
+ Description : "Terraform acceptance tests" ,
214
+ LFSEnabled : true ,
215
+ Visibility : "public" , // default value
216
+ ProjectCreationLevel : "maintainer" , // default value
217
+ SubGroupCreationLevel : "owner" , // default value
218
+ TwoFactorGracePeriod : 48 , // default value
219
+ DefaultBranchProtection : 2 , // default value
220
+ Parent : & group ,
221
+ }),
222
+ ),
223
+ },
225
224
},
226
225
})
227
226
}
0 commit comments