Found issue in test setup. Fix it.

This commit is contained in:
Albrecht Lohofener
2024-09-25 18:14:05 +02:00
parent 684abcaf74
commit 5b6850744b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -78,7 +78,7 @@ jobs:
# Prepare LAN VM
echo '******** lan-vm IPs ********'
multipass exec lan-vm -- sudo ip addr add 172.31.1.2/24 dev ens4
multipass exec lan-vm -- sudo ip addr add 172.31.2.2/24 dev ens4
multipass exec lan-vm -- ip addr
# Double check if virtual networks are working
@@ -88,12 +88,12 @@ jobs:
echo '******** router-vm IPs ********'
multipass exec router-vm -- sudo ip addr add 192.168.22.99/24 dev ens4
multipass exec router-vm -- sudo ip addr add 172.31.1.99/24 dev ens5
multipass exec router-vm -- sudo ip addr add 172.31.2.99/24 dev ens5
multipass exec router-vm -- ip addr
echo '******** Test connection between router-vm, lan-vm and wan-vm ********'
multipass exec router-vm -- ping -c 1 192.168.22.1 # to wan-vm
multipass exec router-vm -- ping -c 1 172.31.1.2 # to lan-vm
multipass exec router-vm -- ping -c 1 172.31.2.2 # to lan-vm
- name: Run tests
+1 -1
View File
@@ -252,7 +252,7 @@ def test_openwrt_lan(docker_services, parameter):
case _: # Usage of real Ethernet interface e.g. 'eth0'
# This test is most likely only working in a github action environment because multiple VM are necessary to test it. See the action file, please.
# Try to ping LAN-VM
response = run_openwrt_shell_command("ping", "-c1", "-W2", "-w2", "172.31.1.2")
response = run_openwrt_shell_command("ping", "-c1", "-W2", "-w2", "172.31.2.2")
assert response['exitcode'] == 0
return