From 5b6850744bbf13db0f8490a0ec5cad0d8486c80a Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Wed, 25 Sep 2024 18:14:05 +0200 Subject: [PATCH] Found issue in test setup. Fix it. --- .github/workflows/test.yml | 6 +++--- test/tests/openwrt_docker_test.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51cb4c4..3a19ca1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/test/tests/openwrt_docker_test.py b/test/tests/openwrt_docker_test.py index ac70c54..6fef202 100644 --- a/test/tests/openwrt_docker_test.py +++ b/test/tests/openwrt_docker_test.py @@ -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