Sha256: c79770b8c577a91a823b72bdf3ee0f4df953d409d246b2aed81d975f042beade
Contents?: true
Size: 1.71 KB
Versions: 5
Compression:
Stored size: 1.71 KB
Contents
import { testComponentSnapshotsWithFixtures } from '@theforeman/test'; import TaskInfo from '../TaskInfo'; const fixtures = { 'render without Props': { id: 'test' }, 'render with Props': { id: 'test', startAt: '2019-06-17 16:04:09 +0300', label: 'Actions::Katello::EventQueue::Monitor', pending: true, action: 'Monitor Event Queue', username: 'admin', startedAt: '2019-06-17 16:04:09 +0300', endedAt: null, state: 'paused', result: 'error', progress: 0.5, input: { locale: 'en', current_request_id: null, current_timezone: 'Asia/Jerusalem', current_user_id: 4, current_organization_id: null, current_location_id: null, }, output: {}, humanized: { action: 'Monitor Event Queue', input: '', output: '', errors: [ 'Action Actions::Katello::EventQueue::Monitor is already active', ], }, cli_example: null, executionPlan: { state: 'paused', cancellable: false, }, help: "A paused task represents a process that has not finished properly. Any task in paused state can lead to potential inconsistency and needs to be resolved.\nThe recommended approach is to investigate the error messages below and in 'errors' tab, address the primary cause of the issue and resume the task.", hasSubTasks: false, allowDangerousActions: false, locks: [ { name: 'task_owner', exclusive: false, resource_type: 'User', resource_id: 4, }, ], username_path: '<a href="/users/4-admin/edit">admin</a>', }, }; describe('TaskInfo', () => { describe('rendering', () => testComponentSnapshotsWithFixtures(TaskInfo, fixtures)); });
Version data entries
5 entries across 5 versions & 1 rubygems