Skip to content

Commit d44cc43

Browse files
committed
Remove skip-test checks and rely on build tags instead
1 parent 57cb499 commit d44cc43

File tree

78 files changed

+11
-242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+11
-242
lines changed

internal/provider/data_source_gitlab_branch_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ import (
1414

1515
func TestAccDataGitlabBranch_basic(t *testing.T) {
1616
rInt := acctest.RandInt()
17-
testAccCheck(t)
1817
project := testAccCreateProject(t)
1918
resource.Test(t, resource.TestCase{
20-
PreCheck: func() { testAccPreCheck(t) },
2119
ProviderFactories: providerFactories,
2220
Steps: []resource.TestStep{
2321
{

internal/provider/data_source_gitlab_group_membership_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ func TestAccDataSourceGitlabMembership_basic(t *testing.T) {
1515
rInt := acctest.RandInt()
1616

1717
resource.Test(t, resource.TestCase{
18-
PreCheck: func() { testAccPreCheck(t) },
1918
ProviderFactories: providerFactories,
2019
Steps: []resource.TestStep{
2120
// Create the group and one member
@@ -48,16 +47,13 @@ func TestAccDataSourceGitlabMembership_basic(t *testing.T) {
4847
}
4948

5049
func TestAccDataSourceGitlabMembership_pagination(t *testing.T) {
51-
testAccCheck(t)
52-
5350
userCount := 21
5451

5552
group := testAccCreateGroups(t, 1)[0]
5653
users := testAccCreateUsers(t, userCount)
5754
testAccAddGroupMembers(t, group.ID, users)
5855

5956
resource.Test(t, resource.TestCase{
60-
PreCheck: func() { testAccPreCheck(t) },
6157
ProviderFactories: providerFactories,
6258
Steps: []resource.TestStep{
6359
{

internal/provider/data_source_gitlab_group_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ func TestAccDataSourceGitlabGroup_basic(t *testing.T) {
1616
rString := fmt.Sprintf("%s", acctest.RandString(5)) // nolint // TODO: Resolve this golangci-lint issue: S1025: the argument is already a string, there's no need to use fmt.Sprintf (gosimple)
1717

1818
resource.Test(t, resource.TestCase{
19-
PreCheck: func() { testAccPreCheck(t) },
2019
ProviderFactories: providerFactories,
2120
Steps: []resource.TestStep{
2221
// Get group using its ID

internal/provider/data_source_gitlab_group_variable_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ import (
1212
)
1313

1414
func TestAccDataSourceGitlabGroupVariable_basic(t *testing.T) {
15-
testAccCheck(t)
16-
1715
testGroup := testAccCreateGroups(t, 1)[0]
1816

1917
resource.Test(t, resource.TestCase{
20-
PreCheck: func() { testAccPreCheck(t) },
2118
ProviderFactories: providerFactories,
2219
Steps: []resource.TestStep{
2320
{

internal/provider/data_source_gitlab_group_variables_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ import (
1212
)
1313

1414
func TestAccDataSourceGitlabGroupVariables_basic(t *testing.T) {
15-
testAccCheck(t)
16-
1715
testGroup := testAccCreateGroups(t, 1)[0]
1816
testVariables := make([]*gitlab.GroupVariable, 0)
1917
for i := 0; i < 25; i++ {
2018
testVariables = append(testVariables, testAccCreateGroupVariable(t, testGroup.ID))
2119
}
2220

2321
resource.Test(t, resource.TestCase{
24-
PreCheck: func() { testAccPreCheck(t) },
2522
ProviderFactories: providerFactories,
2623
Steps: []resource.TestStep{
2724
{

internal/provider/data_source_gitlab_instance_deploy_keys_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
)
1212

1313
func TestAccDataSourceGitlabInstanceDeployKeys_basic(t *testing.T) {
14-
testAccCheck(t)
1514
testKey := "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCi+ErxScCKIVqg2ZRJ6Mx2Yd/RTsh2DGyhUR8z8Iey4rpi1YOBlpTgjxxnSLy26J++Un/iWYDP8wMvEjXElkWz3z4I+Z3mfF3dv039FTCu+O17Mw20Ek4DJxdrKvOgul040sUG/ABVHo6DjqjokjoVJwzUrUmoOtbeMMD8hFN9bWdEVyTj18XQO8nvEe/VkbhCRhAlZC1l60fM07/7Tw83SV5UNAnBtOB+nfa3b24baO+Ijc4+PqYcBuUAF6DvhXW2gZPqf5wjDBJqlDlRTYDdHarMXZAKBpWfWj0gntbtEOM+Fnp6hS1HajaeveNSs6yQwgQEDN2boQnDuvXJ8Y7zW3YQKZp8z0uqWYJSIrYRKVEVYL7gDWL9NvdRV52d/RKPnE/BlL2chiAWBRCT8buQdjVtEPPoYbA1667PXZg6PI9yhCGEIjCj71XzPssA6VL/R7yUafsmNLsirWz9Uyh3HJWCcgNuO9mglP5nfFHIXSHQVhEUEYMfzv1iX5FrenU= test"
1615
testKey2 := "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDStVqW58VZ5afXFphIvu2JahndXslJZMkgWsNiYCNdk/NvrEbc4i7yZVoDPFQsbS9I6Ty1RMW7qy3KxJalMsVHcw8arCQFDxs/ka1NHGCUPl68t5ZxUOl900KRQ0lOzGnDQMqG/UUZdPw4CCmigTr6Z9ZBcD1fXAiUwbXR4tWrr5z9KWXC2HgF4WkIJUTIct7ilY1m9W0y79dI/+K8bZrurn3q2QK83pxqqWkLwvUsCxtlhMpwuyflyzyuz8xPZl2GlZgxeIpr68gsPHIzzWizibwFfbRYKCZO4wD0r7JCDOYs9KjcIPpCG6d3HUqijClgdQSBnLwHTdE04ZtdzO8akvy0hMzRCooI5TSc8IAHos53Gp9aaW92sPA8za+WRP6OSH6UsOW4N+iQc4jyl7/fckMSgIZlJouNqqV+P8iqIFJGs70Tj5L8G/m+P2lc3kcE4Vjmj+Fc0xG5+I/PsSOpcc6DfDfZdVDRe8yklYd/qC1jI89OCeqjxu3XcUGHj9s= test"
1716
testProjectTwoKeys := testAccCreateProject(t)
@@ -32,7 +31,6 @@ func TestAccDataSourceGitlabInstanceDeployKeys_basic(t *testing.T) {
3231
testAccCreateDeployKey(t, testProjectOneKey.ID, &canPushDeployKeyOptions)
3332

3433
resource.Test(t, resource.TestCase{
35-
PreCheck: func() { testAccPreCheck(t) },
3634
ProviderFactories: providerFactories,
3735
Steps: []resource.TestStep{
3836
{

internal/provider/data_source_gitlab_instance_variable_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313

1414
func TestAccDataSourceGitlabInstanceVariable_basic(t *testing.T) {
1515
resource.Test(t, resource.TestCase{
16-
PreCheck: func() { testAccPreCheck(t) },
1716
ProviderFactories: providerFactories,
1817
Steps: []resource.TestStep{
1918
{

internal/provider/data_source_gitlab_instance_variables_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@ import (
1212
)
1313

1414
func TestAccDataSourceGitlabInstanceVariables_basic(t *testing.T) {
15-
testAccCheck(t)
16-
1715
testVariables := make([]*gitlab.InstanceVariable, 0)
1816
for i := 0; i < 25; i++ {
1917
testVariables = append(testVariables, testAccCreateInstanceVariable(t))
2018
}
2119

2220
resource.Test(t, resource.TestCase{
23-
PreCheck: func() { testAccPreCheck(t) },
2421
ProviderFactories: providerFactories,
2522
Steps: []resource.TestStep{
2623
{

internal/provider/data_source_gitlab_project_issue_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ import (
1212
)
1313

1414
func TestAccDataSourceGitlabProjectIssue_basic(t *testing.T) {
15-
testAccCheck(t)
16-
1715
testProject := testAccCreateProject(t)
1816

1917
resource.Test(t, resource.TestCase{
20-
PreCheck: func() { testAccPreCheck(t) },
2118
ProviderFactories: providerFactories,
2219
Steps: []resource.TestStep{
2320
{

internal/provider/data_source_gitlab_project_issues_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ import (
1111
)
1212

1313
func TestAccDataSourceGitlabProjectIssues_basic(t *testing.T) {
14-
testAccCheck(t)
15-
1614
testProject := testAccCreateProject(t)
1715
testIssues := testAccCreateProjectIssues(t, testProject.ID, 25)
1816

1917
resource.Test(t, resource.TestCase{
20-
PreCheck: func() { testAccPreCheck(t) },
2118
ProviderFactories: providerFactories,
2219
Steps: []resource.TestStep{
2320
{

0 commit comments

Comments
 (0)