mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
Stabilize job and allocation job versions in fixtures
This commit is contained in:
@@ -13,7 +13,7 @@ const REF_TIME = new Date();
|
||||
export default Factory.extend({
|
||||
id: i => (i >= 100 ? `${UUIDS[i % 100]}-${i}` : UUIDS[i]),
|
||||
|
||||
jobVersion: () => faker.random.number(10),
|
||||
jobVersion: 1,
|
||||
|
||||
modifyIndex: () => faker.random.number({ min: 10, max: 2000 }),
|
||||
modifyTime: () => faker.date.past(2 / 365, REF_TIME) * 1000000,
|
||||
|
||||
@@ -18,6 +18,8 @@ export default Factory.extend({
|
||||
return this.id;
|
||||
},
|
||||
|
||||
version: 1,
|
||||
|
||||
groupsCount: () => faker.random.number({ min: 1, max: 2 }),
|
||||
|
||||
region: () => 'global',
|
||||
|
||||
Reference in New Issue
Block a user