-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjsonvaluesources.json
69 lines (63 loc) · 1.64 KB
/
jsonvaluesources.json
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Sources of data:
// Global - Static data shared across all tests
// Environmental - Static or generated data shared across a suite of tests
// Previoustest - Data returned from an earlier test in a suite of tests (not available if single test)
// Runtest - Run a test to get data for this field
// Ffaker - Generated data
// Custom - Custom methods in fudo, eg HMAC
// Fixed - fixed fields
{
"type": "object",
"required": false,
"properties": {
"token": {
"type": "string",
"source": "Custom",
"value": "HMAC",
"inputs": "secret,apikey",
"required": true
},
"apiversion": {
"type": "string",
"source": "Environmental",
"namespace": "Api",
"value": "Version",
"required": true
},
"name": {
"type": "string",
"source": "fixed",
"value": "Alex",
"required": false
},
"surname": {
"type": "string",
"source": "Faker",
"value": "Name.surname",
"required": false
},
"primaryaddress": {
"type": "string",
"source": "Previoustest",
"value": "GetUserDetails;primaryaddress",
"required": false
},
"friends": {
"type": "string",
"source": "Runtest",
"namespace": "General",
"value": "GetFriendGraph",
"required": true
}
}
}
// if it's type object
// => if required, change value to array, add to test list
// => if required, change value to string, add to test list
// => if required, remove key, add to test list
// => if required, leave empty, add to test list
// => enter properties
//Required - Not required
//Unique
//Auth
//Force status code on fail