From: Mark Wooding Date: Thu, 26 Jan 2012 00:09:25 +0000 (+0000) Subject: server/tests.at, t/keyring-*: New tests for key management. X-Git-Tag: 1.0.0pre11~1^2 X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/commitdiff_plain/31b8e627f0c466a2cd44e7be8c2a57dd38ff083f server/tests.at, t/keyring-*: New tests for key management. Ensure that everything works when different peer associations use different private keys, and when the keys, algorithms and groups change under our feet. This involves adding a new peer to the keyrings, and inventing a new keyring. More interestingly, it also involves plumbing together a network of three peers, which is where the earlier refactoring of the test communications machinery pays off. --- diff --git a/server/tests.at b/server/tests.at index ab64c538..a326709e 100644 --- a/server/tests.at +++ b/server/tests.at @@ -424,6 +424,143 @@ WITH_3TRIPES([alice], [bob], [carol], [-nslip], AT_CLEANUP ###-------------------------------------------------------------------------- +### Key management. + +AT_SETUP([server key-management]) +AT_KEYWORDS([keymgmt]) +export TRIPE_SLIPIF=USLIP + +## Determine all of the nets and the principals. +princs="" +nets=" " +while read princ pnets; do + princs="$princs $princ" + for n in $pnets; do + case " $nets " in *" $n "*) ;; *) nets="$nets$n " ;; esac + done +done <