test/src/engine_tests/CheckRenewedExpiredKeyTrustStatusTests.cc
branchENGINE-581
changeset 3886 ebd61a1cf6db
parent 3335 09af2cf0ac74
     1.1 --- a/test/src/engine_tests/CheckRenewedExpiredKeyTrustStatusTests.cc	Thu Jun 27 13:12:07 2019 +0200
     1.2 +++ b/test/src/engine_tests/CheckRenewedExpiredKeyTrustStatusTests.cc	Thu Jun 27 15:12:42 2019 +0200
     1.3 @@ -108,6 +108,13 @@
     1.4      status = update_identity(session, expired_inquisitor);
     1.5      TEST_ASSERT_MSG((status == PEP_KEY_UNSUITABLE), tl_status_string(status));
     1.6      PEP_comm_type ct = expired_inquisitor->comm_type;    
     1.7 +    TEST_ASSERT_MSG(ct == PEP_ct_key_not_found, tl_ct_string(ct));
     1.8 +    TEST_ASSERT(!expired_inquisitor->fpr);
     1.9 +    
    1.10 +    expired_inquisitor->fpr = strdup(inquisitor_fpr);
    1.11 +    status = get_trust(session, expired_inquisitor);
    1.12 +    ct = expired_inquisitor->comm_type;    
    1.13 +    TEST_ASSERT(status == PEP_STATUS_OK);
    1.14      TEST_ASSERT_MSG(ct == PEP_ct_key_expired_but_confirmed, tl_ct_string(ct));
    1.15      
    1.16      // Ok, so I want to make sure we make an entry, so I'll try to decrypt the message WITH
    1.17 @@ -250,6 +257,13 @@
    1.18      status = update_identity(session, expired_inquisitor);
    1.19      TEST_ASSERT_MSG((status == PEP_KEY_UNSUITABLE), tl_status_string(status));
    1.20      PEP_comm_type ct = expired_inquisitor->comm_type;    
    1.21 +    TEST_ASSERT_MSG(ct == PEP_ct_key_not_found, tl_ct_string(ct));
    1.22 +    TEST_ASSERT(!expired_inquisitor->fpr);
    1.23 +    
    1.24 +    expired_inquisitor->fpr = strdup(inquisitor_fpr);
    1.25 +    status = get_trust(session, expired_inquisitor);
    1.26 +    ct = expired_inquisitor->comm_type;    
    1.27 +    TEST_ASSERT(status == PEP_STATUS_OK);
    1.28      TEST_ASSERT_MSG(ct == PEP_ct_key_expired_but_confirmed, tl_ct_string(ct));
    1.29      
    1.30      // Ok, so I want to make sure we make an entry, so I'll try to decrypt the message WITH