Ananas APItest bench
staging api.qa2.ananastest.com

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

Products 7

GET /product/api/v1/merchant-integration/products

Price & stock 14

PUT /product/api/v1/merchant-integration/product/bulk

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.

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.

CLIENT_ID / CLIENT_SECRET Credentials, edit them in .env 5ili…e9 / h0pf…o=