pEpForiOSUITests/UITestData.swift.sample
author Xavier Algarra <xavier@pep-project.org>
Tue, 06 Jun 2017 07:49:23 +0200
changeset 2248 75013a586bfd
parent 1435 1f482eea873e
child 2305 d2d37db708e6
permissions -rw-r--r--
IOS-137 add multiple accounts option with the new login
dirk@216
     1
//
dirk@216
     2
//  UITestData.swift
dirk@216
     3
//  pEpForiOS
dirk@216
     4
//
dirk@216
     5
//  Created by Dirk Zimmermann on 20/05/16.
dirk@216
     6
//  Copyright © 2016 p≡p Security S.A. All rights reserved.
dirk@216
     7
//
dirk@216
     8
dirk@216
     9
import Foundation
dirk@216
    10
dirk@216
    11
struct Account {
dirk@782
    12
    var nameOfTheUser: String
dirk@216
    13
    var email: String
dirk@950
    14
    var imapServerName: String
dirk@950
    15
    var smtpServerName: String
dirk@216
    16
    var password: String
dirk@216
    17
    var imapPort: Int
dirk@216
    18
    var smtpPort: Int
dirk@229
    19
dirk@229
    20
    /**
dirk@229
    21
     This unfortunately must correspond to the localized name on screen.
dirk@229
    22
     */
dirk@229
    23
    var imapTransportSecurityString: String
dirk@229
    24
dirk@229
    25
    /**
dirk@229
    26
     This unfortunately must correspond to the localized name on screen.
dirk@229
    27
     */
dirk@229
    28
    var smtpTransportSecurityString: String
dirk@216
    29
}
dirk@216
    30
dirk@216
    31
struct UITestData {
dirk@1435
    32
    static let workingAccount1 = Account.init(
dirk@950
    33
        nameOfTheUser: "Name",
dirk@1435
    34
        email: "email1@example.com",
dirk@1435
    35
        imapServerName: "localhost", smtpServerName: "localhost",
dirk@1435
    36
        password: "secret", imapPort: 993, smtpPort: 587,
dirk@1435
    37
        imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
dirk@1435
    38
dirk@1435
    39
    static let workingAccount2 = Account.init(
dirk@1435
    40
        nameOfTheUser: "Name",
dirk@1435
    41
        email: "email2@example.com",
dirk@1435
    42
        imapServerName: "localhost", smtpServerName: "localhost",
dirk@1435
    43
        password: "secret", imapPort: 993, smtpPort: 587,
dirk@1435
    44
        imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
dirk@1435
    45
dirk@1435
    46
    static let workingAccount3 = Account.init(
dirk@1435
    47
        nameOfTheUser: "Name",
dirk@1435
    48
        email: "email3@example.com",
dirk@950
    49
        imapServerName: "localhost", smtpServerName: "localhost",
dirk@950
    50
        password: "secret", imapPort: 993, smtpPort: 587,
dirk@229
    51
        imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
dirk@227
    52
dirk@227
    53
    static let workingYahooAccount = Account.init(
dirk@950
    54
        nameOfTheUser: "WhatEverYouWant",
dirk@950
    55
        email: "this_is_me@yahoo.com",
dirk@950
    56
        imapServerName: "imap.mail.yahoo.com", smtpServerName: "smtp.mail.yahoo.com",
dirk@950
    57
        password: "cannotRevealThis", imapPort: 993, smtpPort: 587,
dirk@950
    58
        imapTransportSecurityString: "TLS", smtpTransportSecurityString: "StartTLS")
dirk@216
    59
}