sock-shop-integration-test
use docker-compose up --build
to up and run the test
It has 4 normal test as follows:
GET /
it hits the home page and returns 200 status code.
POST /register
it registers a new user and returns a 200 status code.
GET /login
it logs in the registered user and retruns a 200 status code.
GET /login
it logs in a user with wrong credential and returns 401 status code.
GET /cart
it returns all the items in the cart with 200 status code.
POST /cart
it adds an item to the cart with 200 status code.
DEL /cart
it deletes the cart itself, removing all the items with 200 status code.
DEL /cart/:id
it deletes an item from the cart and returns a 200 status code.