-
Notifications
You must be signed in to change notification settings - Fork 5
Test Case Publication
Ola Bini edited this page Oct 2, 2018
·
9 revisions
This test script serves the purpose of making sure that publication of different data happens correctly.
- This test will be run with alice@ and bob@ running with the localhost xmpp server
- Start Pidgin:
- Enable alice@ and bob@
- Shut down Pidgin
- Remove all published values in prekey server.
- Remove all files starting with
otr4.
in the Pidgin configuration directory (defaults to~/.purple
). - Remove any entries in the
otr.fingerprints
file (in the Pidgin configuration directory) that is for alice@ or bob@ - Make sure the XMPP server, otrng prekey server and XMPP prekey server are running
- Start Pidgin
-
Ensure that you see (in the console output) (the order will vary)
- "Prekey Server: we have 0 prekey messages stored." two times
- "Prekey Server: Publishing prekey messages." two times
- "Prekey Server: received success" two times
- Shut down Pidgin
- Open up otr.instance_tags in the Pidgin configuration directory. Find the entries for alice@ and bob@ and note down their respective instance tags. They will be referred to as BOB_ITAG and ALICE_TAG below.
-
Ensure the otrng prekey server data directory contains the correct values:
- A directory tree that looks like this:
-
4050
-
405010D6C16C16DEC36F3D7A7596C2D757BA7B57904ADC4801A63E40914FD5C9
- BOB_ITAG (upper case)
cp.bin
pp.bin
-
pm
- (exactly 100 files, ending in
.bin
)
- (exactly 100 files, ending in
- BOB_ITAG (upper case)
-
-
93C5
-
93C56F4408CFF66F0A929AEA8E3940E753C3275E5622582AE3010E7277B7696C
- ALICE_ITAG (upper case)
cp.bin
pp.bin
-
pm
- (exactly 100 files, ending in
.bin
)
- (exactly 100 files, ending in
- ALICE_ITAG (upper case)
-
-
- A directory tree that looks like this:
(trigger a new publication of client profile and prekey profile in different ways)