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
409Not active contract can't be updated
UCE6Update employees with division that doesn't belong to MSP 
  • HR access_token
  • contract_id
  • signed content

...

  • 200,
  • respond contains data according to apiary
422422, Division should be among contract_divisions
UCE7Update employees inactive doctor 
  • HR access_token
  • contract_id
  • signed content

...

  • 200,
  • respond contains data according to apiary
422422, Employee must be active DOCTOR
UCE8Update employees with division that doesn't belong to contractor divisions 
  • HR access_token
  • contract_id
422

...

422, Division should be among contract_divisions
UCE9Update employees and CLOSED division
  • HR access_token
  • contract_id
  • signed content
422200
UCE10Update employees
  • HR access_token
  • contract_id
  • signed content
200200