mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Fix tests after changing node data structure
This commit is contained in:
parent
c318a17590
commit
5b56bda0bb
@ -9,11 +9,15 @@ describe('WorkflowNodeHelp', () => {
|
||||
});
|
||||
test('renders the expected content for a completed job template job', () => {
|
||||
const node = {
|
||||
job: {
|
||||
name: 'Foo Job Template',
|
||||
elapsed: 9000,
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
originalNodeObject: {
|
||||
summary_fields: {
|
||||
job: {
|
||||
name: 'Foo Job Template',
|
||||
elapsed: 9000,
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
},
|
||||
},
|
||||
},
|
||||
unifiedJobTemplate: {
|
||||
name: 'Foo Job Template',
|
||||
|
||||
@ -64,11 +64,15 @@ const workflowContext = {
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
job: {
|
||||
name: 'Foo JT',
|
||||
type: 'job',
|
||||
status: 'successful',
|
||||
elapsed: 60,
|
||||
originalNodeObject: {
|
||||
summary_fields: {
|
||||
job: {
|
||||
name: 'Foo JT',
|
||||
type: 'job',
|
||||
status: 'successful',
|
||||
elapsed: 60,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@ -5,28 +5,36 @@ import WorkflowOutputNode from './WorkflowOutputNode';
|
||||
|
||||
const nodeWithJT = {
|
||||
id: 2,
|
||||
job: {
|
||||
elapsed: 7,
|
||||
id: 9000,
|
||||
name: 'Automation JT',
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
},
|
||||
unifiedJobTemplate: {
|
||||
id: 77,
|
||||
name: 'Automation JT',
|
||||
unified_job_type: 'job',
|
||||
originalNodeObject: {
|
||||
summary_fields: {
|
||||
job: {
|
||||
elapsed: 7,
|
||||
id: 9000,
|
||||
name: 'Automation JT',
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
},
|
||||
},
|
||||
unifiedJobTemplate: {
|
||||
id: 77,
|
||||
name: 'Automation JT',
|
||||
unified_job_type: 'job',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const nodeWithoutJT = {
|
||||
id: 2,
|
||||
job: {
|
||||
elapsed: 7,
|
||||
id: 9000,
|
||||
name: 'Automation JT 2',
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
originalNodeObject: {
|
||||
summary_fields: {
|
||||
job: {
|
||||
elapsed: 7,
|
||||
id: 9000,
|
||||
name: 'Automation JT 2',
|
||||
status: 'successful',
|
||||
type: 'job',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user