Skip to content

Integration test, to deploy api and make endpoint worker call. #1864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Nanashi-lab
Copy link
Contributor

Added a new test in api deployment Integration-tests, It deploys api and make call to endpoint and tests the worker response.

The test -

  1. Add shopping-cart api with path1 - add-item path2 - get-cart-contents
  2. Deploy the api to localhost
  3. Make calls to add-item path to add items to the worker
  4. Make calls to get-cart-contents to verify the the items have been added

Couldn't find another test which does this, this also allows me now to add a new test which deploys api with swagger ui, and get the contents of actual openapiyaml and verify it, and another test to run a browser emulator and interact with swagger ui (maybe?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant