ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

n/n Test CaseTest Case DescriptionTest Case InputsExpected ResultStep by Step ScriptActual Result
EPR1Pharmacy_owner registers new employee with employee_type 'Pharmacist' and with valid accreditation category 
  • status - "NEW",
  • employee_type - "PHARMACIST"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations - valid 
  • speciality_type - PHARMASICT 
  • ACCREDITATION_CATEGORY - is not null 

Response 200

  • Employee saved in DB with status APPROVED
  1. Get Pharmacy_owner authorize token
  2. Authorize scopes owner
  3. Exchange grant token Pharmacy_owner
  4. Create employee request
  5. Pass register steps via link in email



EPR2Pharmacy_owner registers new employee with employee_type 'Pharmacist' and with empty accreditation category 
  • status - "NEW",
  • employee_type - "PHARMACIST"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations - valid 
  • speciality_type - PHARMASICT 
  • ACCREDITATION_CATEGORY - null 

Response

????

  • Get Pharmacy_owner authorize token
  • Authorize scopes Pharmacy_owner
  • Exchange grant token owner
  • Create employee request
  • ????




EPR3Pharmacy_owner registers new adult employee with employee_type 'HR' 
  • status - "NEW",
  • employee_type - "HR"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid

Response 200

  • Employee saved in DB with status APPROVED
  1. Get Pharmacy_owner authorize token
  2. Authorize scopes Pharmacy_owner
  3. Exchange grant token owner
  4. Create employee request
  5. Pass register steps via link in email



EPR4Pharmacy_owner registers new not adult employee with employee_type 'HR'
  • status - "NEW",
  • employee_type - "HR"
  • name - valid
  • birth_date - not valid (<18)
  • documents - valid
  • tax_id - valid 
  • phones - valid
Response 422
  1. Get Pharmacy_owner authorize token
  2. Authorize scopes Pharmacy_owner
  3. Exchange grant token owner
  4. Create employee request

EPR5Pharmacy_owner registers himself as new employee with employee_type 'HR'
  • status - "NEW",
  • employee_type - "HR"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • education is null

Response 200

  • Employee saved in DB with status APPROVED
  1. Get Pharmacy_owner authorize token
  2. Authorize scopes Pharmacy_owner
  3. Exchange grant token owner
  4. Create employee request
  5. Pass register steps via link in email

EPR6HR registers new employee with employee_type PHARMACIST with 
  • speciality_type - PHARMACIST2
  • status - "NEW",
  • employee_type - "PHARMACIST"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations - valid 
  • speciality_type - PHARMACIST2
  • Position - P15

Response 200

  • Employee saved in DB with status APPROVED
  • Get HR authorize token
  • Authorize scopes hr
  • Exchange grant token HR
  • Create employee request
  • Pass register steps via link in email

EPR7HR registers new employee with employee_type PHARMACY_OWNER
  • status - "NEW",
  • employee_type - "PHARMACY_OWNER"
  • name - valid
  • birth_date - valid 
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations - valid 

Response 422??

  • validation_failed
  • Get HR authorize token
  • Authorize scopes hr
  • Exchange grant token HR
  • Create employee request

EPR8PHARMACY_OWNER registers new employee with employee_type PHARMACY_OWNER
  • status - "NEW",
  • employee_type - "PHARMACY_OWNER"
  • name - valid
  • birth_date - valid 
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations - valid 

Response 422??

  • validation_failed
  • Get Pharmacy_owner authorize token
  • Authorize scopes Pharmacy_owner
  • Exchange grant token owner
  • Create employee request

EPR9PHARMACY_OWNER registers new employee with employee_type PHARMACIST and without personal details
  • status - "NEW",
  • employee_type - "PHARMACIST"
  • speciality_type - PHARMASICT 

Response 

  • validation_failed
  • Get Pharmacy_owner authorize token
  • Authorize scopes Pharmacy_owner
  • Exchange grant token owner
  • Create employee request

EPR10PHARMACY_OWNER registers new employee with employee_type PHARMACIST and without education
  • status - "NEW",
  • employee_type - "PHARMACIST"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations is null

Response 200

  • Employee saved in DB with status APPROVED
  • Get Pharmacy_owner authorize token
  • Authorize scopes Pharmacy_owner
  • Exchange grant token owner
  • Create employee request

EPR11HR registers new employee with employee_type PHARMACIST with 
  • speciality_type - FAMILY_DOCTOR
  • status - "NEW",
  • employee_type - "PHARMACIST"
  • name - valid
  • birth_date - valid (18+)
  • documents - valid
  • tax_id - valid 
  • phones - valid
  • educations - valid 
  • speciality_type - FAMILY_DOCTOR 
Response
  • Get Pharmacy_owner authorize token
  • Authorize scopes Pharmacy_owner
  • Exchange grant token owner
  • Create employee request







  • No labels