ExecutionsMock.ts 934 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { Execution, ExecutionTasks } from "@src/@types/Execution";
  2. import { ProgressUpdate, Task } from "@src/@types/Task";
  3. export const EXECUTION_MOCK: Execution = {
  4. id: "execution-id",
  5. number: 1,
  6. status: "COMPLETED",
  7. created_at: "2023-11-26T12:00:00Z",
  8. updated_at: "2023-11-26T12:00:00Z",
  9. type: "transfer_execution",
  10. };
  11. export const PROGRESS_UPDATE_MOCK: ProgressUpdate = {
  12. index: 1,
  13. message: "message progress 66%",
  14. created_at: "2023-11-26T12:00:00Z",
  15. total_steps: 1,
  16. current_step: 1,
  17. };
  18. export const TASK_MOCK: Task = {
  19. id: "task-id",
  20. status: "COMPLETED",
  21. created_at: "2023-11-26T12:00:00Z",
  22. updated_at: "2023-11-26T12:00:00Z",
  23. progress_updates: [PROGRESS_UPDATE_MOCK],
  24. task_type: "replica_execution",
  25. instance: "instance-id",
  26. depends_on: [],
  27. exception_details: "exception-details",
  28. };
  29. export const EXECUTION_TASKS_MOCK: ExecutionTasks = {
  30. ...EXECUTION_MOCK,
  31. tasks: [TASK_MOCK],
  32. };