From 7a68795e4111f29caadf0f4fe74706111a2eeb26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 18 Aug 2021 22:14:56 +0200 Subject: (test) Test script for simple discovery --- discovery.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 discovery.test (limited to 'discovery.test') diff --git a/discovery.test b/discovery.test new file mode 100644 index 0000000..26e8eaf --- /dev/null +++ b/discovery.test @@ -0,0 +1,13 @@ +test: + spawn on node1 as p1 + spawn on node2 as p2 + send "create-identity Device1" to p1 + send "create-identity Device2" to p2 + send "start-server" to p1 + send "start-server" to p2 + expect /peer [0-9]+ 192.168.0.11:29665/ from p1 + expect /peer [0-9]+ 192.168.0.12:29665/ from p1 + expect /peer [0-9]+ 192.168.0.12:29665/ from p2 + expect /peer [0-9]+ 192.168.0.11:29665/ from p2 + expect /peer [0-9]+ Device2 Device2/ from p1 + expect /peer [0-9]+ Device1 Device1/ from p2 -- cgit v1.2.3