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
kubectl
for interacting with Kubernetes clusters. You can also use theoc
command by settingKUBECTL=oc
in your environment before running the tests. -
GNU
coreutils
These tests make extensive use of the
timeout
command from thecoreutils
package. If you are on Linux you will already have this. -
jq
is a tool for parsing JSON data.
-
-
You must be authenticated to the cluster as a user with
cluster-admin
privileges.
Tests can be configured using the following environment variables.
TARGET_NAMESPACE
-- any commands the create or interact with namespaced resources will use this namespace (default
by default).
SECRET_PATH
-- the secret id in the vault
To test a SecretStore
, you need to provide:
CLUSTER_SECRET_STORE_NAME
-- the name of theClusterSecretStore
resource
To test a namespaced SecretStore
you need to provide:
SECRET_STORE_NAME
-- the name of theSecretStore
resource (which must exist in the$TARGET_NAMESPACE
).
Use the run-tests.sh
script:
./run-tests.sh
Look here to see an example test run.