Skip to content

Commit 2b208ec

Browse files
committed
test: check for new aggressiveness params in acceptance test
1 parent 83e6dd1 commit 2b208ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

castai/resource_rebalancing_schedule_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ func TestAccResourceRebalancingSchedule_basic(t *testing.T) {
4444
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "schedule.0.cron", "1 4 * * *"),
4545
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode", "true"),
4646
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_local_persistent_volumes", "true"),
47+
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_problem_job_pods", "true"),
48+
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_problem_removal_disabled_pods", "true"),
49+
resource.TestCheckResourceAttr("castai_rebalancing_schedule.test", "launch_configuration.0.aggressive_mode_config.0.ignore_problem_pods_without_controller", "true"),
4750
),
4851
},
4952
{
@@ -96,6 +99,9 @@ resource "castai_rebalancing_schedule" "test" {
9699
aggressive_mode = true
97100
aggressive_mode_config {
98101
ignore_local_persistent_volumes = true
102+
ignore_problem_job_pods = true
103+
ignore_problem_removal_disabled_pods = true
104+
ignore_problem_pods_without_controller = true
99105
}
100106
selector = jsonencode({
101107
nodeSelectorTerms = [{

0 commit comments

Comments
 (0)