98bd72a44e
1. `vaultError` and `failedSibling` are safe to remove see https://github.com/hashicorp/nomad/blob/64e9cf9/nomad/structs/structs.go#L3979-L3986
25 lines
651 B
JavaScript
25 lines
651 B
JavaScript
import { Factory, faker, trait } from 'ember-cli-mirage';
|
|
import { provide } from '../utils';
|
|
|
|
const REF_TIME = new Date();
|
|
const STATES = provide(10, faker.system.fileExt.bind(faker.system));
|
|
|
|
export default Factory.extend({
|
|
type: faker.list.random(...STATES),
|
|
|
|
signal: () => '',
|
|
exitCode: () => null,
|
|
time: () => faker.date.past(2 / 365, REF_TIME) * 1000000,
|
|
|
|
downloadError: () => '',
|
|
driverError: () => '',
|
|
driverMessage: () => '',
|
|
killError: () => '',
|
|
killReason: () => '',
|
|
restartReason: () => '',
|
|
setupError: () => '',
|
|
taskSignalReason: () => '',
|
|
validationError: () => '',
|
|
message: () => faker.lorem.sentence(),
|
|
});
|