11name : Build and test MicroK8s snap
22
33on :
4- push :
5- branches :
6- - master
7- pull_request :
8- branches :
9- - master
4+ - pull_request
5+ - push
106
117jobs :
128 build :
6056 path : build
6157 - name : Running upgrade path test
6258 run : |
63- sudo -E UPGRADE_MICROK8S_FROM=latest/edge UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade-path.py
59+ sudo -E UPGRADE_MICROK8S_FROM=latest/edge/strict UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade-path.py
6460
6561 test-addons-core :
6662 name : Test core addons
@@ -83,13 +79,15 @@ jobs:
8379 with :
8480 name : microk8s.snap
8581 path : build
86- - name : Running addons tests
82+ - name : Running addons tests in strict mode
8783 run : |
8884 set -x
89- sudo snap install build/microk8s.snap --classic --dangerous
85+ sudo snap install build/microk8s.snap --dangerous
86+ sudo ./tests/connect-all-interfaces.sh
87+ sudo microk8s status --wait-ready --timeout 300
9088 ./tests/smoke-test.sh
9189 export UNDER_TIME_PRESSURE="True"
92- export SKIP_PROMETHEUS="False "
90+ export STRICT="yes "
9391 sudo -E bash -c "cd /var/snap/microk8s/common/addons/core/tests; pytest -s -ra test-addons.py"
9492
9593 test-addons-community :
@@ -117,7 +115,11 @@ jobs:
117115 run : |
118116 set -x
119117 sudo snap install build/microk8s.snap --classic --dangerous
118+ sudo ./tests/connect-all-interfaces.sh
119+ sudo microk8s status --wait-ready --timeout 300
120120 sudo microk8s enable community
121+ export UNDER_TIME_PRESSURE="True"
122+ export STRICT="yes"
121123 sudo -E bash -c "cd /var/snap/microk8s/common/addons/community/tests; pytest -s -ra test-addons.py"
122124
123125 test-addons-core-upgrade :
@@ -145,4 +147,5 @@ jobs:
145147 run : |
146148 set -x
147149 export UNDER_TIME_PRESSURE="True"
148- sudo -E bash -c "UPGRADE_MICROK8S_FROM=latest/edge UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade.py"
150+ export STRICT="yes"
151+ sudo -E bash -c "UPGRADE_MICROK8S_FROM=latest/edge/strict UPGRADE_MICROK8S_TO=$PWD/build/microk8s.snap pytest -s ./tests/test-upgrade.py"
0 commit comments