Commit 575d5515 authored by juga's avatar juga
Browse files

Add documentation about integration tests

parent 65f8a7f3
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ Welcome to pEp Python Remailer's documentation!

   README
   CONTRIBUTING
   integration
   modules


+58 −0
Original line number Diff line number Diff line
Integration tests
=================

Alice (A) want to send a message to Bob (B) routing it via N1, N2, N3.

For this test, the following docker images are needed:

Alice
-----

- has a keyring with the following keys: As, Ap, Bp, N3p, N2p, N1
- compose a message from Alice to Bob
- launch the mixnet client, the client will:

    1. encrypt the message for Bob
    2. encrypt the message for N3
    3. encrypt the message for N2
    4. encrypt the message for N1
    5. the final message is from A to N1
    6. send the message to N1

N1
--

- has a kerying with the keys: N1s, N1p, N2p, N3p
- receives the message from A to N1
- the mixnet remailer is triggered, which:
  1. decrypts the message and obtain a message from A to N2
  2. change the from header to be from N1?
  3. send the message to N2

N2
--

- has a kerying with the keys: N2s, N2p, N1p, N3p
- receives the message from A (or N1?) to N2
- the mixnet remailer is triggered, which:
  1. decrypts the message and obtain a message from A to N3
  2. change the from header to be from N2?
  3. send the message to N3

N3
--

- has a kerying with the keys: N3s, N3p, N1p, N2p
- receives the message from A (or N2?) to N3
- the mixnet remailer is triggered, which:
  1. decrypts the message and obtain a message from A to B
  2. change the from header to be from N3?
  3. send the message to B

Bob
---

- has a kerying with the keys: Bs, Bp, Ap, N1p, N2p, N3p
- receives the message from A (or N3?) to B
- launch pep client, which:
  1. decrypts the message and obtain a message from A to B