summaryrefslogtreecommitdiff
path: root/yarns/0060-encryption.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-01-12 15:55:36 +0000
committerLars Wirzenius <liw@liw.fi>2014-01-12 15:55:36 +0000
commitd6863c3f7bb3fe019a7a71bfffe58fd532c0a5ab (patch)
treea66e490d090a35f1b44117b008ad6cf495beb8fc /yarns/0060-encryption.yarn
parenta2b0154f4ac553a4b415abd43f7a9c973156ebbd (diff)
downloadobnam-d6863c3f7bb3fe019a7a71bfffe58fd532c0a5ab.tar.gz
Add scenario for remove-client
Diffstat (limited to 'yarns/0060-encryption.yarn')
-rw-r--r--yarns/0060-encryption.yarn15
1 files changed, 14 insertions, 1 deletions
diff --git a/yarns/0060-encryption.yarn b/yarns/0060-encryption.yarn
index dde7268e..fd002b03 100644
--- a/yarns/0060-encryption.yarn
+++ b/yarns/0060-encryption.yarn
@@ -130,4 +130,17 @@ when encryption is used. This is a wart, a bug, and a disgrace.
However, it will be fixed some day, and until then the command is
tested in this chapter.
-# obnam [options] remove-client [CLIENT-NAME]...
+First we make a backup as one client, then we add a second key to the
+repository. Finally, we remove the client and verify no clients
+remain.
+
+ SCENARIO remove a client
+ GIVEN user U1 uses encryption key "Test Key One" from test-data/keyring-1
+ AND user U2 uses encryption key "Test Key Two" from test-data/keyring-2
+ AND directory L with interesting filesystem objects
+ WHEN user U1 backs up directory L to repository R
+ THEN user U1 uses key "Test Key One" in repository R
+ WHEN user U1 imports public key "Test Key Two" from test-data/keyring-2
+ AND user U1 adds key "Test Key Two" to repository R
+ AND user U2 removes user U1 from repository R
+ THEN user U2 can't see user U1 in repository R