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