]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.yml
Fix API test cases
[friendica.git] / tests / datasets / api.yml
1 ---
2 # Empty these tables
3 cache:
4 config:
5 conversation:
6 pconfig:
7 photo:
8 workerqueue:
9 mail:
10
11 # Populate tables with test data
12 user:
13     -
14         uid: 42
15         username: Test user
16         nickname: selfcontact
17         verified: true
18         password: $2y$10$DLRNTRmJgKe1cSrFJ5Jb0edCqvXlA9sh/RHdSnfxjbR.04yZRm4Qm
19         theme: frio
20
21 contact:
22     -
23         id: 42
24         uid: 42
25         name: Self contact
26         nick: selfcontact
27         self: true
28         nurl: http://localhost/profile/selfcontact
29         url: http://localhost/profile/selfcontact
30         about: User used in tests
31         pending: false
32         blocked: false
33         rel: 1
34         network: dfrn
35     -
36         id: 43
37         uid: 42
38         # Having the same name and nick allows us to test
39         # the fallback to api_get_nick() in api_get_user()
40         name: othercontact
41         nick: othercontact
42         self: false
43         nurl: http://localhost/profile/othercontact
44         url: http://localhost/profile/othercontact
45         pending: false
46         blocked: false
47         rel: 0
48         network: dfrn
49     -
50         id: 44
51         uid: 0
52         name: Friend contact
53         nick: friendcontact
54         self: false
55         nurl: http://localhost/profile/friendcontact
56         url: http://localhost/profile/friendcontact
57         pending: false
58         blocked: false
59         rel: 2
60         network: dfrn
61
62 item:
63     -
64         id: 1
65         visible: true
66         contact-id: 42
67         author-id: 42
68         owner-id: 45
69         uid: 42
70         verb: http://activitystrea.ms/schema/1.0/post
71         unseen: true
72         body: Parent status
73         parent: 1
74         author-link: http://localhost/profile/selfcontact
75         wall: true
76         starred: true
77         origin: true
78         allow_cid: ''
79         allow_gid: ''
80         deny_cid: ''
81         deny_gid: ''
82     -
83         id: 2
84         visible: true
85         contact-id: 42
86         author-id: 42
87         owner-id: 45
88         uid: 42
89         verb: http://activitystrea.ms/schema/1.0/post
90         unseen: false
91         body: Reply
92         parent: 1
93         author-link: http://localhost/profile/selfcontact
94         wall: true
95         starred: false
96         origin: true
97     -
98         id: 3
99         visible: true
100         contact-id: 43
101         author-id: 43
102         owner-id: 42
103         uid: 42
104         verb: http://activitystrea.ms/schema/1.0/post
105         unseen: false
106         body: Other user status
107         parent: 3
108         author-link: http://localhost/profile/othercontact
109         wall: true
110         starred: false
111         origin: true
112     -
113         id: 4
114         visible: true
115         contact-id: 44
116         author-id: 44
117         owner-id: 42
118         uid: 42
119         verb: http://activitystrea.ms/schema/1.0/post
120         unseen: false
121         body: Friend user reply
122         parent: 1
123         author-link: http://localhost/profile/othercontact
124         wall: true
125         starred: false
126         origin: true
127     -
128         id: 5
129         visible: true
130         contact-id: 42
131         author-id: 42
132         owner-id: 42
133         uid: 42
134         verb: http://activitystrea.ms/schema/1.0/post
135         unseen: false
136         body: '[share]Shared status[/share]'
137         parent: 1
138         author-link: http://localhost/profile/othercontact
139         wall: true
140         starred: false
141         origin: true
142         allow_cid: ''
143         allow_gid: ''
144         deny_cid: ''
145         deny_gid: ''
146     -
147         id: 6
148         visible: true
149         contact-id: 44
150         author-id: 44
151         owner-id: 42
152         uid: 42
153         verb: http://activitystrea.ms/schema/1.0/post
154         unseen: false
155         body: Friend user status
156         parent: 6
157         author-link: http://localhost/profile/othercontact
158         wall: true
159         starred: false
160         origin: true
161
162 thread:
163     -
164         iid: 1
165         visible: true
166         contact-id: 42
167         author-id: 42
168         owner-id: 42
169         uid: 42
170         wall: true
171     -
172         iid: 3
173         visible: true
174         contact-id: 43
175         author-id: 43
176         owner-id: 43
177         uid: 0
178         wall: true
179     -
180         iid: 6
181         visible: true
182         contact-id: 44
183         author-id: 44
184         owner-id: 44
185         uid: 0
186         wall: true
187
188 group:
189     -
190         id: 1
191         uid: 42
192         visible: true
193         name: Visible list
194     -
195         id: 2
196         uid: 42
197         visible: false
198         name: Private list
199
200 search:
201     -
202         id: 1
203         term: Saved search
204         uid: 42