2017-09-19 14:47:10 +00:00
|
|
|
import { Factory, faker } from 'ember-cli-mirage';
|
|
|
|
import { generateResources } from '../common';
|
|
|
|
|
2018-05-12 00:30:15 +00:00
|
|
|
const DRIVERS = ['docker', 'java', 'rkt', 'qemu', 'exec', 'raw_exec'];
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
export default Factory.extend({
|
|
|
|
// Hidden property used to compute the Summary hash
|
|
|
|
groupNames: [],
|
|
|
|
|
|
|
|
JobID: '',
|
|
|
|
|
2018-06-13 22:04:31 +00:00
|
|
|
name: id => `task-${faker.hacker.noun().dasherize()}-${id}`,
|
2018-05-12 00:30:15 +00:00
|
|
|
driver: faker.list.random(...DRIVERS),
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
Resources: generateResources,
|
|
|
|
});
|