]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.yml
4c385dacc719f763813720b330bf635f5f2a3357
[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 item:
63     -
64         id: 1
65         visible: true
66         contact-id: 42
67         author-id: 42
68         owner-id: 42
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         private: 0
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: 42
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     -
97         id: 3
98         visible: true
99         contact-id: 43
100         author-id: 43
101         owner-id: 42
102         uid: 42
103         verb: http://activitystrea.ms/schema/1.0/post
104         unseen: false
105         body: Other user status
106         parent: 3
107         author-link: http://localhost/profile/othercontact
108         wall: true
109         starred: false
110     -
111         id: 4
112         visible: true
113         contact-id: 43
114         author-id: 43
115         owner-id: 42
116         uid: 42
117         verb: http://activitystrea.ms/schema/1.0/post
118         unseen: false
119         body: Other user reply
120         parent: 1
121         author-link: http://localhost/profile/othercontact
122         wall: true
123         starred: false
124     -
125         id: 5
126         visible: true
127         contact-id: 42
128         author-id: 42
129         owner-id: 42
130         uid: 42
131         verb: http://activitystrea.ms/schema/1.0/post
132         unseen: false
133         body: '[share]Shared status[/share]'
134         parent: 1
135         author-link: http://localhost/profile/othercontact
136         wall: true
137         starred: false
138         private: 0
139         allow_cid: ''
140         allow_gid: ''
141         deny_cid: ''
142         deny_gid: ''
143     -
144         id: 6
145         visible: true
146         contact-id: 44
147         author-id: 44
148         owner-id: 42
149         uid: 42
150         verb: http://activitystrea.ms/schema/1.0/post
151         unseen: false
152         body: Friend user status
153         parent: 6
154         author-link: http://localhost/profile/othercontact
155         wall: true
156         starred: false
157
158 thread:
159     -
160         iid: 1
161         visible: true
162         contact-id: 42
163         uid: 42
164         wall: true
165     -
166         iid: 3
167         visible: true
168         contact-id: 43
169         uid: 0
170         wall: true
171     -
172         iid: 6
173         visible: true
174         contact-id: 44
175         uid: 0
176         wall: true
177
178 group:
179     -
180         id: 1
181         uid: 42
182         visible: true
183         name: Visible list
184     -
185         id: 2
186         uid: 42
187         visible: false
188         name: Private list
189
190 search:
191     -
192         id: 1
193         term: Saved search
194         uid: 42