summaryrefslogtreecommitdiffstats
path: root/store/tests
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-15 16:28:11 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-15 16:29:55 +0200
commita25ef6974e0ba3989f6205c19a1f9ccfc81db584 (patch)
tree4ce3b386923515a662051c40f67a135ee15681f6 /store/tests
parent36e2d97ac013e023feb27df939c3f6d6e32d8669 (diff)
core, store, tool: Use realm instead of domain.
- Remove the domain parameter from core::Context. - Replace it with a realm to be passed in when opening a store. - For sq, merge store name and realm into the --store parameter. - Fixes #105.
Diffstat (limited to 'store/tests')
-rw-r--r--store/tests/ipc-policy.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/store/tests/ipc-policy.rs b/store/tests/ipc-policy.rs
index d6c4e996..9923aa80 100644
--- a/store/tests/ipc-policy.rs
+++ b/store/tests/ipc-policy.rs
@@ -5,45 +5,45 @@ use std::env::current_exe;
use std::path::PathBuf;
use sequoia_core::{Context, NetworkPolicy, IPCPolicy};
-use sequoia_store::Store;
+use sequoia_store::{Store, REALM_CONTACTS};
#[test]
fn ipc_policy_external() {
- let ctx = Context::configure("org.sequoia-pgp.tests")
+ let ctx = Context::configure()
.ephemeral()
.lib(current_exe().unwrap().parent().unwrap().parent().unwrap())
.network_policy(NetworkPolicy::Offline)
.ipc_policy(IPCPolicy::External)
.build().unwrap();
- Store::open(&ctx, "default").unwrap();
+ Store::open(&ctx, REALM_CONTACTS, "default").unwrap();
}
#[test]
fn ipc_policy_internal() {
- let ctx = Context::configure("org.sequoia-pgp.tests")
+ let ctx = Context::configure()
.ephemeral()
.lib(PathBuf::from("/i/do/not/exist"))
.network_policy(NetworkPolicy::Offline)
.ipc_policy(IPCPolicy::Internal)
.build().unwrap();
- Store::open(&ctx, "default").unwrap();
+ Store::open(&ctx, REALM_CONTACTS, "default").unwrap();
}
#[test]
fn ipc_policy_robust() {
- let ctx = Context::configure("org.sequoia-pgp.tests")
+ let ctx = Context::configure()
.ephemeral()
.lib(current_exe().unwrap().parent().unwrap().parent().unwrap())
.network_policy(NetworkPolicy::Offline)
.ipc_policy(IPCPolicy::Robust)
.build().unwrap();
- Store::open(&ctx, "default").unwrap();
+ Store::open(&ctx, REALM_CONTACTS, "default").unwrap();
- let ctx = Context::configure("org.sequoia-pgp.tests")
+ let ctx = Context::configure()
.ephemeral()
.lib(PathBuf::from("/i/do/not/exist"))
.network_policy(NetworkPolicy::Offline)
.ipc_policy(IPCPolicy::Robust)
.build().unwrap();
- Store::open(&ctx, "default").unwrap();
+ Store::open(&ctx, REALM_CONTACTS, "default").unwrap();
}