From 12d21f032e9a67b327101c42481a546a48a6ac21 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 11 Oct 2022 20:01:32 +0200 Subject: test: instrument functional tests with more logs Also: - Do not tun tests with privileged containers HICN-806 - Refactor robot test files and config.sh Currently some logs are missing from the robot output of the functional tests. This patch adds them. Ticket: HICN-805 Signed-off-by: Mauro Sardara Change-Id: I9893eb356a4dd12f4bc6347b8fe02e358c9bf737 --- tests/2-nodes-vpp-bridge.yml | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to 'tests/2-nodes-vpp-bridge.yml') diff --git a/tests/2-nodes-vpp-bridge.yml b/tests/2-nodes-vpp-bridge.yml index 55349f798..8c62f6be8 100644 --- a/tests/2-nodes-vpp-bridge.yml +++ b/tests/2-nodes-vpp-bridge.yml @@ -2,6 +2,11 @@ version: "3" services: client: container_name: ${TEST_VPP_BRIDGE}-client + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun:/dev/net/tun + - /dev/vhost-net:/dev/vhost-net command: - | if [ -d /workspace/build-dev ]; then @@ -9,10 +14,10 @@ services: fi sudo ip link add br0 type bridge - sudo ip link set eth0 master br0 - sudo ip link set eth0 up sudo ip link set br0 up - sudo mkdir -p /var/log/vpp + sudo ip link set eth0 master br0 + sudo ip addr del ${TOPOLOGY_2_NODES_IP_ADDRESS_CLIENT}/24 dev eth0 + sudo tee /etc/vpp/startup.conf <