18F / identity-fake-server

Fake server for load testing
3 stars 1 forks source link

LG-7819: Create and test fake IPPaaS endpoints used by USPS proofing job #32

Closed NavaTim closed 2 years ago

NavaTim commented 2 years ago

🎫 Ticket

LG-7819

🛠 Summary of changes

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

# Start fake server in background
make run &

# Try fake auth endpoint
curl -v -X POST http://127.0.0.1:5555/oauth/authenticate

# Output should show that result status is 200, type is application/json, and matches fixture

# Try fake proofing results endpoint
curl -v -X POST http://127.0.0.1:5555/ivs-ippaas-api/IPPRest/resources/rest/getProofingResults

# Output should show that result status is 200, type is application/json, and matches fixture

# Stop fake server
kill %%

# Restart fake server with missing enrollment code response flag
USPS_IPPAAS_GETPROOFINGRESULTS_OUTCOME=missing_enrollment_code make run &

# Try fake proofing results endpoint
curl -v -X POST http://127.0.0.1:5555/ivs-ippaas-api/IPPRest/resources/rest/getProofingResults

# Output should show that result status is 400, type is application/json, and matches missing enrollment code fixture

# Stop fake server
kill %%