TC-PUB-01
Positive
changes data Valid product publishing
Verify that a product can be published with a valid ID
Specification · xlsx
Steps
- Send a publish request with a valid merchantInventoryId
Expected result
Not specified in the spreadsheet.
Endpoints
POST /product/api/v1/merchant-integration/product/publishPOST /product/api/v1/merchant-integration/product/unpublish Run
- API_URL
https://api.qa2.ananastest.com- UNPUBLISHED_ID
2555660
A dry run builds every request without sending it; responses come from a local stub.
Test code
mirrors tests/PublishTest.php::tc_pub_01()
13// Verify that a product can be published with a valid ID
14public function tc_pub_01(): void
15{
16 $targetId = $_ENV['UNPUBLISHED_ID'];
17
18 $response = $this->ananas->publish([$targetId]);
19
20 $this->assertEquals(202, $response['statusCode']);
21}
web/app/Scenarios/PublishScenarios.php · line numbers refer to this file
Not run yet. Run it against the API, or do a dry run to see the requests it would send.