Bug 1532573 - In TB S/MIME tests, adjust email addresses from bogus to example. r=jorgk
authorKai Engert <kaie@kuix.de>
Wed, 03 Jul 2019 19:41:02 +0200
changeset 36021 92ded4d692a0289f495d8097ebe6ad2bed97beb9
parent 36020 935c2c6958b89cad7dc1d70df7c99757899c5059
child 36022 1682e3f326c2a85677a0709f8944a03b3066149b
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersjorgk
bugs1532573
Bug 1532573 - In TB S/MIME tests, adjust email addresses from bogus to example. r=jorgk
mailnews/mime/test/unit/test_smime_decrypt.js
--- a/mailnews/mime/test/unit/test_smime_decrypt.js
+++ b/mailnews/mime/test/unit/test_smime_decrypt.js
@@ -42,25 +42,25 @@ class CertVerificationResultCallback {
 function testCertValidity(cert, date) {
   let prom = new Promise((resolve, reject) => {
     const certificateUsageEmailRecipient = 0x0020;
     let result = new CertVerificationResultCallback(resolve);
     let flags = Ci.nsIX509CertDB.FLAG_LOCAL_ONLY;
     const certdb = Cc["@mozilla.org/security/x509certdb;1"]
                      .getService(Ci.nsIX509CertDB);
     certdb.asyncVerifyCertAtTime(cert, certificateUsageEmailRecipient, flags,
-                                 "Alice@bogus.com", date, result);
+                                 "Alice@example.com", date, result);
   });
   return prom;
 }
 
 add_task(async function verifyTestCertsStillValid() {
   let composeSecure = Cc["@mozilla.org/messengercompose/composesecure;1"]
                       .createInstance(Ci.nsIMsgComposeSecure);
-  let cert = composeSecure.findCertByEmailAddress("Alice@bogus.com", false);
+  let cert = composeSecure.findCertByEmailAddress("Alice@example.com", false);
   Assert.notEqual(cert, null);
 
   let now = Date.now() / 1000;
 
   let prom = testCertValidity(cert, now);
   await prom;
 
   if (gCertValidityResult != 0) {
@@ -242,17 +242,17 @@ add_task(async function check_smime_mess
     if (msg.enc) {
         Assert.equal(r[0].type, "encrypted");
         Assert.equal(r[0].status, 0);
         Assert.equal(r[0].certificate, null);
         sigIndex = 1;
     }
     if (msg.sig) {
         Assert.equal(r[sigIndex].type, "signed");
-        Assert.equal(r[sigIndex].certificate.emailAddress, "alice@bogus.com");
+        Assert.equal(r[sigIndex].certificate.emailAddress, "alice@example.com");
         if (msg.sig_good) {
           Assert.equal(r[sigIndex].status, 0);
         } else {
           Assert.notEqual(r[sigIndex].status, 0);
         }
     }
 
     hdrIndex++;