Skip to content

Commit

Permalink
aws_datasync_task: test for schedule removal
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed Jan 16, 2024
1 parent 85ffc86 commit 8d27b8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/service/datasync/task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ func TestAccDataSyncTask_schedule(t *testing.T) {
resource.TestCheckResourceAttr(resourceName, "schedule.0.schedule_expression", "cron(0 12 ? * SUN,MON *)"),
),
},
{
Config: testAccTaskConfig_basic(rName),
Check: resource.ComposeTestCheckFunc(
testAccCheckTaskExists(ctx, resourceName, &task1),
resource.TestCheckResourceAttr(resourceName, "schedule.#", "0"),
),
},
},
})
}
Expand Down

0 comments on commit 8d27b8b

Please sign in to comment.