Stabilize job and allocation job versions in fixtures

This commit is contained in:
Michael Lange
2020-05-01 14:29:24 -07:00
parent 2c82dc9060
commit 113cd4c6ef
2 changed files with 3 additions and 1 deletions

View File

@@ -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,

View File

@@ -18,6 +18,8 @@ export default Factory.extend({
return this.id;
},
version: 1,
groupsCount: () => faker.random.number({ min: 1, max: 2 }),
region: () => 'global',