@@ -90,7 +90,7 @@ func TestAccCodefreshPipeline_PremitRestartFromFailedSteps(t *testing.T) {
9090 CheckDestroy : testAccCheckCodefreshPipelineDestroy ,
9191 Steps : []resource.TestStep {
9292 {
93- Config : testAccCodefreshPipelineBasicConfigPermitRestartFromFailedSteps (name , "codefresh-contrib/react-sample-app" , "./codefresh.yml" , "master" , "git" , true ),
93+ Config : testAccCodefreshPipelineBasicConfigPermitRestartFromFailedSteps (name , "codefresh-contrib/react-sample-app" , "./codefresh.yml" , "master" , "git" , ptrBool ( true ) ),
9494 Check : resource .ComposeTestCheckFunc (
9595 testAccCheckCodefreshPipelineExists (resourceName , & pipeline ),
9696 resource .TestCheckResourceAttr (resourceName , "spec.0.permit_restart_from_failed_steps" , "true" ),
@@ -102,7 +102,7 @@ func TestAccCodefreshPipeline_PremitRestartFromFailedSteps(t *testing.T) {
102102 ImportStateVerify : true ,
103103 },
104104 {
105- Config : testAccCodefreshPipelineBasicConfigPermitRestartFromFailedSteps (name , "codefresh-contrib/react-sample-app" , "./codefresh.yml" , "master" , "git" , false ),
105+ Config : testAccCodefreshPipelineBasicConfigPermitRestartFromFailedSteps (name , "codefresh-contrib/react-sample-app" , "./codefresh.yml" , "master" , "git" , ptrBool ( false ) ),
106106 Check : resource .ComposeTestCheckFunc (
107107 testAccCheckCodefreshPipelineExists (resourceName , & pipeline ),
108108 resource .TestCheckResourceAttr (resourceName , "spec.0.permit_restart_from_failed_steps" , "false" ),
@@ -1069,8 +1069,11 @@ resource "codefresh_pipeline" "test" {
10691069}
10701070` , rName , repo , path , revision , context , concurrency , concurrencyBranch , concurrencyTrigger )
10711071}
1072+ func ptrBool (b bool ) * bool {
1073+ return & b
1074+ }
10721075
1073- func testAccCodefreshPipelineBasicConfigPermitRestartFromFailedSteps (rName string , repo string , path string , revision string , context string , permitRestartFromFailedSteps bool ) string {
1076+ func testAccCodefreshPipelineBasicConfigPermitRestartFromFailedSteps (rName string , repo string , path string , revision string , context string , permitRestartFromFailedSteps * bool ) string {
10741077 return fmt .Sprintf (`
10751078resource "codefresh_pipeline" "test" {
10761079
@@ -1094,7 +1097,7 @@ resource "codefresh_pipeline" "test" {
10941097
10951098 }
10961099}
1097- ` , rName , repo , path , revision , context , permitRestartFromFailedSteps )
1100+ ` , rName , repo , path , revision , context , * permitRestartFromFailedSteps )
10981101}
10991102
11001103func testAccCodefreshPipelineBasicConfigTriggers (
0 commit comments