Skip to content

Commit dcc6424

Browse files
authored
Bulk upgrade test case #1230 (#1324)
1 parent c582411 commit dcc6424

File tree

8 files changed

+257
-29
lines changed

8 files changed

+257
-29
lines changed

.github/workflows/pr.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
eval $(minikube -p minikube docker-env)
2121
echo "Glibc version"
2222
ldd --version
23+
sudo apt-get install python3-lxml
2324
echo "Installing helm..."
2425
wget https://get.helm.sh/helm-v3.12.1-linux-amd64.tar.gz
2526
gunzip helm-v3.12.1-linux-amd64.tar.gz
@@ -113,8 +114,11 @@ jobs:
113114
kubectl delete resourcecomposition wordpress-service-composition --kubeconfig=kubeplus-saas-provider.json
114115
echo "Running tests..starting in 5 seconds"
115116
sleep 5
116-
source venv/bin/activate
117117
cd tests
118+
python3 -m venv venv
119+
source venv/bin/activate
120+
pip3 install -r requirements.txt
118121
python3 -m unittest -v tests
122+
deactivate
119123
cd ../..
120124
mv kubeplus $runner_dir

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyyaml
1+
pyyaml
1.39 KB
Binary file not shown.
1.77 KB
Binary file not shown.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
apiVersion: workflows.kubeplus/v1alpha1
2+
kind: ResourceComposition
3+
metadata:
4+
name: basic-web-app-service-composition
5+
spec:
6+
newResource:
7+
chartName: basicwebapp
8+
chartURL: file:///resource-composition-0.0.1.tgz
9+
resource:
10+
group: platformapi.kubeplus
11+
kind: WebAppService
12+
plural: webappservices
13+
version: v1alpha1
14+
resmonitor:
15+
apiVersion: workflows.kubeplus/v1alpha1
16+
kind: ResourceMonitor
17+
metadata:
18+
name: web-app-service-monitor
19+
spec:
20+
monitorRelationships: all
21+
resource:
22+
group: platformapi.kubeplus
23+
kind: WebAppService
24+
version: v1alpha1
25+
respolicy:
26+
apiVersion: workflows.kubeplus/v1alpha1
27+
kind: ResourcePolicy
28+
metadata:
29+
name: web-app-service-policy
30+
spec:
31+
policy:
32+
podconfig:
33+
limits:
34+
cpu: 200m
35+
memory: 2Gi
36+
nodeSelector: values.nodeName
37+
requests:
38+
cpu: 100m
39+
memory: 1Gi
40+
resource:
41+
group: platformapi.kubeplus
42+
kind: WebAppService
43+
version: v1alpha1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: platformapi.kubeplus/v1alpha1
2+
kind: WebAppService
3+
metadata:
4+
name: bwa-tenant1
5+
spec:
6+
nodeName: minikube

tests/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pyyaml
2+
kubernetes
3+
bs4
4+
lxml

0 commit comments

Comments
 (0)