Prerequisites for running Istio stubs that virtualize services in HCL OneTest Server

You can find information about the tasks that you must complete before you run Istio stubs that virtualize services in HCL OneTest Server.

Configuring Istio stubs that virtualize services in HCL OneTest Server

When you intend to virtualize services in the Istio mesh in HCL OneTest Server, you can create stubs in HCL OneTest API.

When you create the Istio stubs in HCL OneTest API, you must ensure that you are aware of the fully qualified domain name (FQDN) or the short name of the service that you want to virtualize in the Kubernetes cluster that hosts HCL OneTest Server.

The FQDN of the service is as follows:
<service-name>.<namespace>.<svc>.<cluster-name>
The short name of the service is as follows:
<service-name>
For example, if you want to virtualize the HTTP traffic in the service named as reviews that runs in a namespace named as bookinfo, and in the resource named as svc in the Kubernetes cluster named as mycluster, then the FQDN of the service is as follows:
reviews.bookinfo.svc.mycluster
The short name of the service is as follows:
reviews

You must enter the host of the service that you want to virtualize, in the Host field of the physical transport in HCL OneTest API. You can provide either the FQDN or the short name of the service.

Note: The pass-through action in the stubs is not supported when the short name of the service is entered in the Host field.

Enabling the running of stubs that virtualize Istio services

Before you run the stubs that virtualize services in namespaces contained in the HCL OneTest Server Kubernetes cluster, you must enable HCL OneTest Server to determine the namespace that contains the service that you want to virtualize.

HCL OneTest Server determines the namespace based on the following configurations of the Host of the physical transport:
  • If you configured the FQDN in the host, HCL OneTest Server uses the namespace that is specified in the FQDN.
  • If you configured the short name in the host, HCL OneTest Server uses the namespace from among the virtualization namespaces that were provided at the time of installation of HCL OneTest Server.

You must specify the namespaces that contain the services that you want to virtualize at the time of the installation of HCL OneTest Server.