Recording Ingress requests

Disclaimer: This release contains access to the recording of the Ingress requests on HCL OneTest Server from HCL OneTest API as a Tech Preview feature. The Tech Preview is intended for you to view the capabilities of virtualized services offered by HCL OneTest Server, and to provide your feedback to the product team. You are permitted to use the information only for evaluation purposes and not for use in a production environment. HCL provides the information without obligation of support and "as is" without warranty of any kind.

You can in combination with HCL OneTest Server, which is installed with the demo configuration, record Ingress requests that are sent by services outside of the cluster hosting the Bookinfo application.

Before you begin

You must have completed the following tasks on HCL OneTest Server:
  • Installed HCL OneTest Server with the demo configuration. Refer to the Installation of HCL OneTest Server topics in the Server documentation.
  • Installed the sample Bookinfo application into a namespace called bookinfo in the same Kubernetes cluster as HCL OneTest Server.
    Note: The Bookinfo application in this example task uses a gateway URL as http://www.rtas-bookinfo.com.
  • Created a Kubernetes rolebinding between the cluster role rockstar-execution-istio-test-system and the HCL OneTest Server execution service account test-system:rockstar-execution. This rolebinding allows HCL OneTest Server to manage the required Kubernetes resources in the bookinfo namespace so that the HTTP traffic going through Istio can be recorded.
You must have completed that following tasks in HCL OneTest API:
  • Configured your user offline token that you generated on HCL OneTest Server in the Server Settings tab in HCL OneTest API so that HCL OneTest API can access HCL OneTest Server. See Accessing HCL OneTest Server.

About this task

The productpage microservice of the Bookinfo application handles requests that arrive from a browser outside the cluster, unlike requests going to the reviews service which are produced from the productpage microservice (service to service). To record requests that arrive from outside the cluster we must use the externally accessible gateway URL. In this example, we use http://www.rtas-bookinfo.com/productpage.

Procedure

  1. Create an HTTP Connection in the Logical View.

    You must enter bookinfoApp in the name field. A logical HTTP Connection resource is created and a physical Web Server resource also called bookinfoApp is created and bound together in the current environment.

  2. Open the physical Web Server resource by right clicking the logical HTTP Connection, and then selecting Physical Resource.

    The Web Server dialog is displayed.

  3. Enter the externally accessible hostname of the productpage service as www.rtas-bookinfo.com in the Host field.
  4. Enter 80 as the gateway port in the Port field.
  5. Click Test Transport to verify if the access through the Ingress gateway is enabled.
  6. Click the Recording tab, and select the Istio option.

    HCL OneTest API instructs the recording studio to use Istio when recording this transport. The transport is now ready to be used to record the HTTP requests and responses going to the productpage service of the BookInfo application.

  7. Switch to the Logical View perspective, and then create a service component called bookinfoApp.
  8. Create an operation with the name GET /productpage under the service component.
  9. Open the operation, go to the Message Exchange Pattern tab, and then click Browse.
  10. Select the bookinfoApp as the transport.
  11. Enter the path used by the application as /productpage in the Resource Path field.
  12. Change the HTTP method to GET, and then click OK.
  13. Switch to the Recording Studio perspective, and then click the Add monitor button.

    The resource selector dialog is displayed.

  14. Select the GET /productpage operation.
  15. Start recording by clicking the Record button.
  16. Open a browser and open the URL http://www.rtas-bookinfo.com/productpage.

Results

You can view a request and response in the Recording Studio.