Rename function.

- We call this kind of email verification email, reflect that in
    function name and comments.
This commit is contained in:
Justus Winter 2019-03-12 13:17:23 +01:00
parent 96968b3e2e
commit a0d1a1cd79
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386
1 changed files with 6 additions and 6 deletions

View File

@ -616,8 +616,8 @@ pub mod tests {
// And check that we can see the human-readable result page.
check_hr_responses_by_fingerprint(&client, &tpk);
// Now check for the confirmation mail.
check_mails_and_confirm(&client, filemail_into.as_path());
// Now check for the verification mail.
check_mails_and_verify_email(&client, filemail_into.as_path());
// Now lookups using the mail address should work.
check_responses_by_email(&client, "foo@invalid.example.com", &tpk);
@ -663,9 +663,9 @@ pub mod tests {
check_hr_responses_by_fingerprint(&client, &tpk_0);
check_hr_responses_by_fingerprint(&client, &tpk_1);
// Now check for the confirmation mails.
check_mails_and_confirm(&client, filemail_into.as_path());
check_mails_and_confirm(&client, filemail_into.as_path());
// Now check for the verification mails.
check_mails_and_verify_email(&client, filemail_into.as_path());
check_mails_and_verify_email(&client, filemail_into.as_path());
// Now lookups using the mail address should work.
check_responses_by_email(&client, "foo@invalid.example.com", &tpk_0);
@ -794,7 +794,7 @@ pub mod tests {
&tpk);
}
fn check_mails_and_confirm(client: &Client, filemail_path: &Path) {
fn check_mails_and_verify_email(client: &Client, filemail_path: &Path) {
let confirm_re =
regex::bytes::Regex::new("https://domain(/vks/v1/verify[^ \t\n]*)")
.unwrap();