open-nomad/ui/mirage/factories/task-resources.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

13 lines
361 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 } }),
}),
});