Skip to content

Commit 1ce7a8f

Browse files
committed
chore: update tests
Signed-off-by: rapour <reza.abbasalipour@canonical.com>
1 parent 29e36e8 commit 1ce7a8f

File tree

17 files changed

+20
-20
lines changed

17 files changed

+20
-20
lines changed

microk8s-resources/actions/common/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ fetch_as() {
11941194
ARCH="$($SNAP/bin/uname -m)"
11951195
LD_LIBRARY_PATH="$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/$ARCH-linux-gnu:$SNAP/usr/lib/$ARCH-linux-gnu" "${SNAP}/usr/bin/curl" -L $1 -o $2
11961196
else
1197-
CA_CERT=/snap/core20/current/etc/ssl/certs/ca-certificates.crt
1197+
CA_CERT=/snap/core22/current/etc/ssl/certs/ca-certificates.crt
11981198
run_with_sudo "${SNAP}/usr/bin/curl" --cacert $CA_CERT -L $1 -o $2
11991199
fi
12001200
}

scripts/inspect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function suggest_fixes {
220220
printf -- 'The change can be made persistent with: sudo apt-get install iptables-persistent\n'
221221
fi
222222

223-
if ! is_strict && [ /snap/core20/current/usr/bin/which ufw &> /dev/null ]
223+
if ! is_strict && [ /snap/core22/current/usr/bin/which ufw &> /dev/null ]
224224
then
225225
if ufw status | grep -q "Status: active"
226226
then

tests/libs/airgap.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ addons:
5454
echo retry install snapd
5555
sleep 1
5656
done
57-
while ! lxc exec "$NAME" -- bash -c "snap install core20"; do
58-
echo retry install core20
57+
while ! lxc exec "$NAME" -- bash -c "snap install core22"; do
58+
echo retry install core22
5959
sleep 1
6060
done
6161
while ! lxc exec "$NAME" -- bash -c "snap install /var/tmp/microk8s_latest_amd64.snap --dangerous --classic"; do
@@ -106,8 +106,8 @@ function setup_airgapped_microk8s() {
106106
echo retry install snapd
107107
sleep 1
108108
done
109-
while ! lxc exec "$NAME" -- bash -c "snap install core20"; do
110-
echo retry install core20
109+
while ! lxc exec "$NAME" -- bash -c "snap install core22"; do
110+
echo retry install core22
111111
sleep 1
112112
done
113113

tests/lxc/install-deps/images_almalinux-8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip3 install pytest==8.3.4 requests pyyaml sh psutil
1515
n=0
1616
until [ $n -ge 7 ]
1717
do
18-
sudo snap install core20 && break # substitute your command here
18+
sudo snap install core22 && break # substitute your command here
1919
n=$[$n+1]
2020
sleep 10
2121
done

tests/lxc/install-deps/images_archlinux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pip3 install pytest==8.3.4 requests pyyaml
2626
n=0
2727
until [ $n -ge 7 ]
2828
do
29-
sudo snap install core20 && break # substitute your command here
29+
sudo snap install core22 && break # substitute your command here
3030
n=$[$n+1]
3131
sleep 10
3232
done

tests/lxc/install-deps/images_centos-7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pip3 install pytest==8.3.4 requests pyyaml sh psutil
1313
n=0
1414
until [ $n -ge 7 ]
1515
do
16-
sudo snap install core20 && break # substitute your command here
16+
sudo snap install core22 && break # substitute your command here
1717
n=$[$n+1]
1818
sleep 10
1919
done

tests/lxc/install-deps/images_centos-8-Stream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pip3 install pytest==8.3.4 requests pyyaml sh psutil
1515
n=0
1616
until [ $n -ge 7 ]
1717
do
18-
sudo snap install core20 && break # substitute your command here
18+
sudo snap install core22 && break # substitute your command here
1919
n=$[$n+1]
2020
sleep 10
2121
done

tests/lxc/install-deps/images_debian-10

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ done
2121
n=0
2222
until [ $n -ge 7 ]
2323
do
24-
sudo snap install core20 && break # substitute your command here
24+
sudo snap install core22 && break # substitute your command here
2525
n=$[$n+1]
2626
sleep 10
2727
done

tests/lxc/install-deps/images_debian-11

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ done
2222
n=0
2323
until [ $n -ge 7 ]
2424
do
25-
sudo snap install core20 && break # substitute your command here
25+
sudo snap install core22 && break # substitute your command here
2626
n=$[$n+1]
2727
sleep 10
2828
done

tests/lxc/install-deps/images_debian-12

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pip3 install pytest==8.3.4 requests pyyaml sh psutil --break-system-packages
1313
n=0
1414
until [ $n -ge 7 ]
1515
do
16-
sudo snap install core20 && break # substitute your command here
16+
sudo snap install core22 && break # substitute your command here
1717
n=$[$n+1]
1818
sleep 10
1919
done

0 commit comments

Comments
 (0)