-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCommon.fs
46 lines (35 loc) · 1.31 KB
/
Common.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
module Common
open TestTypes
open System
let baseuri = "https://ci.una.io/test"
let defaultAdmin = {
userEmail = "[email protected]";
//to make this work add on local machine into your ~/.bashrc next line
// export adminexamplepassword=apasswordforadminuser
// in windows run setx adminexamplepassword apasswordforadminuser
userPassword = Environment.GetEnvironmentVariable("adminexamplepassword");
userName = "admin";
isAdmin = true
}
let createUser userName =
{defaultAdmin with userEmail = userName + "@example.com"; userName = userName;
// ToDo uncomment later once users will be changed to not admins
//isAdmin = false
}
let user_luck = createUser "luck"
let user_lily = createUser "lily"
let user_eva = createUser "eva"
let user_linda = createUser "linda"
let user_emma = createUser "emma"
let user_karen = createUser "karen"
let user_ella = createUser "ella"
let user_viky = createUser "viky"
let user_mila = createUser "mila"
let user_eric = createUser "eric"
let user_jack = createUser "jack"
let user_rob = createUser "rob"
let user_dave = createUser "dave"
let user_tom = createUser "tom"
let user_andy = createUser "andy"
let user_ivan = createUser "ivan"
let generateResultsFullFileName filename = sprintf "./TestResults/%s" filename