explicitly name smoke tests

This commit is contained in:
Sergey Dudoladov 2019-04-30 13:14:40 +02:00
parent 63bd846948
commit 021ed9b8b0
3 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ set -o nounset
set -o pipefail set -o pipefail
IFS=$'\n\t' IFS=$'\n\t'
readonly cluster_name="kind-test-postgres-operator" readonly cluster_name="kind-smoke-test-postgres-operator"
# avoid interference with previous test runs # avoid interference with previous test runs
if [[ $(kind get clusters | grep "^${cluster_name}*") != "" ]] if [[ $(kind get clusters | grep "^${cluster_name}*") != "" ]]
@ -14,7 +14,7 @@ then
kind delete cluster --name ${cluster_name} kind delete cluster --name ${cluster_name}
fi fi
kind create cluster --name ${cluster_name} --config ./e2e/kind-config-multikind.yaml kind create cluster --name ${cluster_name} --config ./e2e/kind-config-smoke-tests.yaml
export KUBECONFIG="$(kind get kubeconfig-path --name=${cluster_name})" export KUBECONFIG="$(kind get kubeconfig-path --name=${cluster_name})"
kubectl cluster-info kubectl cluster-info

View File

@ -5,6 +5,9 @@ from pprint import pprint
import subprocess import subprocess
class SmokeTestCase(unittest.TestCase): class SmokeTestCase(unittest.TestCase):
'''
Test the most basic e2e functionality of the operator.
'''
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):