You must clone this repository with submodules enabled:
git clone --recurse-submodules https://github.com/OCP-on-NERC/openshift-tests
Or initialize submodules after cloning it:
git clone https://github.com/OCP-on-NERC/openshift-tests
cd openshift-tests
git submodule update --init
-
You will need the following software available on the system on which you are running these tests:
-
These tests use
kubectlfor interacting with Kubernetes clusters. You can also use theoccommand by settingKUBECTL=ocin your environment before running the tests. -
GNU
coreutilsThese tests make extensive use of the
timeoutcommand from thecoreutilspackage. If you are on Linux you will already have this. -
jqis a tool for parsing JSON data.
-
-
You must be able to create resources in
$TARGET_NAMESPACE(see below). Some of the tests may require cluster-admin privileges; you can disable these tests by settingSKIP_CLUSTER_ADMIN_TESTS=1.
Tests can be configured using the following environment variables.
TARGET_NAMESPACE-- any commands the create or interact with namespaced resources will use this namespace (defaultby default).SKIP_CLUSTER_ADMIN_TESTS-- skip tests that require elevated privileges.
SECRET_PATH-- the secret id in the vault
To test a SecretStore, you need to provide:
CLUSTER_SECRET_STORE_NAME-- the name of theClusterSecretStoreresource
To test a namespaced SecretStore you need to provide:
SECRET_STORE_NAME-- the name of theSecretStoreresource (which must exist in the$TARGET_NAMESPACE).
Use the run-tests.sh script:
./run-tests.sh
Look here to see an example test run.