summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schaefer <heiko@schaefer.name>2021-11-09 16:42:31 +0100
committerHeiko Schaefer <heiko@schaefer.name>2021-11-09 16:47:14 +0100
commitcf901113cfa7d603030029fdac3b5215cbe80dde (patch)
tree6c28ed11514e3cc26dc3d6feb290da3ad9f70513
parent21b6c7d502fd9eb5f1a730e9c89886b3c401a5b6 (diff)
downloadopenpgp-ca-cf901113cfa7d603030029fdac3b5215cbe80dde.tar.gz
Create all User IDs in the form "Name <foo@example.org>"
-rw-r--r--openpgp-ca-lib/tests/test_oca.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openpgp-ca-lib/tests/test_oca.rs b/openpgp-ca-lib/tests/test_oca.rs
index 2f7815e..136f440 100644
--- a/openpgp-ca-lib/tests/test_oca.rs
+++ b/openpgp-ca-lib/tests/test_oca.rs
@@ -172,7 +172,7 @@ fn test_update_cert_key() -> Result<()> {
ca.ca_init("example.org", None)?;
// import key as new user
- gpg.create_user("alice@example.org");
+ gpg.create_user("Alice <alice@example.org>");
let alice1_key = gpg.export("alice@example.org");
ca.cert_import_new(
@@ -252,7 +252,7 @@ fn test_ca_import() -> Result<()> {
ca.ca_init("example.org", None)?;
// import key as new user
- gpg.create_user("alice@example.org");
+ gpg.create_user("Alice <alice@example.org>");
let alice1_key = gpg.export("alice@example.org");
ca.cert_import_new(
@@ -282,7 +282,7 @@ fn test_ca_import() -> Result<()> {
// the fingerprint stays the same
// make a new key
- gpg.create_user("bob@example.org");
+ gpg.create_user("Bob <bob@example.org>");
let bob_key = gpg.export("bob@example.org");
// call "cert_import_update" with a new key
@@ -550,7 +550,7 @@ fn test_ca_signatures() -> Result<()> {
ca.ca_init("example.org", None)?;
// create/import alice, CA signs alice's key
- gpg.create_user("alice@example.org");
+ gpg.create_user("Alice <alice@example.org>");
let alice_key = gpg.export("alice@example.org");
ca.cert_import_new(
@@ -563,7 +563,7 @@ fn test_ca_signatures() -> Result<()> {
.context("import Alice to CA failed")?;
// create/import bob
- gpg.create_user("bob@example.org");
+ gpg.create_user("Bob <bob@example.org>");
let bob_key = gpg.export("bob@example.org");
// CA does not signs bob's key because the "email" parameter is empty.