autotune icon indicating copy to clipboard operation
autotune copied to clipboard

Test scenarios for listExperiments API

Open chandrams opened this issue 1 year ago • 0 comments

Test scenarios for listExperiments API accepting an input json with cluster_name & kubernetes_obj as listed below:

{
    "cluster_name": "cluster-one-division-bell",
    "kubernetes_objects": [
        {
            "type": "deployment",
            "name": "tfb-qrh-deployment",
            "namespace": "default",
            "containers": [
                {
                    "container_image_name": "kruize/tfb-db:1.15",
                    "container_name": "front-data-platform"
                }
            ]
        }
    ]
}
  • Validate the response code, response message and json returned by listExperiments API with the below input jsons:

    • Single container
    • Multiple containers
    • Different deployment types

Note - Test the above with both true/false for results and recommendations and combinations for it as mentioned here

  • Validate the response code and error messages from listExperiments API with the below input:

    • Empty input json
    • Missing mandatory parameters
    • With invalid values such as blank/NULL/invalid data for each of the parameters in the json
  • Validate the response code, response message and json returned by listExperiments API when the input json has a valid container and an invalid container

  • Validate results or recommendations are displayed only for experiments where it is present and no data is shown if not present

  • Validate pagination when results or recommendations is set to False

  • Concurrent access to listExperiments API

chandrams avatar Apr 12 '24 07:04 chandrams