TC-PUB-02
Negative
Validation
changes data Publishing an already published product
Verify system behavior when the product is already active
! Documented discrepancy · errors.txt
The invalid data has no effect on the system response and still leads to code 200 instead of 400.
Specification · xlsx
Steps
- Send a publish request for an already active product
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- TARGET_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_02()
23// Verify system behavior when the product is already active
24public function tc_pub_02(): void
25{
26 $targetId = $_ENV['TARGET_ID'];
27
28 $response = $this->ananas->publish([$targetId]);
29
30 $this->assertEquals(400, $response['statusCode']);
31}
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.