IOSAD-134 Test fails on partner identities. IOSAD-134
authorDirk Zimmermann <dz@pep.security>
Mon, 02 Sep 2019 16:47:25 +0200
branchIOSAD-134
changeset 120263befb9a642a
parent 1201 86badda71ac9
child 1203 748710463f1e
IOSAD-134 Test fails on partner identities.
pEpObjCTests/PEPSessionTest.m
     1.1 --- a/pEpObjCTests/PEPSessionTest.m	Mon Sep 02 16:47:25 2019 +0200
     1.2 +++ b/pEpObjCTests/PEPSessionTest.m	Mon Sep 02 16:47:25 2019 +0200
     1.3 @@ -1321,6 +1321,27 @@
     1.4  
     1.5  #pragma mark - enable/disable sync
     1.6  
     1.7 +- (void)testEnableDisableSyncOnPartnerIdentity
     1.8 +{
     1.9 +    PEPIdentity *notMe = [[PEPIdentity alloc]
    1.10 +                             initWithAddress:@"notme@pep-project.org"
    1.11 +                             userID:@"notme_ID"
    1.12 +                             userName:@"notme"
    1.13 +                             isOwn:NO];
    1.14 +
    1.15 +    NSError *error = nil;
    1.16 +    XCTAssertFalse([notMe enableKeySync:&error]);
    1.17 +    XCTAssertNotNil(error);
    1.18 +
    1.19 +    error = nil;
    1.20 +    XCTAssertFalse([notMe disableKeySync:&error]);
    1.21 +    XCTAssertNotNil(error);
    1.22 +
    1.23 +    error = nil;
    1.24 +    XCTAssertNil([notMe queryKeySyncEnabled:&error]);
    1.25 +    XCTAssertNotNil(error);
    1.26 +}
    1.27 +
    1.28  - (void)testEnableDisableSyncOnOwnIdentityWithQuery
    1.29  {
    1.30      PEPSession *session = [PEPSession new];