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