Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
Currently, each Scenario of the kubernetes.feature creates a new kind cluster during setup, and deletes it on teardown. Every time kind create cluster runs, it takes 20 to 30 seconds. Downloading the kind binary and loading the minifi docker image into the cluster each take around 5 seconds, as well.
Restructure the test setups to create and delete the kind cluster on feature level instead of test scenario level. We could set up a single kind cluster on feature level, do a cleanup after every scenario, and only delete the cluster after all the test scenarios in the feature are finished.
One difficulty is that the volumes of the kind cluster are connected to the temporary test directories which are created for each Scenario. We would need to either reconnect the volumes (if that is possible), or create feature-level temporary directories, copy the minifi config.yml etc to these new directories, and clean them up after the Scenario is done.