Versions Compared

Key

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

...

Ndescriptioninputsexpected resultcurrent result

create DRv2 - happy pass
  • tokens
  • valid DR payload
200200

create DRv2 for a child doesn't exist in DB
  • tokens
  • person.birthday < now - 14Y
  • birth_certificate.number not in BD

200

new person created



create DRv2 4 a child exist in BD
  • tokens
  • person.birthday < now - 14Y
  • birth_certificate.number in BD

200

person in BD found and updated



create DRv2 4 a child with tax_id
  • tokens
  • person.birthday < now - 14Y
  • birth_certificate.number not in BD
  • tax_id in DB for a child

200

person in BD found by tax_id and updated



create DRv2 4 a child with no_tax_id = true
  • tokens
  • person.birthday < now - 14Y
  • birth_certificate.number not in BD

200

  • new person created
  • declaration created in status pending verification
  • link for a document created 
422

create DRv2 4 a child with authentication method = offline
  • tokens
  • birth_certificate.number not in BD
  • authentication method = offline

200

  • new person creted
  • declaration created in status pending verification
  • links for documents created for a person and for a confidant person


create DRv2 for a person with tax_id
  • tokens
  • person.tax_id=valid, not exist in BD

200

  • new person created in DB
  • declaration in status active
200

create DRv2 4 a person exist in BD
  • tokens
  • person.tax_id=valid, exist in BD

200

  • person found in DB by tax_id and updated
  • new declaration in status active
  • old declaration terminated
create DRv2 4 a person not exist in BD
  • tokens
  • tax_id not in DB
  • no_tax_id = false

200 

  • new person created
  • new declaration created in status active
500

create DRv2 4 a person with no_tax_id=true
  • tokens
  • tax_id in DB
  • document number correct
  • no_tax_id = true

422

  • person should be with tax_id
422

create DRv2 4 a person with no_tax_id=true
  • tokens
  • document number correct exist in BD
  • no_tax_id = true

200 

  • person found by document number and updated
  • link for no_tax_id generated
  • declaration created in status pending_verification
  • previous declaration terminated


create DRv2 4 a person with no_tax_id=true and several documents
  • tokens
  • document number correct exist in BD
  • no_tax_id = true

200

  • person found by one of the documents
  • link for document generated
  • declaration created in DB in status pending_verification
  • previous declaration terminated


create DRv2 4 a person with no_tax_id=true, several persons exit un BD
  • in DB
  • document number correct exist in BD
  • no_tax_id = true

200

  • person found by document number, last added to DB is updated
  • link for document generated
  • declaration created in DB in status pending_verification
  • previous declaration terminated


create DRv2



create DRv2


...