Skip to content

Commit

Permalink
removed pycache and adjusted req.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
omgoswami committed Jul 3, 2024
1 parent 2573031 commit 568a593
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pyyaml
kubernetes
bs4
bs4
lxml
select
Binary file removed tests/__pycache__/tests.cpython-312.pyc
Binary file not shown.
15 changes: 7 additions & 8 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 568a593

Please sign in to comment.