Testing with Kubernetes

For testing with Kubernetes set up a Kubernetes cluster, and then you can create and publish stubs from HCL OneTest API so that stubs can be run within Kubernetes. The stubs published can be co-located with existing services running within the Kubernetes cluster.

Introduction

Kubernetes is an open-source container orchestration engine for automating deployment, scaling, and managing containerized applications. The open-source project is hosted by the Cloud Native Computing Foundation (CNCF). For information about Kubernetes, see the Kubernetes documentation.

Before you begin

You must have completed the setting up of the Kubernetes cluster in your IT infrastructure. For details, refer to the related links.

Task flow: Basic scenario with Kubernetes

The task flow helps you to run stubs in Kubernetes after you have set up the Kubernetes cluster.

Task More information

1

Publish one or more stubs to Kubernetes by using any of the following methods:
  • User interface
  • Command line
  • Ant task

1.1

Check if the stub you are publishing is based on a transport that is supported.

Supported transports to publish stubs to Istio or Kubernetes

2

Verify that the stub is published, by checking the output directory from the publish step. Verifying stub publication in Istio or Kubernetes

3

Run stubs in Kubernetes. Running stubs in Istio or Kubernetes

4

View Kubernetes deployment information. Getting stub information in Kubernetes deployments

5

Stop a stub or delete the deployment of the stub in Kubernetes. Stopping stubs that are running in Istio or Kubernetes