open-nomad/ui/mirage/factories/task-resources.js
Michael Lange 71bc408f6c Remold the allocation detail and task detail pages
Now that there is a task detail page, some of the content from
the allocation detail page is better suited there.
2017-11-14 11:08:51 -08:00

17 lines
484 B
JavaScript

import { Factory, trait } from 'ember-cli-mirage';
import { generateResources } from '../common';
export default Factory.extend({
name: () => '!!!this should be set by the allocation that owns this task state!!!',
resources: generateResources,
withReservedPorts: trait({
resources: () => generateResources({ networks: { minPorts: 1 } }),
}),
withoutReservedPorts: trait({
resources: () => generateResources({ networks: { minPorts: 0, maxPorts: 0 } }),
}),
});