Skip to content

Update benc-uk/go-rest-api to 1.0.12

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

Update benc-uk/go-rest-api to 1.0.12 #17

Update benc-uk/go-rest-api to 1.0.12
54494de
Select commit
Loading
Failed to load commit list.
GitHub Actions / API Integration Tests succeeded May 17, 2025 in 0s

38 passed, 0 failed and 0 skipped

Tests passed successfully

✔️ test-reports/api.xml

38 tests were completed in 139ms with 38 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Add products to cart 3✔️ 12ms
Check a user 1✔️ 7ms
Clear cart 2✔️ 13ms
Get a user 4✔️ 5ms
Get all products 3✔️ 5ms
Get cart 3✔️ 6ms
Get existing order 4✔️ 15ms
Get orders for user 3✔️ 7ms
Get product by ID 3✔️ 6ms
Get products on offer 3✔️ 6ms
registerUser 2✔️ 36ms
Search products 3✔️ 6ms
submitCart 4✔️ 15ms

✔️ Add products to cart

✔️ status == 200
✔️ forUserId == $5c2be0e4-2071-4eef-a86d-8a1e75104b4b
✔️ products exists

✔️ Check a user

✔️ status == 204

✔️ Clear cart

✔️ status == 200
✔️ products == {}

✔️ Get a user

✔️ status == 200
✔️ userId == $5c2be0e4-2071-4eef-a86d-8a1e75104b4b
✔️ email isString
✔️ displayName isString

✔️ Get all products

✔️ status == 200
✔️ response.parsedBody[0].id isString
✔️ response.parsedBody[0].name isString

✔️ Get cart

✔️ status == 200
✔️ forUserId == $5c2be0e4-2071-4eef-a86d-8a1e75104b4b
✔️ products exists

✔️ Get existing order

✔️ status == 200
✔️ amount isNumber
✔️ id == AVAHC
✔️ lineItems isArray

✔️ Get orders for user

✔️ status == 200
✔️ response.parsedBody isArray
✔️ response.parsedBody.length > 0

✔️ Get product by ID

✔️ status == 200
✔️ id == prd003
✔️ name isString

✔️ Get products on offer

✔️ status == 200
✔️ response.parsedBody[0].id isString
✔️ response.parsedBody[0].name isString

✔️ registerUser

✔️ status == 200
✔️ registrationStatus == success

✔️ Search products

✔️ status == 200
✔️ response.parsedBody[0].id isString
✔️ response.parsedBody[0].name isString

✔️ submitCart

✔️ status == 200
✔️ amount isNumber
✔️ id isString
✔️ lineItems isArray