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