This repository has been archived by the owner on May 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_shared_file_data.json
88 lines (83 loc) · 2.05 KB
/
get_shared_file_data.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"test-flow": [
{
"type": "add-user",
"is-admin": true, "name": "admin", "email": "test@example.com"
},
{
"type": "add-file",
"target-user": "admin",
"file-root": "test1.txt",
"text": "this is text1"
},
{
"type": "add-file",
"target-user": "admin",
"file-root": "test2.txt",
"text": "this is text2"
},
{
"type": "add-directory",
"target-user": "admin",
"file-root": "dir1"
},
{
"type": "add-file",
"target-user": "admin",
"file-root": "dir1/test2.txt",
"text": "this is text2"
},
{
"type": "share-file",
"target-user": "admin",
"file-root": "test1.txt",
"is-succeed": true, "exception": null
},
{
"type": "share-file",
"target-user": "admin",
"file-root": "dir1/test2.txt",
"is-succeed": true, "exception": null
},
{
"type": "get-shared-file",
"target-user": "admin",
"file-root": "aaggccddss",
"is-succeed": false, "exception": "MicrocloudchipFileNotFoundError",
"expected-file-data": null
},
{
"type": "get-shared-file",
"target-user": "admin",
"file-root": "dir1",
"is-succeed": false, "exception": "MicrocloudchipFileNotFoundError",
"expected-file-data": null
},
{
"type": "get-shared-file",
"target-user": "admin",
"file-root": "test2.txt",
"is-succeed": false, "exception": "MicrocloudchipFileIsNotSharedError",
"expected-file-data": null
},
{
"type": "get-shared-file",
"target-user": "admin",
"file-root": "test1.txt",
"is-succeed": true, "exception": null,
"expected-file-data": "this is text1"
},
{
"type": "remove-file",
"target-user": "admin",
"file-root": "test1.txt"
},
{
"type": "get-shared-file",
"target-user": "admin",
"file-root": "test1.txt",
"is-succeed": false, "exception": "MicrocloudchipFileSharedButRemovedError",
"expected-file-data": null
}
]
}