31 lines
818 B
Swift
31 lines
818 B
Swift
import Foundation
|
|
import Shared
|
|
|
|
enum ServerFixture {
|
|
static let standard = Server(identifier: "123", getter: {
|
|
.init(
|
|
name: "A Name",
|
|
connection: .init(
|
|
externalURL: nil,
|
|
internalURL: nil,
|
|
cloudhookURL: nil,
|
|
remoteUIURL: nil,
|
|
webhookID: "",
|
|
webhookSecret: nil,
|
|
internalSSIDs: nil,
|
|
internalHardwareAddresses: nil,
|
|
isLocalPushEnabled: false,
|
|
securityExceptions: .init(exceptions: [])
|
|
),
|
|
token: .init(
|
|
accessToken: "",
|
|
refreshToken: "",
|
|
expiration: Date()
|
|
),
|
|
version: "123"
|
|
)
|
|
}, setter: { _ in
|
|
true
|
|
})
|
|
}
|