aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2022-09-20 13:27:12 +0200
committerJordan Augé <jordan.auge+fdio@cisco.com>2022-09-22 12:20:58 +0200
commitbd26d18978861b24c5707dbaa24dac76133425e2 (patch)
tree7ff84df44d440254b48f800c368005eb27d4680d /tests
parent45da502db58f712b78e59c214f05c44aa01ea8d0 (diff)
fix(libhicnctrl): fix new listener validation during face or connection creation
Change-Id: I5f532320fcb3fc01cd3a027af7ea5fc6425e4097 Ref: HICN-790 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/2-nodes-hicn-light.yml4
-rwxr-xr-xtests/config.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/2-nodes-hicn-light.yml b/tests/2-nodes-hicn-light.yml
index be715e333..e86bbc7ee 100644
--- a/tests/2-nodes-hicn-light.yml
+++ b/tests/2-nodes-hicn-light.yml
@@ -16,7 +16,7 @@ services:
sudo ip route add 192.168.1.2 via 192.168.1.1 dev br0
tee -a /tmp/hicn-light.conf <<EOF
add listener udp local0 192.168.1.1 9199 br0
- add connection udp conn0 192.168.1.2 9199 192.168.1.1 9199
+ add connection udp conn0 192.168.1.1 9199 192.168.1.2 9199
add route conn0 b002::/64 1
EOF
@@ -45,7 +45,7 @@ services:
tee -a /tmp/hicn-light.conf <<EOF
add listener udp local0 192.168.1.2 9199 br0
- add connection udp conn0 192.168.1.1 9199 192.168.1.2 9199
+ add connection udp conn0 192.168.1.2 9199 192.168.1.1 9199
add route conn0 b002::/64 1
EOF
diff --git a/tests/config.sh b/tests/config.sh
index 1420ef49e..b10d11204 100755
--- a/tests/config.sh
+++ b/tests/config.sh
@@ -358,7 +358,7 @@ function test_connections() {
_=$(exec_command "${command}")
command="add connection udp $CONN_NAME $ADDRESS 9695 $ADDRESS 9695 $INTERFACE"
_=$(exec_command "${command}")
- command="add connection udp $CONN_NAME_2 $ADDRESS 12345 $ADDRESS 9695 $INTERFACE"
+ command="add connection udp $CONN_NAME_2 $ADDRESS 9695 $ADDRESS 12345 $INTERFACE"
assert_cmd_success "${command}"
echo -n "List connections: "
@@ -395,7 +395,7 @@ function test_connections() {
echo -n "Add duplicated connection (same symbolic): "
command="add connection udp $CONN_NAME $ADDRESS 9695 $ADDRESS 9695 $INTERFACE"
_=$(exec_command "${command}")
- command="add connection udp $CONN_NAME $ADDRESS 9695 $ADDRESS 12345 $INTERFACE"
+ command="add connection udp $CONN_NAME $ADDRESS 12345 $ADDRESS 9695 $INTERFACE"
assert_cmd_failure "${command}"
# This case is allowed, success code is returned and symbolic is not updated