An extremely tiny mock API gateway for testing against https://github.com/cagov/ui-claim-tracker.
Primary use case is to test against strange and unlikely edge cases.
- Make sure
docker
anddocker-compose
are installed - Run
docker-compose up -d --build
to build the image and start the container in the background - Connect to the API at
localhost:8888
- To stop the container, run
docker-compose down
Use in conjunction with modHeader. This mock API recognizes the following uniqueNumber
values:
Happy paths values:
happy_path
: Returns a correctly formed API gateway responsescenario2
: Returns a correctly formed API gateway response for scenario 2
Unhappy path values:
missing_unique_number
: Returns a null response with no unique numbermismatched_unique_number
: Returns a non-matching unique number and a null responseunknown_program
: Returns an unknown Program Typenot_mismatched_is_null
: Returns a null response with a matching unique numberdate_too_early
: Returns arequestDate
that is outside the expected rangeinvalid_time_slot
: Returns atimeDesc
that is outside the expected rangeinvalid_feded_bye
: Returns a response for a validisBYE
FED-ED, but with empty string forbenefitYearEndDate