IOSAD-101 indicate undo_mistrust test positions IOSAD-101
authorDirk Zimmermann <dirk@pep-project.org>
Tue, 18 Sep 2018 12:40:57 +0200
branchIOSAD-101
changeset 659cca9ed8c89d0
parent 658 6ad1a4ca6509
child 660 3107cd86f326
IOSAD-101 indicate undo_mistrust test positions
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Tue Sep 18 12:40:57 2018 +0200
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Tue Sep 18 12:40:57 2018 +0200
     1.3 @@ -288,6 +288,8 @@
     1.4      XCTAssertNil(error);
     1.5      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_have_no_key);
     1.6  
     1.7 +    // key_reset?
     1.8 +
     1.9      // After ENGINE-371 has been fixed, this should be just PEP_rating_reliable
    1.10      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_trusted);
    1.11  
    1.12 @@ -338,6 +340,8 @@
    1.13      XCTAssertNil(error);
    1.14      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_have_no_key);
    1.15  
    1.16 +    // key_reset?
    1.17 +
    1.18      XCTAssertTrue([session trustPersonalKey:alice error:&error]);
    1.19      XCTAssertNil(error);
    1.20      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_trusted);
    1.21 @@ -415,6 +419,8 @@
    1.22      XCTAssertNil(error);
    1.23      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_have_no_key);
    1.24  
    1.25 +    // key_reset?
    1.26 +
    1.27      // After ENGINE-371 has been fixed, this should be just PEP_rating_reliable
    1.28      XCTAssertEqual([self ratingForIdentity:alice session:session], PEP_rating_trusted);
    1.29  
    1.30 @@ -538,7 +544,9 @@
    1.31      XCTAssertEqual(numRating.pEpRating, PEP_rating_unencrypted);
    1.32  
    1.33      // Undo
    1.34 -    XCTAssertNil(error);
    1.35 +
    1.36 +    // key_reset?
    1.37 +
    1.38      XCTAssertTrue([session updateIdentity:identBob error:&error]);
    1.39      XCTAssertNil(error);
    1.40      XCTAssertNotNil(identBob.fingerPrint);