summaryrefslogtreecommitdiff
path: root/discovery.test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2022-04-30 09:12:40 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2022-04-30 09:12:40 +0200
commit585fac67835f393420127c0723289b538683b0a0 (patch)
treea874bf2e60cf4902ab2dd7d73766b9d5a2db77f3 /discovery.test
parenta3aa567b589a4e05500d79e0c8e1ab094f29324a (diff)
(test) Test: device and owner identity updates after discovery
Diffstat (limited to 'discovery.test')
-rw-r--r--discovery.test16
1 files changed, 14 insertions, 2 deletions
diff --git a/discovery.test b/discovery.test
index 60db1dc..b477dc0 100644
--- a/discovery.test
+++ b/discovery.test
@@ -1,7 +1,7 @@
test:
spawn on node1 as p1
spawn on node2 as p2
- send "create-identity Device1" to p1
+ send "create-identity Device1 Owner" to p1
send "create-identity Device2" to p2
send "start-server" to p1
send "start-server" to p2
@@ -10,4 +10,16 @@ test:
/peer 1 id Device2/
expect from p2:
/peer 1 addr 192.168.0.11 29665/
- /peer 1 id Device1/
+ /peer 1 id Device1 Owner/
+
+ send "update-local-identity Device1A" to p1
+ expect /peer 1 id Device1A Owner/ from p2
+
+ send "update-shared-identity OwnerA" to p1
+ expect /peer 1 id Device1A OwnerA/ from p2
+
+ send "update-local-identity Device1B" to p1
+ expect /peer 1 id Device1B OwnerA/ from p2
+
+ send "update-shared-identity OwnerB" to p1
+ expect /peer 1 id Device1B OwnerB/ from p2