Enabling server extensions

If you find that the server extension is disabled and you want to run the tests supported by the server extension, then you must enable them.

Before you begin

You must ensure that the server extensions are enabled at the time of server installation by running the following command:
kubectl get pods -n test-system
The status of the server extensions that are enabled is displayed as Running. If the server extension you want to use is not displayed as running, then you must enable the server extension.

About this task

You must substitute {my-ots} with the release name that you provided during the installation of the server software in the following procedure.

The test-system is the name of the namespace. If you created a namespace by using a different value, then you must use that value in place of test-system in all the instances in this procedure.

Procedure

  1. Log in to the platform that you used to install the server software.

    For example, you can log in to the Ubuntu server using an SSH session if you installed the server software on Ubuntu.

  2. Run the following commands that depend on the server extension you want to enable:
    To enable the server extension Run the command
    CodeSweep
    helm upgrade {my-ots} -n test-system ./hcl-onetest-server \
    --reuse-values \
    --set global.hclOneTestCodesweepEnabled=true
    JMeter
    helm upgrade {my-ots} -n test-system ./hcl-onetest-server \
    --reuse-values \
    --set global.hclOneTestJMeterEnabled=true
    JUnit
    helm upgrade {my-ots} -n test-system ./hcl-onetest-server \
    --reuse-values \
    --set global.hclOneTestJUnitEnabled=true
    Postman
    helm upgrade {my-ots} -n test-system ./hcl-onetest-server \
    --reuse-values \
    --set global.hclOneTestPostmanEnabled=true
    All server extensions
    helm upgrade {my-ots} -n test-system ./hcl-onetest-server \
    --reuse-values \
    --set global.hclOneTestPostmanEnabled=true \
    --set global.hclOneTestJMeterEnabled=true \
    --set global.hclOneTestJUnitEnabled=true \
    --set global.hclOneTestCodesweepEnabled=true
  3. Run the following command to verify a specific extension or all the extensions are enabled:
    kubectl get pods -n test-system
    The status of the specific extension or all the extensions in the pod is displayed as Running.

Results

You have enabled the required server extensions on HCL OneTest Server.