Sha256: e2397b91c35fd7312a5b2ccb535ffaf4cc206af8908cfb31bd39fd3554dcc2e3
Contents?: true
Size: 1.58 KB
Versions: 74
Compression:
Stored size: 1.58 KB
Contents
export const correctTime = 'H24'; export const wrongTime = 'H25'; export const parentTaskID = 7; export const taskSummary = { tasksSummary: { running: { recent: 0, total: 3, }, paused: { recent: 0, total: 54, }, stopped: { recent: 0, total: 768, by_result: { success: { recent: 0, total: 532, }, error: { recent: 0, total: 121, }, warning: { recent: 0, total: 10, }, cancelled: { recent: 0, total: 105, }, }, }, scheduled: { recent: 0, total: 7, }, }, }; export const subtaskSummary = { tasksSummary: { running: { recent: 0, total: 3, }, paused: { recent: 0, total: 7, }, stopped: { recent: 0, total: 0, by_result: { success: { recent: 0, total: 0, }, error: { recent: 0, total: 0, }, warning: { recent: 0, total: 0, }, cancelled: { recent: 0, total: 0, }, }, }, scheduled: { recent: 0, total: 7, }, }, }; export const apiGetMock = async path => { if (path === `/foreman_tasks/tasks/summary/${correctTime}`) { return { data: taskSummary }; } else if ( path === `/foreman_tasks/tasks/summary/${parentTaskID}/sub_tasks/${correctTime}` ) { return { data: subtaskSummary }; } throw new Error('wrong time'); };
Version data entries
74 entries across 74 versions & 1 rubygems