]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.yml
e5c51c886ee5605f027e0580849533286ff3144b
[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: 0
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: 42
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         id: 45
63         uid: 0
64         name: Self contact
65         nick: selfcontact
66         self: false
67         nurl: http://localhost/profile/selfcontact
68         url: http://localhost/profile/selfcontact
69         about: User used in tests
70         pending: false
71         blocked: false
72         rel: 0
73         network: dfrn
74     -
75         id: 46
76         uid: 0
77         name: Friend contact
78         nick: friendcontact
79         self: false
80         nurl: http://localhost/profile/friendcontact
81         url: http://localhost/profile/friendcontact
82         pending: false
83         blocked: false
84         rel: 0
85         network: dfrn
86     -
87
88 item:
89     -
90         id: 1
91         visible: true
92         contact-id: 42
93         author-id: 45
94         owner-id: 45
95         uid: 42
96         verb: http://activitystrea.ms/schema/1.0/post
97         unseen: true
98         body: Parent status
99         parent: 1
100         author-link: http://localhost/profile/selfcontact
101         wall: true
102         starred: true
103         allow_cid: ''
104         allow_gid: ''
105         deny_cid: ''
106         deny_gid: ''
107     -
108         id: 2
109         visible: true
110         contact-id: 42
111         author-id: 45
112         owner-id: 45
113         uid: 42
114         verb: http://activitystrea.ms/schema/1.0/post
115         unseen: false
116         body: Reply
117         parent: 1
118         author-link: http://localhost/profile/selfcontact
119         wall: true
120         starred: false
121     -
122         id: 3
123         visible: true
124         contact-id: 43
125         author-id: 43
126         owner-id: 42
127         uid: 42
128         verb: http://activitystrea.ms/schema/1.0/post
129         unseen: false
130         body: Other user status
131         parent: 3
132         author-link: http://localhost/profile/othercontact
133         wall: true
134         starred: false
135     -
136         id: 4
137         visible: true
138         contact-id: 43
139         author-id: 43
140         owner-id: 42
141         uid: 42
142         verb: http://activitystrea.ms/schema/1.0/post
143         unseen: false
144         body: Other user reply
145         parent: 1
146         author-link: http://localhost/profile/othercontact
147         wall: true
148         starred: false
149     -
150         id: 5
151         visible: true
152         contact-id: 42
153         author-id: 42
154         owner-id: 42
155         uid: 42
156         verb: http://activitystrea.ms/schema/1.0/post
157         unseen: false
158         body: '[share]Shared status[/share]'
159         parent: 1
160         author-link: http://localhost/profile/othercontact
161         wall: true
162         starred: false
163         allow_cid: ''
164         allow_gid: ''
165         deny_cid: ''
166         deny_gid: ''
167     -
168         id: 6
169         visible: true
170         contact-id: 44
171         author-id: 44
172         owner-id: 42
173         uid: 42
174         verb: http://activitystrea.ms/schema/1.0/post
175         unseen: false
176         body: Friend user status
177         parent: 6
178         author-link: http://localhost/profile/othercontact
179         wall: true
180         starred: false
181
182 thread:
183     -
184         iid: 1
185         visible: true
186         contact-id: 42
187         uid: 42
188         wall: true
189     -
190         iid: 3
191         visible: true
192         contact-id: 43
193         uid: 0
194         wall: true
195     -
196         iid: 6
197         visible: true
198         contact-id: 44
199         uid: 0
200         wall: true
201
202 group:
203     -
204         id: 1
205         uid: 42
206         visible: true
207         name: Visible list
208     -
209         id: 2
210         uid: 42
211         visible: false
212         name: Private list
213
214 search:
215     -
216         id: 1
217         term: Saved search
218         uid: 42