Azure-Samples / contoso-real-estate

Intelligent enterprise-grade reference architecture for JavaScript, featuring OpenAI integration, Azure Developer CLI template and Playwright tests.
MIT License
858 stars 512 forks source link

API test #435

Closed diberry closed 6 months ago

diberry commented 6 months ago

Purpose of PR: add minimal API validation that API can successfully go to both DBs:

  1. Run services in terminal 1: npm run start:services
  2. Run Azure Function in terminal 2: npm run start:host -w=api
  3. Run API test in terminal 3: npm run test -w=api-test

Verify: 1) tests run successfully 2) http://localhost:7071/api/listings returns data 3) http://localhost:7071/api/users returns 404 - 404 is response but sequentially after the call to the database