-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
web-server/__tests__/plugins/slycat-timeseries-model/plugin-components/JobCodes.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
import React from 'react'; | ||
import { | ||
JobCodes | ||
} from "slycat-timeseries-model/plugin-components/JobCodes.tsx"; | ||
import { mount } from "enzyme"; | ||
|
||
|
||
describe('Timeseries Jobcodes',() =>{ | ||
const render = mount( | ||
<JobCodes/> | ||
); | ||
test('should match snapshot', () => { | ||
expect(render).toMatchSnapshot(); | ||
}); | ||
|
||
}); |
108 changes: 108 additions & 0 deletions
108
...__/plugins/slycat-timeseries-model/plugin-components/__snapshots__/JobCodes.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Timeseries Jobcodes should match snapshot 1`] = ` | ||
<JobCodes> | ||
<div | ||
className="collapse" | ||
id="collapseExample" | ||
> | ||
<div | ||
className="card card-body" | ||
> | ||
<dt> | ||
JOB STATE CODES | ||
</dt> | ||
<dt> | ||
BF BOOT_FAIL | ||
</dt> | ||
<dd> | ||
Job terminated due to launch failure, typically due to a hardware failure (e.g. unable to boot the node or block and the job can not be requeued). | ||
</dd> | ||
<dt> | ||
CA CANCELLED | ||
</dt> | ||
<dd> | ||
Job was explicitly cancelled by the user or system administrator. The job may or may not have been initiated. | ||
</dd> | ||
<dt> | ||
CD COMPLETED | ||
</dt> | ||
<dd> | ||
Job has terminated all processes on all nodes with an exit code of zero. | ||
</dd> | ||
<dt> | ||
DL DEADLINE | ||
</dt> | ||
<dd> | ||
Job terminated on deadline. | ||
</dd> | ||
<dt> | ||
F FAILED | ||
</dt> | ||
<dd> | ||
Job terminated with non-zero exit code or other failure condition. | ||
</dd> | ||
<dt> | ||
NF NODE_FAIL | ||
</dt> | ||
<dd> | ||
Job terminated due to failure of one or more allocated nodes. | ||
</dd> | ||
<dt> | ||
OOM OUT_OF_MEMORY | ||
</dt> | ||
<dd> | ||
Job experienced out of memory error. | ||
</dd> | ||
<dt> | ||
PD PENDING | ||
</dt> | ||
<dd> | ||
Job is awaiting resource allocation. | ||
</dd> | ||
<dt> | ||
PR PREEMPTED | ||
</dt> | ||
<dd> | ||
Job terminated due to preemption. | ||
</dd> | ||
<dt> | ||
R RUNNING | ||
</dt> | ||
<dd> | ||
Job currently has an allocation. | ||
</dd> | ||
<dt> | ||
RQ REQUEUED | ||
</dt> | ||
<dd> | ||
Job was requeued. | ||
</dd> | ||
<dt> | ||
RS RESIZING | ||
</dt> | ||
<dd> | ||
Job is about to change size. | ||
</dd> | ||
<dt> | ||
RV REVOKED | ||
</dt> | ||
<dd> | ||
Sibling was removed from cluster due to other cluster starting the job. | ||
</dd> | ||
<dt> | ||
S SUSPENDED | ||
</dt> | ||
<dd> | ||
Job has an allocation, but execution has been suspended and CPUs have been released for other jobs. | ||
</dd> | ||
<dt> | ||
TO TIMEOUT | ||
</dt> | ||
<dd> | ||
Job terminated upon reaching its time limit. | ||
</dd> | ||
</div> | ||
</div> | ||
</JobCodes> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters