mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-16 00:01:31 +00:00
Found issue in test setup. Fix it.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user