Skip to content

Commit 2eac8c3

Browse files
committed
resource/gitlab_label: Remove unnecessary large test
1 parent f618f03 commit 2eac8c3

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

internal/provider/resource_gitlab_label_test.go

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,6 @@ func TestAccGitlabLabel_basic(t *testing.T) {
5555
}),
5656
),
5757
},
58-
// Create a project and lots of labels with default options
59-
{
60-
Config: testAccGitlabLabelLargeConfig(rInt),
61-
Check: resource.ComposeTestCheckFunc(
62-
testAccCheckGitlabLabelExists("gitlab_label.fixme.20", &label),
63-
testAccCheckGitlabLabelExists("gitlab_label.fixme.30", &label),
64-
testAccCheckGitlabLabelExists("gitlab_label.fixme.40", &label),
65-
testAccCheckGitlabLabelExists("gitlab_label.fixme.10", &label),
66-
testAccCheckGitlabLabelAttributes(&label, &testAccGitlabLabelExpectedAttributes{
67-
Name: "FIXME11",
68-
Color: "#ffcc00",
69-
Description: "fix this test",
70-
}),
71-
),
72-
},
73-
// Update the lots of labels to change the parameters
74-
{
75-
Config: testAccGitlabLabelUpdateLargeConfig(rInt),
76-
Check: resource.ComposeTestCheckFunc(
77-
testAccCheckGitlabLabelExists("gitlab_label.fixme.20", &label),
78-
testAccCheckGitlabLabelExists("gitlab_label.fixme.30", &label),
79-
testAccCheckGitlabLabelExists("gitlab_label.fixme.40", &label),
80-
testAccCheckGitlabLabelExists("gitlab_label.fixme.10", &label),
81-
testAccCheckGitlabLabelAttributes(&label, &testAccGitlabLabelExpectedAttributes{
82-
Name: "FIXME11",
83-
Color: "#ff0000",
84-
Description: "red label",
85-
}),
86-
),
87-
},
8858
},
8959
})
9060
}
@@ -201,45 +171,3 @@ resource "gitlab_label" "fixme" {
201171
}
202172
`, rInt, rInt)
203173
}
204-
205-
func testAccGitlabLabelLargeConfig(rInt int) string {
206-
return fmt.Sprintf(`
207-
resource "gitlab_project" "foo" {
208-
name = "foo-%d"
209-
description = "Terraform acceptance tests"
210-
211-
# So that acceptance tests can be run in a gitlab organization
212-
# with no billing
213-
visibility_level = "public"
214-
}
215-
216-
resource "gitlab_label" "fixme" {
217-
project = "${gitlab_project.foo.id}"
218-
name = format("FIXME%%02d", count.index+1)
219-
count = 100
220-
color = "#ffcc00"
221-
description = "fix this test"
222-
}
223-
`, rInt)
224-
}
225-
226-
func testAccGitlabLabelUpdateLargeConfig(rInt int) string {
227-
return fmt.Sprintf(`
228-
resource "gitlab_project" "foo" {
229-
name = "foo-%d"
230-
description = "Terraform acceptance tests"
231-
232-
# So that acceptance tests can be run in a gitlab organization
233-
# with no billing
234-
visibility_level = "public"
235-
}
236-
237-
resource "gitlab_label" "fixme" {
238-
project = "${gitlab_project.foo.id}"
239-
name = format("FIXME%%02d", count.index+1)
240-
count = 99
241-
color = "#ff0000"
242-
description = "red label"
243-
}
244-
`, rInt)
245-
}

0 commit comments

Comments
 (0)