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

[QE] Camel / Webhook endpoint creation with a secret token and a basic authentication

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No

      Mikel: I need to review this ticket since we are going to stop returning the secrets to the clients.

       

      In order to test that the integration with Sources works as expected, we would like to request the QE team to please write a test which manages a camel or webhook endpoint with the secret token / basic authentication bits filled. This is a sample payload:

      {
          "name": "Integration with secrets!",
          "description": "A test integration with secrets",
          "enabled": true,
          "status": "READY",
          "server_errors": 0,
          "properties": {
              "url": "http://localhost:12345",
              "method": "GET",
              "disable_ssl_verification": true,
              "secret_token": "secre-token-contents",
              "basic_authentication": {
                  "password": "basic-auth-password",
                  "username": "basic-auth-username"
              }
          },
          "subtype": "endpoint",
          "type": "webhook"
      }
      

      Basically the use cases we would like to have covered are:

      • Create an endpoint and check the secrets.
      • Fetch an endpoint and check the secrets.
      • Update an endpoint and remove the secret token. Verify the basic authentication is still there by refetching the endpoint.
      • Update an endpoint and remove the basic authentication. Verify the secret token is still there by refetching the endpoint.
      • Update an endpoint and remove both the secret token and the basic authentication. Verify that none of them are present on the endpoint anymore by refetching the endpoint.
      • Create an endopint with no secrets, and then update it to add a secret token and a basic authentication. Verify that both secrets are present by refetching the endpoint.

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

              Created:
              Updated:
              Resolved: