1
1
name : Build and test MicroK8s snap
2
2
3
3
on :
4
- pull_request :
5
- branches :
6
- - master
4
+ - push
7
5
8
6
jobs :
9
7
build :
58
56
path : build
59
57
- name : Running upgrade path test
60
58
run : |
61
- sudo -E UPGRADE_MICROK8S_FROM=latest/edge UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade-path.py
59
+ sudo -E STRICT=yes UPGRADE_MICROK8S_FROM=latest/edge/strict UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade-path.py
62
60
63
61
test-addons-core :
64
62
name : Test core addons
@@ -81,13 +79,15 @@ jobs:
81
79
with :
82
80
name : microk8s.snap
83
81
path : build
84
- - name : Running addons tests
82
+ - name : Running addons tests in strict mode
85
83
run : |
86
84
set -x
87
- sudo snap install build/microk8s.snap --classic --dangerous
85
+ sudo snap install build/microk8s.snap --dangerous
86
+ sudo /snap/microk8s/current/connect-all-interfaces.sh
87
+ sudo microk8s status --wait-ready --timeout 300
88
88
./tests/smoke-test.sh
89
89
export UNDER_TIME_PRESSURE="True"
90
- export SKIP_PROMETHEUS="False "
90
+ export STRICT="yes "
91
91
sudo -E bash -c "cd /var/snap/microk8s/common/addons/core/tests; pytest -s -ra test-addons.py"
92
92
93
93
test-addons-community :
@@ -117,8 +117,11 @@ jobs:
117
117
run : |
118
118
set -x
119
119
sudo snap install build/microk8s.snap --classic --dangerous
120
+ sudo /snap/microk8s/current/connect-all-interfaces.sh
121
+ sudo microk8s status --wait-ready --timeout 300
120
122
sudo microk8s enable community
121
123
export UNDER_TIME_PRESSURE="True"
124
+ export STRICT="yes"
122
125
sudo -E bash -c "cd /var/snap/microk8s/common/addons/community/; pytest -s -ra ./tests/"
123
126
124
127
test-addons-core-upgrade :
@@ -148,7 +151,8 @@ jobs:
148
151
run : |
149
152
set -x
150
153
export UNDER_TIME_PRESSURE="True"
151
- sudo -E bash -c "UPGRADE_MICROK8S_FROM=latest/edge UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade.py"
154
+ export STRICT="yes"
155
+ sudo -E bash -c "UPGRADE_MICROK8S_FROM=latest/edge/strict UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade.py"
152
156
153
157
test-cluster-agent :
154
158
name : Cluster agent health check
@@ -173,6 +177,7 @@ jobs:
173
177
run : |
174
178
set -x
175
179
sudo snap install build/microk8s.snap --classic --dangerous
180
+ sudo /snap/microk8s/current/connect-all-interfaces.sh
176
181
sudo -E bash -c "pytest -s ./tests/test-cluster-agent.py"
177
182
178
183
test-airgap :
0 commit comments