Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-23918

QE test the "test the endpoint" feature

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 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://$

      {NOTIFICATIONS_BACKEND_URL}

      /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}"
      }
      

              Unassigned Unassigned
              mbarcina@redhat.com Mikel Barcina
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: