mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
e2e: re-enable system scheduler tests (#26869)
Do not merge until #26868 lands.
This commit is contained in:
committed by
GitHub
parent
f9b95ae896
commit
3f7cf0b287
@@ -9,24 +9,22 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/hashicorp/nomad/api"
|
||||
"github.com/hashicorp/nomad/e2e/v3/cluster3"
|
||||
"github.com/hashicorp/nomad/e2e/v3/jobs3"
|
||||
"github.com/hashicorp/nomad/nomad/structs"
|
||||
"github.com/shoenig/test/must"
|
||||
)
|
||||
|
||||
// FIXME: these tests are temporarily disabled until a bug in the scheduler that
|
||||
// fails to account for constraints is fixed.
|
||||
//
|
||||
// func TestSystemScheduler(t *testing.T) {
|
||||
// cluster3.Establish(t,
|
||||
// cluster3.Leader(),
|
||||
// cluster3.LinuxClients(3),
|
||||
// )
|
||||
//
|
||||
// t.Run("testJobUpdateOnIneligibleNode", testJobUpdateOnIneligbleNode)
|
||||
// t.Run("testCanaryUpdate", testCanaryUpdate)
|
||||
// t.Run("testCanaryDeploymentToAllEligibleNodes", testCanaryDeploymentToAllEligibleNodes)
|
||||
// }
|
||||
func TestSystemScheduler(t *testing.T) {
|
||||
cluster3.Establish(t,
|
||||
cluster3.Leader(),
|
||||
cluster3.LinuxClients(3),
|
||||
)
|
||||
|
||||
t.Run("testJobUpdateOnIneligibleNode", testJobUpdateOnIneligbleNode)
|
||||
t.Run("testCanaryUpdate", testCanaryUpdate)
|
||||
t.Run("testCanaryDeploymentToAllEligibleNodes", testCanaryDeploymentToAllEligibleNodes)
|
||||
}
|
||||
|
||||
func testJobUpdateOnIneligbleNode(t *testing.T) {
|
||||
job, cleanup := jobs3.Submit(t,
|
||||
|
||||
Reference in New Issue
Block a user