@@ -702,13 +702,14 @@ func TestAccCodefreshPipelineOptions(t *testing.T) {
702
702
CheckDestroy : testAccCheckCodefreshPipelineDestroy ,
703
703
Steps : []resource.TestStep {
704
704
{
705
- Config : testAccCodefreshPipelineOptions (name , "codefresh-contrib/react-sample-app" , "./codefresh.yml" , "master" , "git" , true , false ),
705
+ Config : testAccCodefreshPipelineOptions (name , "codefresh-contrib/react-sample-app" , "./codefresh.yml" , "master" , "git" , true , false , false ),
706
706
Check : resource .ComposeTestCheckFunc (
707
707
testAccCheckCodefreshPipelineExists (resourceName , & pipeline ),
708
708
resource .TestCheckResourceAttr (resourceName , "name" , name ),
709
709
resource .TestCheckTypeSetElemNestedAttrs (resourceName , "spec.0.options.*" , map [string ]string {
710
710
"keep_pvcs_for_pending_approval" : "true" ,
711
711
"pending_approval_concurrency_applied" : "false" ,
712
+ "enable_notifications" : "false" ,
712
713
}),
713
714
),
714
715
},
@@ -1278,7 +1279,7 @@ func TestAccCodefreshPipeline_Contexts(t *testing.T) {
1278
1279
})
1279
1280
}
1280
1281
1281
- func testAccCodefreshPipelineOptions (rName , repo , path , revision , context string , keepPVCsForPendingApproval , pendingApprovalConcurrencyApplied bool ) string {
1282
+ func testAccCodefreshPipelineOptions (rName , repo , path , revision , context string , keepPVCsForPendingApproval , pendingApprovalConcurrencyApplied bool , enableNotifications bool ) string {
1282
1283
return fmt .Sprintf (`
1283
1284
resource "codefresh_pipeline" "test" {
1284
1285
@@ -1300,10 +1301,11 @@ resource "codefresh_pipeline" "test" {
1300
1301
options {
1301
1302
keep_pvcs_for_pending_approval = %t
1302
1303
pending_approval_concurrency_applied = %t
1304
+ enable_notifications = %t
1303
1305
}
1304
1306
}
1305
1307
}
1306
- ` , rName , repo , path , revision , context , keepPVCsForPendingApproval , pendingApprovalConcurrencyApplied )
1308
+ ` , rName , repo , path , revision , context , keepPVCsForPendingApproval , pendingApprovalConcurrencyApplied , enableNotifications )
1307
1309
}
1308
1310
1309
1311
func testAccCodefreshPipelineOnCreateBranchIgnoreTrigger (rName , repo , path , revision , context string , ignoreTrigger bool ) string {
0 commit comments