Skip to content

[cueman] Add Unit Tests for Job Operation Commands #1928

@ramonfigueiredo

Description

@ramonfigueiredo

Describe the enhancement
Implement comprehensive tests for all job operation commands (pause, resume, terminate, retry, etc.) including error handling and confirmation prompts.

Version Number

Additional context
Create /cueman/tests/test_job_operations.py testing:

  • Job pause/resume operations with already paused/running jobs
  • Job termination with confirmation dialog
  • Batch job operations (multiple jobs in one command)
  • Auto-eat enable/disable functionality
  • Maximum retries setting validation
  • Job existence validation and error handling
  • Force flag bypassing confirmations
  • Proper logging output for each operation

Mock opencue.api.findJob() and job objects. Test with non-existent jobs and network errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions