Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


n/n
description
inputs
expected_result
actual_result
UCE1Update Contract employees without scope
  • Doctor access_token
  • contract_id
  • signed content
  • 403
403, Your scope does not allow to access this resource. Missing allowances: contract:write
UCE2Update Contract employees by contract which doesn't exist
  • HR access_token
  • contract_id
  • signed content
  • 404
404, not found
UCE3Update Contract employees by contract which doesn't belong to MSP  
  • HR access_token
  • contract_id
  • signed content
  • 403
403, You are not allowed to view this contract
UCE4Update Contract employees by contract with nhs_access token 
  • NHS access_token
  • contract_id
  • signed content
  • 403
403
UCE5Update  contract employees by contract with status TERMINATED 
  • HR access_token
  • contract_id
  • signed content
  • 409
409, Not active contract can't be updated
UCE6Update employees with division that doesn't belong to MSP 
  • HR access_token
  • contract_id
  • signed content
422422, Division should be among contract_divisions
UCE7Update employees inactive doctor 
  • HR access_token
  • contract_id
  • signed content
422422, Employee must be
active DOCTOR
within current legal_entity
UCE8Update employees with division that doesn't belong to contractor divisions 
  • HR access_token
  • contract_id
422422, Division should be among contract_divisions
UCE9Update employees and CLOSED division
  • HR access_token
  • contract_id
  • signed content
422
200
422, Division must be active and within current legal_entity
UCE10Update employees
  • HR access_token
  • contract_id
  • signed content
200200
UCE11Deactivate employee which is not in contract
  • HR access_token
  • contract_id
  • signed content
422422, Invalid employee_id to deactivate
UCE12Add new employee to contract 
  • HR access_token
  • contract_id
  • signed content
200200
UCE13Add new employee
MSP
from another
 to
MSP to contract 
  • HR access_token
  • contract_id
  • signed content
422422, Employee must be within current legal_entity
UCE14Deactivate employee from contract
  • HR access_token
  • contract_id
  • signed content

200,

found and deactivated employee

200,

found and deactivated employee

UCE15Deactivate DISMISSED employee from contract
  • HR access_token
  • contract_id
  • signed content
200422, Employee must be within current legal entity
UCE16Deactivate employee from contract with closed division
  • HR access_token
  • contract_id
  • signed content
200422, Division must be active and within current legal_entity