Skip to content

Commit

Permalink
Stop testing on the host as this causes problems on our CI (#4623)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsakalozos authored Aug 14, 2024
1 parent 5a2cff4 commit d2d944e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions tests/libs/addons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ function setup_addons_tests() {
local PROXY=$3
local TO_CHANNEL=$4

if [[ ${TO_CHANNEL} =~ /.*/microk8s.*snap ]]
then
snap install "${TO_CHANNEL}" --dangerous --classic
else
snap install microk8s --channel="${TO_CHANNEL}" --classic
fi

microk8s status --wait-ready

create_machine "$NAME" "$DISTRO" "$PROXY"
if [[ ${TO_CHANNEL} =~ /.*/microk8s.*snap ]]
then
Expand Down Expand Up @@ -43,15 +34,6 @@ function run_community_addons_tests() {
lxc exec "$NAME" -- script -e -c "pytest -s /var/snap/microk8s/common/addons/community/tests/"
}

function run_eksd_addons_tests() {
if [ -d "/var/snap/microk8s/common/addons/eksd" ]
then
if [ -f "/var/snap/microk8s/common/addons/eksd/tests/test-addons.sh" ]; then
. /var/snap/microk8s/common/addons/eksd/tests/test-addons.sh
fi
fi
}

function run_gpu_addon_test() {
if [ -f "/var/snap/microk8s/common/addons/core/tests/test-addons.py" ] &&
grep test_gpu /var/snap/microk8s/common/addons/core/tests/test-addons.py -q
Expand All @@ -60,15 +42,6 @@ function run_gpu_addon_test() {
fi
}

function run_microceph_addon_test() {
if [ -f "/var/snap/microk8s/common/addons/core/tests/test-addons.py" ] &&
grep test_rook_ceph_integration /var/snap/microk8s/common/addons/core/tests/test-addons.py -q
then
timeout 3600 pytest -s /var/snap/microk8s/common/addons/core/tests/test-addons.py -k test_rook_ceph_integration
fi
}


function post_addons_tests() {
local NAME=$1
lxc exec "$NAME" -- microk8s reset
Expand Down Expand Up @@ -124,8 +97,6 @@ then
if [ "x${DISABLE_COMMUNITY_TESTS}" != "x1" ]; then
run_community_addons_tests "$NAME"
fi
run_eksd_addons_tests
run_gpu_addon_test
run_microceph_addon_test
post_addons_tests "$NAME"
fi

0 comments on commit d2d944e

Please sign in to comment.