apple mail test fix from ENGINE-9
authorKrista Bennett <krista@pep-project.org>
Fri, 09 Jun 2017 14:28:17 +0200
changeset 1839db1a28b13887
parent 1832 93c627c7f709
child 1840 91bd4a394584
apple mail test fix from ENGINE-9
test/apple_mail_test.cc
     1.1 --- a/test/apple_mail_test.cc	Wed Jun 07 16:12:56 2017 +0200
     1.2 +++ b/test/apple_mail_test.cc	Fri Jun 09 14:28:17 2017 +0200
     1.3 @@ -26,16 +26,16 @@
     1.4  
     1.5      const string keytextkey1 = slurp("test_keys/pub/pep-test-apple-0x1CCBC7D7_pub.asc");
     1.6      const string keytextkey2 = slurp("test_keys/priv/pep-test-recip-0x08DB0AEE_priv.asc");
     1.7 +    const string keytextkey3 = slurp("test_keys/pub/pep-test-recip-0x08DB0AEE_pub.asc");
     1.8  
     1.9      PEP_STATUS statuskey1 = import_key(session, keytextkey1.c_str(), keytextkey1.length(), NULL);
    1.10      PEP_STATUS statuskey2 = import_key(session, keytextkey2.c_str(), keytextkey2.length(), NULL);
    1.11 +    PEP_STATUS statuskey3 = import_key(session, keytextkey3.c_str(), keytextkey3.length(), NULL);
    1.12          
    1.13      const string mailtext = slurp(mailfile);
    1.14 -    pEp_identity * me = new_identity("pep.test.recip@kgrothoff.org", NULL, PEP_OWN_USERID, "pEp Test Recipient");    
    1.15 +    pEp_identity * me = new_identity("pep.test.recip@kgrothoff.org", "93D19F24AD6F4C4BA9134AAF84D9217908DB0AEE", PEP_OWN_USERID, "pEp Test Recipient");    
    1.16      me->me = true;    
    1.17 -    PEP_STATUS status = update_identity(session, me);
    1.18 -    trust_personal_key(session, me);    
    1.19 -    status = update_identity(session, me);
    1.20 +    PEP_STATUS status = myself(session, me);
    1.21      
    1.22      pEp_identity * you = new_identity("pep.test.apple@pep-project.org", NULL, "TOFU_pep.test.apple@pep-project.org", "pEp Test Recipient");    
    1.23      you->me = false;