2017-09-19 14:47:10 +00:00
|
|
|
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 } }),
|
|
|
|
}),
|
2017-10-31 04:02:40 +00:00
|
|
|
|
|
|
|
withoutReservedPorts: trait({
|
|
|
|
resources: () => generateResources({ networks: { minPorts: 0, maxPorts: 0 } }),
|
|
|
|
}),
|
2017-09-19 14:47:10 +00:00
|
|
|
});
|