-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathtests.json
68 lines (68 loc) · 1.71 KB
/
tests.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
{
"root": {
"posts": {
"existing-post": {
".priority": 85,
"title": "Can bees think?",
"content": "A new study confirms that no, they cannot.",
"clearance-level": 6,
"date": 1420066757609
},
"other-post": {
".priority": 0,
"title": "President Harding Dies Several Months Ago",
"content": "Details on page Z88",
"clearance-level": 10,
"date": 1420066757620
}
},
"users": {
"password:ad7ebe2e-f547-4110-bda8-678af95b7efd": {
"clearance-level": 6,
"author": true
},
"password:bb9c1467-8ad3-4b33-8913-f2b491cdbb86": {
"clearance-level": 8,
"ticketagent": true
}
}
},
"users": {
"an author": { "uid": "password:ad7ebe2e-f547-4110-bda8-678af95b7efd" },
"John Smith": { "uid": "password:bb9c1467-8ad3-4b33-8913-f2b491cdbb86" }
},
"tests": {
"posts/existing-post": {
"canRead": [ "John Smith" ]
},
"posts/existing-post/date": {
"cannotWrite": [
{ "auth": "John Smith", "data": 1420066757609 },
{ "auth": "an author", "data": 1420066757609 }
]
},
"posts/new-post": {
"canWrite": [{
"auth": "an author", "data": {
"date": { ".sv": "timestamp" }
}
}],
"cannotWrite": [{
"auth": "John Smith", "data": {
"date": { ".sv": "timestamp" }
}
}]
},
"posts/new-post/date": {
"canWrite": [
{ "auth": "an author", "data": { ".sv": "timestamp" } }
],
"cannotWrite": [
{ "auth": "John Smith", "data": { ".sv": "timestamp" } }
]
},
"posts/other-post": {
"cannotRead": ["John Smith"]
}
}
}