TC-PUB-03
Negative
changes data Publishing with a non-existent ID
Verify ID validation
! 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 with a non-existent 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
A dry run builds every request without sending it; responses come from a local stub.
Test code
mirrors tests/PublishTest.php::tc_pub_03()
33// Verify ID validation
34public function tc_pub_03(): void
35{
36 $response = $this->ananas->publish([999999999]);
37
38 $this->assertEquals(400, $response['statusCode']);
39}
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.