Test the TimesTen Operator

To test the TimesTen Operator, the test Pod uses the curl command to access the TimesTen Operator's readiness probe endpoint. If the TimesTen Operator self-reports that it is ready, the test succeeds.

If you previously disabled exposing probes from the TimesTen Operator by setting probes.expose=0 in your customized YAML file, helm test does not work. We recommend you do not disable exposing probes.

To test the TimesTen Operator, you test the ttoperator chart release running in your namespace.

  1. Examine the ttoperator chart release.
    helm list

    The output is similar to the following:

    NAME    NAMESPACE       REVISION        UPDATED                                 STATUS   CHART                   APP VERSION
    ttoper  default         1               2025-01-16 02:54:39.916210368 +0000 UTC deployed ttoperator-2211340.1.0  22.1.1.34.0

    The ttoper release of the ttoperator chart is installed in your namespace.

  2. Test the release.
     helm test ttoper

    The output is the following:

    NAME: ttoper
    LAST DEPLOYED: Thu Jan  16 02:54:39 2025
    NAMESPACE: default
    STATUS: deployed
    REVISION: 1
    TEST SUITE:     ttoper-ttoperator-test
    Last Started:   Thu Jan  16 02:55:17 2025
    Last Completed: Thu Jan  16 02:55:20 2025
    Phase:          Succeeded
    NOTES:
    Version 2211340.1.0 of the ttoperator chart has been installed.
    
    This release is named "ttoper".
    
    To learn more about the release, try:
    
      $ helm status ttoper
      $ helm get all ttoper
      $ helm history ttoper
    
    To rollback to a previous version of the chart, run:
    
      $ helm rollback ttoper <REVISION>
        - run 'helm history ttoper' for a list of revisions.
    
    To test the operator, run:
    
      $ helm test ttoper

    The test for the ttoper release succeeded.

Congratulations! You successfully tested the TimesTen Operator. The test succeeded, indicating the TimesTen Operator is running in your namespace and operating properly.