This document details the steps required to run subsystem tests for the Assisted-service deployed in two modes:
- REST-API mode
- Kube-API mode
Assisted-service components will be deployed in a Kind cluster using the Podman provider.
podman
and kind
and skipper
executables must be available in the $PATH.
you can install kind by running:
make install-kind-if-needed
which will install kind
latest version if it is not present.
To deploy in REST-API mode, run:
make deploy-service-for-subsystem-test
To deploy kube-api mode, run:
ENABLE_KUBE_API=true make deploy-service-for-subsystem-test
Optionally the following environment variables can be exported:
SUBSYSTEM_SERVICE_IMAGE
- Specify external image to use for assisted-service.FOCUS="install_cluster"
- An optional flag used for focused specs with regular expression.SKIP="install_cluster"
- An optional flag to skip scopes with regular expressions.VERBOSE=true
- An optional flag to print verbosed data.
When the components are already deployed, you can run the tests as many times as you like:
To test in REST-API mode, run:
skipper make subsystem-test
To test kube-api mode, run:
skipper make subsystem-test-kube-api
To quickly update the service and run tests after making code changes, use:
make patch-service
This command builds a new service image, pushes it to the container registry, and triggers a rollout of the updated service Deployment.
to Destroy the cluster, run:
make destroy-kind-cluster