Skip to content

Commit 8f6754b

Browse files
committed
Mark project resources as public to allow testing in gitlab orgs with no billing
1 parent 0693ef2 commit 8f6754b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

gitlab/resource_gitlab_project_test.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,10 @@ resource "gitlab_project" "foo" {
12101210
path = "foo.%d"
12111211
description = "Terraform acceptance tests"
12121212
initialize_with_readme = true
1213+
1214+
# So that acceptance tests can be run in a gitlab organization
1215+
# with no billing
1216+
visibility_level = "public"
12131217
}
12141218
`, rInt, rInt)
12151219
}
@@ -1221,6 +1225,10 @@ resource "gitlab_project" "foo" {
12211225
path = "foo.%d"
12221226
description = "Terraform acceptance tests"
12231227
initialize_with_readme = false
1228+
1229+
# So that acceptance tests can be run in a gitlab organization
1230+
# with no billing
1231+
visibility_level = "public"
12241232
}
12251233
`, rInt, rInt)
12261234
}
@@ -1318,6 +1326,10 @@ resource "gitlab_project" "template-name" {
13181326
description = "Terraform acceptance tests"
13191327
template_name = "rails"
13201328
default_branch = "master"
1329+
1330+
# So that acceptance tests can be run in a gitlab organization
1331+
# with no billing
1332+
visibility_level = "public"
13211333
}
13221334
`, rInt, rInt)
13231335
}
@@ -1337,6 +1349,10 @@ resource "gitlab_project" "template-name-custom" {
13371349
template_name = "myrails"
13381350
use_custom_template = true
13391351
default_branch = "master"
1352+
1353+
# So that acceptance tests can be run in a gitlab organization
1354+
# with no billing
1355+
visibility_level = "public"
13401356
}
13411357
`, rInt, rInt)
13421358
}
@@ -1350,6 +1366,10 @@ resource "gitlab_project" "template-id" {
13501366
template_project_id = 999
13511367
use_custom_template = true
13521368
default_branch = "master"
1369+
1370+
# So that acceptance tests can be run in a gitlab organization
1371+
# with no billing
1372+
visibility_level = "public"
13531373
}
13541374
`, rInt, rInt)
13551375
}
@@ -1364,6 +1384,10 @@ resource "gitlab_project" "template-mutual-exclusive" {
13641384
template_project_id = 999
13651385
use_custom_template = true
13661386
default_branch = "master"
1387+
1388+
# So that acceptance tests can be run in a gitlab organization
1389+
# with no billing
1390+
visibility_level = "public"
13671391
}
13681392
`, rInt, rInt)
13691393
}
@@ -1376,6 +1400,10 @@ resource "gitlab_project" "foo" {
13761400
description = "Terraform acceptance tests"
13771401
issues_template = "foo"
13781402
merge_requests_template = "bar"
1403+
1404+
# So that acceptance tests can be run in a gitlab organization
1405+
# with no billing
1406+
visibility_level = "public"
13791407
}
13801408
`, rInt, rInt)
13811409
}
@@ -1388,6 +1416,10 @@ resource "gitlab_project" "foo" {
13881416
description = "Terraform acceptance tests"
13891417
archive_on_destroy = true
13901418
archived = false
1419+
1420+
# So that acceptance tests can be run in a gitlab organization
1421+
# with no billing
1422+
visibility_level = "public"
13911423
}
13921424
`, rInt, rInt)
13931425
}

0 commit comments

Comments
 (0)