Skip to content

Commit

Permalink
A few extra modules for wildcard DC in systemish jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Feb 28, 2023
1 parent a0aec09 commit 0e7870e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ui/tests/acceptance/job-detail-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ moduleForJobWithClientStatus(
}
);

moduleForJobWithClientStatus(
'Acceptance | job detail with client status (sysbatch with namespace and wildcard dc)',
() => {
const namespace = server.create('namespace', { id: 'test' });
return server.create('job', {
status: 'running',
datacenters: ['*'],
type: 'sysbatch',
namespaceId: namespace.name,
createAllocations: false,
});
}
);

moduleForJob('Acceptance | job detail (sysbatch child)', 'allocations', () => {
const parent = server.create('job', 'periodicSysbatch', {
childrenCount: 1,
Expand Down Expand Up @@ -106,6 +120,20 @@ moduleForJobWithClientStatus(
}
);

moduleForJobWithClientStatus(
'Acceptance | job detail with client status (sysbatch child with namespace and wildcard dc)',
() => {
const namespace = server.create('namespace', { id: 'test' });
const parent = server.create('job', 'periodicSysbatch', {
childrenCount: 1,
shallow: true,
namespaceId: namespace.name,
datacenters: ['*'],
});
return server.db.jobs.where({ parentId: parent.id })[0];
}
);

moduleForJob(
'Acceptance | job detail (periodic)',
'children',
Expand Down

0 comments on commit 0e7870e

Please sign in to comment.