github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/mirage/factories/task-resource.js (about) 1 import { Factory, trait } from 'ember-cli-mirage'; 2 import { generateResources } from '../common'; 3 4 export default Factory.extend({ 5 name: () => '!!!this should be set by the allocation that owns this task state!!!', 6 7 resources: generateResources, 8 9 withReservedPorts: trait({ 10 resources: () => generateResources({ networks: { minPorts: 1 } }), 11 }), 12 13 withoutReservedPorts: trait({ 14 resources: () => generateResources({ networks: { minPorts: 0, maxPorts: 0 } }), 15 }), 16 });