TC-UNPUB-01
Positive
changes data Valid product unpublish
Verify that an active product can be withdrawn
Specification · xlsx
Steps
- Send an unpublish request with a valid ID
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- PUBLISHED_ID
2555660
A dry run builds every request without sending it; responses come from a local stub.
Test code
mirrors tests/PublishTest.php::tc_unpub_01()
41// Verify that an active product can be withdrawn
42public function tc_unpub_01(): void
43{
44 $targetId = $_ENV['PUBLISHED_ID'];
45
46 $response = $this->ananas->unpublish([$targetId]);
47
48 $this->assertEquals(202, $response['statusCode']);
49}
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.