Test overview
57 test cases from Product_Flow_Integratori_Test_EN.xlsx, run with the same code as the PHPUnit suite.
Tests flagged ! have a discrepancy recorded in errors.txt.
0
Passed
4
Failed
0
Error
1
Dry run only
52
Not run
Authentication 8
POST /iam/api/v1/auth/tokenGET /order/api/v1/merchant-integration/outbound-orders/statuses
TC-AUTH-01
Obtaining a token with valid credentials
TC-AUTH-02
Calling the endpoint multiple times
TC-AUTH-03
Invalid credentials
TC-AUTH-04
Missing required header
TC-AUTH-05
!
Token expiration
TC-AUTH-06
Tampered token
TC-AUTH-07
Token without Bearer prefix
TC-AUTH-08
!
Exceeding the allowed number of requests
Products 7
GET /product/api/v1/merchant-integration/products
TC-PROD-01
Retrieving the first page of results
TC-PROD-02
Pagination test
TC-PROD-03
Exceeding the maximum value of the size parameter
TC-PROD-04
Stopping pagination at an existing ID
TC-PROD-05
Retrieving data using the search parameter
TC-PROD-06
Retrieving data using the ean parameter
TC-PROD-07
Retrieving with a non-existent EAN
Price & stock 14
PUT /product/api/v1/merchant-integration/product/bulk
TC-PRICE-01
Updating price with a valid ID
TC-PRICE-02
Updating price during the day
TC-PRICE-03
!
Updating price between 00:00 and 02:00
TC-PRICE-04
Updating without an ID
TC-PRICE-05
Updating with a non-existent ID
TC-PRICE-06
Updating with an invalid price
TC-PRICE-07
Mixed request (valid and invalid data)
TC-STOCK-01
Updating quantity with a valid ID (seller warehouse)
TC-STOCK-02
Updating quantity to 0
TC-STOCK-03
!
Multiple updates during the day
TC-STOCK-04
!
Sending a request for an ID from the Ananas warehouse
TC-STOCK-05
Updating without an ID
TC-STOCK-06
Updating with a non-existent ID
TC-STOCK-07
Mixed request (valid and invalid IDs)
Import 6
POST /product/api/v1/merchant-integration/import ! All the import tests return the code 202 and not 200 in case of success.
Publish / unpublish 6
POST /product/api/v1/merchant-integration/product/publishPOST /product/api/v1/merchant-integration/product/unpublish Discounts 16
POST · PUT · GET /payment/api/v1/merchant-integration/discountsPUT /payment/api/v1/merchant-integration/discounts/{id}/cancellations ! The discount tests are tricky because they involve persistent changes to the real data. To mitigate this problem and automate the tests, every discount is cancelled after the test. The ongoing promotion cannot be cancelled, and therefore have to be reused for these tests.
TC-DISC-01
Valid setup of a SALE promotion
TC-DISC-02
SALE longer than 31 days
TC-DISC-03
Valid SEASONAL_SALE in the summer period
TC-DISC-04
Valid SEASONAL_SALE in the winter period
TC-DISC-05
SEASONAL_SALE outside the allowed period
TC-DISC-06
SEASONAL_SALE longer than 60 days
TC-DISC-07
Valid CLEARANCE_SALE
TC-DISC-08
Promotional price above the allowed limit (95%)
TC-DISC-09
Overlapping of two promotions
TC-DISC-10
Modifying a promotion before it starts
TC-DISC-11
Increasing the promotional price after it starts
TC-DISC-12
Decreasing the promotional price after it starts
TC-DISC-13
Changing the promotion type after it starts
TC-DISC-14
!
Changing the duration after it starts
TC-DISC-15
Exceeding the limit of 500 products
TC-DISC-16
Mixed batch (valid and invalid data)
Parameters
Values come from .env. A value changed here is stored in web/storage/settings.json and overrides .env for the bench only; the PHPUnit suite is not affected.