test/src/engine_tests/Engine463Tests.cc
branchENGINE-448
changeset 3254 6e7f6bc9460a
parent 3063 33907822c832
child 3276 c0b3430f1f1d
     1.1 --- a/test/src/engine_tests/Engine463Tests.cc	Mon Jan 28 14:04:12 2019 +0100
     1.2 +++ b/test/src/engine_tests/Engine463Tests.cc	Tue Jan 29 19:19:30 2019 +0100
     1.3 @@ -31,9 +31,9 @@
     1.4      const string fake_schleuder_key = slurp("test_keys/pub/fake-schleuder.asc");
     1.5      
     1.6      PEP_STATUS status = import_key(session, claudio_keys.c_str(), claudio_keys.length(), NULL);
     1.7 -    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));    
     1.8 +    TEST_ASSERT_MSG((status == PEP_KEY_IMPORTED), tl_status_string(status));    
     1.9      status = import_key(session, fake_schleuder_key.c_str(), fake_schleuder_key.length(), NULL);
    1.10 -    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));    
    1.11 +    TEST_ASSERT_MSG((status == PEP_KEY_IMPORTED), tl_status_string(status));    
    1.12  
    1.13      // Ok, bring in message, decrypt, and see what happens.
    1.14      const string msg = slurp("test_mails/notfound-alt.msg");
    1.15 @@ -54,9 +54,9 @@
    1.16      const string fake_schleuder_key = slurp("test_keys/pub/fake-schleuder.asc");
    1.17      
    1.18      PEP_STATUS status = import_key(session, claudio_keys.c_str(), claudio_keys.length(), NULL);
    1.19 -    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));    
    1.20 +    TEST_ASSERT_MSG((status == PEP_KEY_IMPORTED), tl_status_string(status));    
    1.21      status = import_key(session, fake_schleuder_key.c_str(), fake_schleuder_key.length(), NULL);
    1.22 -    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));    
    1.23 +    TEST_ASSERT_MSG((status == PEP_KEY_IMPORTED), tl_status_string(status));    
    1.24  
    1.25      pEp_identity* own_ident = new_identity("claudio+engine-463@pep.foundation", "A039BC60E43E0DFDDC9DE8663B48C38325210C88", PEP_OWN_USERID, "Not Actually Claudio");
    1.26      status = set_own_key(session, own_ident, "A039BC60E43E0DFDDC9DE8663B48C38325210C88");