From 31b8e627f0c466a2cd44e7be8c2a57dd38ff083f Mon Sep 17 00:00:00 2001 Message-Id: <31b8e627f0c466a2cd44e7be8c2a57dd38ff083f.1715903875.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 26 Jan 2012 00:09:25 +0000 Subject: [PATCH] server/tests.at, t/keyring-*: New tests for key management. Organization: Straylight/Edgeware From: Mark Wooding 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. --- server/tests.at | 137 +++++++++++++++++++++++++++++++++++++++++++++ t/Makefile.am | 2 +- t/keyring-alpha | 1 + t/keyring-beta-new | 4 ++ 4 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 t/keyring-beta-new diff --git a/server/tests.at b/server/tests.at index ab64c538..a326709e 100644 --- a/server/tests.at +++ b/server/tests.at @@ -423,6 +423,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 <