-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Description
The JobController currently lacks an endpoint for updating a job, preventing modifications to existing job records.
Expected Behavior
The JobController should provide an endpoint that allows updating job details based on job ID.
Acceptance Criteria
Update job by ID
- The API should accept a valid job ID and updated job details.
- The system should update the job information accordingly.
- If the job ID does not exist, an appropriate error response should be returned.
Unit Tests
Test 1: Update job with valid ID
- Test method: testUpdateJob_ValidId
- Test data: Valid job ID and updated job details
- Expected result: Job information is successfully updated
Test 2: Update job with invalid ID
- Test method: testUpdateJob_InvalidId
- Test data: Non-existent job ID
- Expected result: Error response indicating job not found
Test 3: Update job with invalid data
- Test method: testUpdateJob_InvalidData
- Test data: Valid job ID with incomplete/invalid fields
- Expected result: Validation error response
Metadata
Metadata
Assignees
Labels
No labels