Skip to content
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

updated readme with blog and youtube link #33

Merged
merged 1 commit into from
Sep 12, 2024

updated readme with blog and youtube link

3d713b5
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

updated readme with blog and youtube link #33

updated readme with blog and youtube link
3d713b5
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Report succeeded Sep 12, 2024 in 0s

36 passed, 0 failed and 0 skipped

Tests passed successfully

✅ /home/runner/work/restful-ecommerce/restful-ecommerce/reports/test-results.json

36 tests were completed in 134ms with 36 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/unit-tests.spec.js 36✅ 124ms

✅ test/unit-tests.spec.js

Unit Tests of E-Commerce application
  ✅ should create orders and return status code 201
  ✅ should delete an order with correct order id and valid token and return status code 204
  ✅ should filter and fetch order on order id with status code 200
  ✅ should filter and fetch order on product_id with status code 200
  ✅ should filter and fetch order on user_id with status code 200
  ✅ should generate swagger.json in the local dir successfully when /swagger.json endpoint is called
  ✅ should generate the valid token with status code 201 
  ✅ should get all available orders successfully with status code 200
  ✅ should not delete an order and return status code 400 when authorization token is in invalid format
  ✅ should not delete an order and return status code 403 when authorization token is missing in the header
  ✅ should not delete an order and return status code 404 when no order is found for the order id
  ✅ should not generate the token and return status code 400 when only password is provided and username is missing
  ✅ should not generate the token and return status code 401 when both username and password is blank
  ✅ should not generate the token and return status code 401 when invalid credentials are supplied 
  ✅ should not generate the token and return status code 401 when only username is provided and password is missing
  ✅ should not generate the token and return status code 401 when password is blank
  ✅ should not generate the token and return status code 401 when username is blank
  ✅ should not update the order when a field is missing from request body and return status code 400
  ✅ should not update the order when authorization token is invalid and return status code 400
  ✅ should not update the order when authorization token is missing in the update request and return status code 403
  ✅ should not update the partial order when authorization token is invalid and return status code 400
  ✅ should not update the partial order when authorization token is missing in the update request and return status code 403
  ✅ should not update the partial order when no data is provided in the request body, and return status code 400
  ✅ should perform health check of the server
  ✅ should return 404 status code when query no records are found for the order id filter
  ✅ should return 404 status code when query no records are found for the product id filter
  ✅ should return 404 status code when query no records are found for the user id filter
  ✅ should return 404 when order with the given id is not found for partial update
  ✅ should return 404 when order with the given id is not found for update
  ✅ should return status code 400 for invalid order format
  ✅ should return status code 400 with message for fields missing in order
  ✅ should return status code 404 and not return any order when multiple filter query params dont match
  ✅ should return status code 404 as no order exists
  ✅ should return the order with multiple filter queries with status code 200
  ✅ should update the order partially and return status code 200 
  ✅ should update the order successfully and return status code 200