Skip to content

Commit c33b905

Browse files
Connect required interfaces in strict tests (#3473)
1 parent 217ff4b commit c33b905

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test-airgap.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ if [[ ${TO_CHANNEL} =~ /.*/microk8s.*snap ]]
2727
then
2828
lxc file push ${TO_CHANNEL} airgap-registry/tmp/microk8s_latest_amd64.snap
2929
lxc exec airgap-registry -- snap install /tmp/microk8s_latest_amd64.snap --dangerous --classic
30+
lxc exec airgap-registry -- bash -c '/root/tests/connect-all-interfaces.sh'
3031
else
3132
lxc exec airgap-registry -- snap install microk8s --channel=${TO_CHANNEL} --classic
3233
fi
@@ -76,6 +77,7 @@ if lxc exec airgap-test -- bash -c "ping -c1 1.1.1.1"; then
7677
exit 1
7778
fi
7879
lxc exec airgap-test -- snap install /tmp/microk8s.snap --dangerous --classic
80+
lxc exec airgap-test -- bash -c '/root/tests/connect-all-interfaces.sh'
7981

8082
echo "6/7 -- Configure MicroK8s registry mirrors"
8183
lxc exec airgap-test -- bash -c '
@@ -98,5 +100,5 @@ lxc exec airgap-test -- bash -c 'sudo microk8s enable hostpath-storage dns'
98100
airgap_wait_for_pods airgap-test
99101

100102
echo "Cleaning up"
101-
# lxc rm airgap-registry --force
103+
lxc rm airgap-registry --force
102104
lxc rm airgap-test --force

0 commit comments

Comments
 (0)