test/src/engine_tests/DecryptAttachPrivateKeyTrustedTests.cc
branchENGINE-448
changeset 3254 6e7f6bc9460a
parent 3222 fcc3d6543681
child 3276 c0b3430f1f1d
     1.1 --- a/test/src/engine_tests/DecryptAttachPrivateKeyTrustedTests.cc	Mon Jan 28 14:04:12 2019 +0100
     1.2 +++ b/test/src/engine_tests/DecryptAttachPrivateKeyTrustedTests.cc	Tue Jan 29 19:19:30 2019 +0100
     1.3 @@ -45,11 +45,11 @@
     1.4      // 13A9F97964A2B52520CAA40E51BCA783C065A213    
     1.5      input_key = slurp("test_keys/pub/priv-key-import-test-main_0-0xC065A213_pub.asc");
     1.6      status = import_key(session, input_key.c_str(), input_key.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  
    1.10      input_key = slurp("test_keys/priv/priv-key-import-test-main_0-0xC065A213_priv.asc");
    1.11      status = import_key(session, input_key.c_str(), input_key.length(), NULL);
    1.12 -    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));
    1.13 +    TEST_ASSERT_MSG((status == PEP_KEY_IMPORTED), tl_status_string(status));
    1.14  
    1.15      // ensure there's no private key - doesn't work in automated tests, sadly. Uncommon when running script manually.
    1.16      bool has_priv = false;
    1.17 @@ -58,7 +58,7 @@
    1.18      // 8AB616A3BD51DEF714B5E688EFFB540C3276D2E5
    1.19      input_key = slurp("test_keys/pub/priv-key-import-test-main_0-0x3276D2E5_pub.asc");
    1.20      status = import_key(session, input_key.c_str(), input_key.length(), NULL);
    1.21 -    TEST_ASSERT_MSG((status == PEP_STATUS_OK), tl_status_string(status));
    1.22 +    TEST_ASSERT_MSG((status == PEP_KEY_IMPORTED), tl_status_string(status));
    1.23  
    1.24      
    1.25      cout << "Setting up own identity with default key " << fpr_main_me << endl;