-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
None
-
False
-
-
False
-
None
-
Unset
-
No
-
-
1. Create a new endpoint with a webhook that points to a QE's mock:
{
"name": "Endpoint under test",
"description": "Endpoint created to test the test endpoint feature",
"enabled": true,
"status": "READY",
"server_errors": 0,
"properties": {
"url": "http://qe-listener-mock:12000",
"method": "GET",
"disable_ssl_verification": true,
},
"subtype": "camel",
"type": "webhook"
}
2. Get the created endpoint's UUID.
3. Send a POST request to {{{}https://$
/api/integrations/v1.0/endpoints/${ENDPOINT_UUID}/test{}}}.
4. Assert that it returns a 204 status code.
5. Check that the received payload on the mock equals the following:
{
"account_id": null,
"application": "integrations",
"bundle": "console",
"context": {
"integration-uuid": "${ENDPOINT_UUID}"
},
"event_type": "integration-test",
"events": [
{
"metadata": {},
"payload": {
"message": "Congratulations! The integration you created on https://console.redhat.com was successfully tested!"
}
}
],
"org_id": "${QE_ORG_ID}",
"timestamp": "${CLOSE_TO_CURRENT_DATETIME}"
}
- duplicates
-
RHCLOUD-30619 [QE] Check "test notification" endpoint
-
- Closed
-
- relates to
-
RHCLOUD-22470 Expose REST API to allow users to test integrations
-
- Closed
-