Add test framework to test
- Mail encryption (when expected) - Introducer listing, adding and removing - Locals listing, adding and removing
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# source some functions
|
||||
. common.sh
|
||||
|
||||
export SEQUOIA_HOME=$(mktemp -d)
|
||||
|
||||
test_header "Import introducer from file"
|
||||
|
||||
# create ellen
|
||||
ELLEN_FPR=$(sq key generate --shared-key --without-password --name "Ellen" --email "ellen@example.com" 2>&1 | grep "Fingerprint:" | cut -d ':' -f 2)
|
||||
sq cert export --cert $ELLEN_FPR > /tmp/ellen_pk.pgp
|
||||
|
||||
cd $HUSK_DIR
|
||||
$HUSK_BIN introducer add --cert-file /tmp/ellen_pk.pgp --domains example.org --config config/config.toml
|
||||
|
||||
LIST=$($HUSK_BIN introducer list --config config/config.toml)
|
||||
|
||||
echo $LIST | grep -q 'ellen@example.com'
|
||||
Reference in New Issue
Block a user