New Mirage scenario for puppeteer script to use
This commit is contained in:
parent
22ce4894c7
commit
6201003f3f
|
@ -3,6 +3,8 @@ import { computed } from '@ember/object';
|
|||
import PromiseArray from 'nomad-ui/utils/classes/promise-array';
|
||||
|
||||
export default Component.extend({
|
||||
classNames: ['boxed-section'],
|
||||
|
||||
sortProperty: 'modifyIndex',
|
||||
sortDescending: true,
|
||||
sortedAllocations: computed('job.allocations.@each.modifyIndex', function() {
|
||||
|
|
|
@ -23,7 +23,7 @@ module.exports = function(environment) {
|
|||
APP: {
|
||||
blockingQueries: true,
|
||||
mirageScenario: 'smallCluster',
|
||||
mirageWithNamespaces: false,
|
||||
mirageWithNamespaces: true,
|
||||
mirageWithTokens: true,
|
||||
mirageWithRegions: true,
|
||||
},
|
||||
|
|
|
@ -11,6 +11,7 @@ const allScenarios = {
|
|||
massiveCluster,
|
||||
allJobTypes,
|
||||
allNodeTypes,
|
||||
allTheThings,
|
||||
emptyCluster,
|
||||
};
|
||||
|
||||
|
@ -84,6 +85,31 @@ function allNodeTypes(server) {
|
|||
server.createList('job', 3);
|
||||
}
|
||||
|
||||
function allTheThings(server) {
|
||||
server.createList('agent', 3);
|
||||
|
||||
server.create('node', 'forceIPv4');
|
||||
server.create('node', 'draining');
|
||||
server.create('node', 'forcedDraining');
|
||||
server.create('node', 'noDeadlineDraining');
|
||||
server.create('node', 'withMeta');
|
||||
|
||||
const job1 = server.create('job', {
|
||||
type: 'service',
|
||||
activeDeployment: true,
|
||||
namespaceId: 'default',
|
||||
createAllocations: false,
|
||||
});
|
||||
server.create('job', { type: 'batch', failedPlacements: true, namespaceId: 'default' });
|
||||
server.create('job', { type: 'system', namespaceId: 'default' });
|
||||
server.create('job', 'periodic', { namespaceId: 'default' });
|
||||
server.create('job', 'parameterized', { namespaceId: 'default' });
|
||||
|
||||
server.create('allocation', 'rescheduled', { jobId: job1.id });
|
||||
server.create('allocation', 'preempter', { jobId: job1.id });
|
||||
server.create('allocation', 'preempted', { jobId: job1.id });
|
||||
}
|
||||
|
||||
function emptyCluster(server) {
|
||||
server.create('agent');
|
||||
server.create('node');
|
||||
|
|
Loading…
Reference in New Issue