@@ -53,6 +53,7 @@ func TestAccGitlabProject_basic(t *testing.T) {
53
53
IssuesTemplate : "" ,
54
54
MergeRequestsTemplate : "" ,
55
55
CIConfigPath : ".gitlab-ci.yml@mynamespace/myproject" ,
56
+ CIForwardDeploymentEnabled : true ,
56
57
}
57
58
58
59
defaultsMainBranch = defaults
@@ -98,6 +99,7 @@ func TestAccGitlabProject_basic(t *testing.T) {
98
99
PackagesEnabled : false ,
99
100
PagesAccessLevel : gitlab .DisabledAccessControl ,
100
101
BuildCoverageRegex : "bar" ,
102
+ CIForwardDeploymentEnabled : false ,
101
103
}, & received ),
102
104
),
103
105
},
@@ -465,11 +467,12 @@ func TestAccGitlabProject_willError(t *testing.T) {
465
467
MergeMethod : gitlab .FastForwardMerge ,
466
468
OnlyAllowMergeIfPipelineSucceeds : true ,
467
469
OnlyAllowMergeIfAllDiscussionsAreResolved : true ,
468
- SquashOption : gitlab .SquashOptionDefaultOff ,
469
- PackagesEnabled : true ,
470
- PagesAccessLevel : gitlab .PublicAccessControl ,
471
- BuildCoverageRegex : "foo" ,
472
- CIConfigPath : ".gitlab-ci.yml@mynamespace/myproject" ,
470
+ SquashOption : gitlab .SquashOptionDefaultOff ,
471
+ PackagesEnabled : true ,
472
+ PagesAccessLevel : gitlab .PublicAccessControl ,
473
+ BuildCoverageRegex : "foo" ,
474
+ CIConfigPath : ".gitlab-ci.yml@mynamespace/myproject" ,
475
+ CIForwardDeploymentEnabled : true ,
473
476
}
474
477
willError := defaults
475
478
willError .TagList = []string {"notatag" }
@@ -569,10 +572,11 @@ func TestAccGitlabProject_transfer(t *testing.T) {
569
572
MergeMethod : gitlab .NoFastForwardMerge ,
570
573
OnlyAllowMergeIfPipelineSucceeds : false ,
571
574
OnlyAllowMergeIfAllDiscussionsAreResolved : false ,
572
- SquashOption : gitlab .SquashOptionDefaultOff ,
573
- PackagesEnabled : true ,
574
- PagesAccessLevel : gitlab .PrivateAccessControl ,
575
- BuildCoverageRegex : "foo" ,
575
+ SquashOption : gitlab .SquashOptionDefaultOff ,
576
+ PackagesEnabled : true ,
577
+ PagesAccessLevel : gitlab .PrivateAccessControl ,
578
+ BuildCoverageRegex : "foo" ,
579
+ CIForwardDeploymentEnabled : true ,
576
580
}
577
581
578
582
resource .Test (t , resource.TestCase {
@@ -1200,6 +1204,7 @@ resource "gitlab_project" "foo" {
1200
1204
packages_enabled = false
1201
1205
pages_access_level = "disabled"
1202
1206
build_coverage_regex = "bar"
1207
+ ci_forward_deployment_enabled = false
1203
1208
}
1204
1209
` , rInt , rInt )
1205
1210
}
0 commit comments