diff --git a/command/agent/config_parse_test.go b/command/agent/config_parse_test.go index 63420a496..cd1284774 100644 --- a/command/agent/config_parse_test.go +++ b/command/agent/config_parse_test.go @@ -125,6 +125,13 @@ var basicConfig = &Config{ RetryIntervalHCL: "15s", RetryMaxAttempts: 3, }, + DefaultSchedulerConfig: &structs.SchedulerConfiguration{ + PreemptionConfig: structs.PreemptionConfig{ + SystemSchedulerEnabled: true, + BatchSchedulerEnabled: true, + ServiceSchedulerEnabled: true, + }, + }, }, ACL: &ACLConfig{ Enabled: true, diff --git a/command/agent/testdata/basic.hcl b/command/agent/testdata/basic.hcl index 8a39ce88e..a4edcfef6 100644 --- a/command/agent/testdata/basic.hcl +++ b/command/agent/testdata/basic.hcl @@ -133,6 +133,14 @@ server { retry_max = 3 retry_interval = "15s" } + + default_scheduler_config { + preemption_config { + batch_scheduler_enabled = true + system_scheduler_enabled = true + service_scheduler_enabled = true + } + } } acl { diff --git a/command/agent/testdata/basic.json b/command/agent/testdata/basic.json index 30b3ea803..0052b6862 100644 --- a/command/agent/testdata/basic.json +++ b/command/agent/testdata/basic.json @@ -296,6 +296,13 @@ "1.1.1.1", "2.2.2.2" ], + "default_scheduler_config": [{ + "preemption_config": [{ + "batch_scheduler_enabled": true, + "system_scheduler_enabled": true, + "service_scheduler_enabled": true + }] + }], "upgrade_version": "0.8.0" } ],