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
dockeranddocker-composeare installed - Run
docker-compose up -d --buildto 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 arequestDatethat is outside the expected rangeinvalid_time_slot: Returns atimeDescthat is outside the expected rangeinvalid_feded_bye: Returns a response for a validisBYEFED-ED, but with empty string forbenefitYearEndDate