]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.yml
25c9dade60d24c30ff81e0092399517adf1938bd
[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: 1
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: 1
28         nurl: http://localhost/profile/selfcontact
29         url: http://localhost/profile/selfcontact
30         about: User used in tests
31         pending: 0
32         blocked: 0
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: 0
43         nurl: http://localhost/profile/othercontact
44         url: http://localhost/profile/othercontact
45         pending: 0
46         blocked: 0
47         rel: 0
48         network: dfrn
49     -
50         id: 44
51         uid: 42
52         name: Friend contact
53         nick: friendcontact
54         self: 0
55         nurl: http://localhost/profile/friendcontact
56         url: http://localhost/profile/friendcontact
57         pending: 0
58         blocked: 0
59         rel: 2
60         network: dfrn
61
62 item:
63     -
64         id: 1
65         visible: 1
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: 1
72         body: Parent status
73         parent: 1
74         author-link: http://localhost/profile/selfcontact
75         wall: 1
76         starred: 1
77         origin: 1
78         allow_cid: ''
79         allow_gid: ''
80         deny_cid: ''
81         deny_gid: ''
82     -
83         id: 2
84         visible: 1
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: 0
91         body: Reply
92         parent: 1
93         author-link: http://localhost/profile/selfcontact
94         wall: 1
95         starred: 0
96         origin: 1
97     -
98         id: 3
99         visible: 1
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: 0
106         body: Other user status
107         parent: 3
108         author-link: http://localhost/profile/othercontact
109         wall: 1
110         starred: 0
111         origin: 1
112     -
113         id: 4
114         visible: 1
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: 0
121         body: Friend user reply
122         parent: 1
123         author-link: http://localhost/profile/othercontact
124         wall: 1
125         starred: 0
126         origin: 1
127     -
128         id: 5
129         visible: 1
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: 0
136         body: '[share]Shared status[/share]'
137         parent: 1
138         author-link: http://localhost/profile/othercontact
139         wall: 1
140         starred: 0
141         origin: 1
142         allow_cid: ''
143         allow_gid: ''
144         deny_cid: ''
145         deny_gid: ''
146     -
147         id: 6
148         visible: 1
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: 0
155         body: Friend user status
156         parent: 6
157         author-link: http://localhost/profile/othercontact
158         wall: 1
159         starred: 0
160         origin: 1
161
162 thread:
163     -
164         iid: 1
165         visible: 1
166         contact-id: 42
167         author-id: 42
168         owner-id: 42
169         uid: 42
170         wall: 1
171     -
172         iid: 3
173         visible: 1
174         contact-id: 43
175         author-id: 43
176         owner-id: 43
177         uid: 0
178         wall: 1
179     -
180         iid: 6
181         visible: 1
182         contact-id: 44
183         author-id: 44
184         owner-id: 44
185         uid: 0
186         wall: 1
187
188 group:
189     -
190         id: 1
191         uid: 42
192         visible: 1
193         name: Visible list
194     -
195         id: 2
196         uid: 42
197         visible: 0
198         name: Private list
199
200 search:
201     -
202         id: 1
203         term: Saved search
204         uid: 42