diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-12 10:29:02 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-12 10:29:02 +0000 |
commit | dff58cd5e33003fdf3eb73549c450b76838c6cbe (patch) | |
tree | 747c820bab9f2465815971227f3ab51d0335e681 /yarns/0020-test-environment.yarn | |
parent | e65bdd1e04d01f3ef1e842f10d52e261050b599e (diff) | |
download | obnam-dff58cd5e33003fdf3eb73549c450b76838c6cbe.tar.gz |
Add test for multiple clients sharing a repository
As part of this, make every repository operation step require an
explicit client name. The v6 reference formats have a client
name embedded that is the hostname of my laptop, so make those tests
use that name. This fixes what would not have run previously on any
system that isn't named havelock. Oops.
Diffstat (limited to 'yarns/0020-test-environment.yarn')
-rw-r--r-- | yarns/0020-test-environment.yarn | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/yarns/0020-test-environment.yarn b/yarns/0020-test-environment.yarn index cc254ba7..607ecb2f 100644 --- a/yarns/0020-test-environment.yarn +++ b/yarns/0020-test-environment.yarn @@ -57,8 +57,8 @@ access over localhost, without requiring a password to be entered. The user may disable such tests when the test suite is running, by asking yarn to set the `OBNAM_TEST_SSH` to `no`. -Obnam configuration -------------------- +Obnam configuration and multiple users/clients +---------------------------------------------- In the tests, Obnam is run without a default configuration (`--no-default-config`), to avoid the user's settings affecting the @@ -72,6 +72,12 @@ tests that run Obnam MUST use `run_obnam`. In addition to adding the `$DATADIR/obnam.conf` configuration file, for single-client tests, or `$DATADIR/$CLIENT.obnam.conf` for multi-client tests. +We simulate multiple clients by providing each client with a different +configuration, though on the command line instead of using +configuration files. The relevant settings are `--client-name` and +the backup roots (command line arguments to `obnam backup` or +the `--root` setting). + Encryption keys --------------- |