Skip to content

Commit

Permalink
Fix expected pipeline attributes in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
korenyoni committed Jan 21, 2024
1 parent 00721ed commit e984527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codefresh/resource_pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func TestAccCodefreshPipeline_CronTriggers(t *testing.T) {
),
Check: resource.ComposeTestCheckFunc(
testAccCheckCodefreshPipelineExists(resourceName, &pipeline),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.#", "2"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.#", "0"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.0.name", "cT1"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.0.message", "first"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.0.expression", "0/1 * 1/1 * *"),
Expand All @@ -455,7 +455,7 @@ func TestAccCodefreshPipeline_CronTriggers(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.0.runtime_environment.0.dind_storage", "1gb"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.0.runtime_environment.0.required_available_storage", "1gb"),

resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.#", "2"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.#", "0"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.1.name", "cT2"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.1.message", "second"),
resource.TestCheckResourceAttr(resourceName, "spec.0.cron_trigger.1.expression", "0/1 * 1/1 * *"),
Expand Down

0 comments on commit e984527

Please sign in to comment.