diff --git a/requirements.txt b/requirements.txt index 4554d9c0..ec1dbbb7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ pyyaml kubernetes -bs4 \ No newline at end of file +bs4 +lxml +select \ No newline at end of file diff --git a/tests/__pycache__/tests.cpython-312.pyc b/tests/__pycache__/tests.cpython-312.pyc deleted file mode 100644 index d28d109f..00000000 Binary files a/tests/__pycache__/tests.cpython-312.pyc and /dev/null differ diff --git a/tests/tests.py b/tests/tests.py index aa05fe57..2824decd 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -6,6 +6,12 @@ import os import yaml import time +from kubernetes import config +from kubernetes.client import Configuration +from kubernetes.client.api import core_v1_api +from kubernetes.stream import portforward +import select +from bs4 import BeautifulSoup class TestKubePlus(unittest.TestCase): @@ -138,13 +144,6 @@ def test_application_update(self): out, err = TestKubePlus.run_command(cmd) def test_application_upgrade(self): - # imports - from kubernetes import config - from kubernetes.client import Configuration - from kubernetes.client.api import core_v1_api - from kubernetes.stream import portforward - import select - from bs4 import BeautifulSoup # assume appropriate plugins installation and PATH update @@ -200,7 +199,7 @@ def count_users(response): # add Kubeplus provider cmd = "cp ../kubeplus-saas-provider.json ./application-upgrade/provider.conf" TestKubePlus.run_command(cmd) - + # chart uploads cmd = "kubectl upload chart ./application-upgrade/resource-composition-0.0.1.tgz ./application-upgrade/provider.conf" TestKubePlus.run_command(cmd)