From 9aabe13b468c83e352ac0407bf710472b513a684 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Wed, 30 May 2018 11:26:48 -0700 Subject: [PATCH] New traits for node states --- ui/mirage/factories/node.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ui/mirage/factories/node.js b/ui/mirage/factories/node.js index 5df22c58ed4..13c42736cf7 100644 --- a/ui/mirage/factories/node.js +++ b/ui/mirage/factories/node.js @@ -41,6 +41,26 @@ export default Factory.extend({ }, }), + forcedDraining: trait({ + drain: true, + schedulingEligibility: 'ineligible', + drainStrategy: { + Deadline: -1, + ForceDeadline: '0001-01-01T00:00:00Z', + IgnoreSystemJobs: faker.random.boolean(), + }, + }), + + noDeadlineDraining: trait({ + drain: true, + schedulingEligibility: 'ineligible', + drainStrategy: { + Deadline: 0, + ForceDeadline: '0001-01-01T00:00:00Z', + IgnoreSystemJobs: faker.random.boolean(), + }, + }), + drainStrategy: null, drivers: makeDrivers,