]> git.mxchange.org Git - friendica.git/blob - tests/datasets/api.yml
138e18e842c7cf3e60887f35f829d949a774220d
[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: 2
48         network: dfrn
49
50 item:
51     -
52         id: 1
53         visible: true
54         contact-id: 42
55         author-id: 42
56         owner-id: 42
57         uid: 42
58         verb: http://activitystrea.ms/schema/1.0/post
59         unseen: true
60         body: Parent status
61         parent: 1
62         author-link: http://localhost/profile/selfcontact
63         wall: true
64         starred: true
65         allow_cid: ''
66         allow_gid: ''
67         deny_cid: ''
68         deny_gid: ''
69     -
70         id: 2
71         visible: true
72         contact-id: 42
73         author-id: 42
74         owner-id: 42
75         uid: 42
76         verb: http://activitystrea.ms/schema/1.0/post
77         unseen: false
78         body: Reply
79         parent: 1
80         author-link: http://localhost/profile/selfcontact
81         wall: true
82         starred: false
83     -
84         id: 3
85         visible: true
86         contact-id: 43
87         author-id: 43
88         owner-id: 42
89         uid: 42
90         verb: http://activitystrea.ms/schema/1.0/post
91         unseen: false
92         body: Other user status
93         parent: 3
94         author-link: http://localhost/profile/othercontact
95         wall: true
96         starred: false
97     -
98         id: 4
99         visible: true
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: false
106         body: Other user reply
107         parent: 1
108         author-link: http://localhost/profile/othercontact
109         wall: true
110         starred: false
111     -
112         id: 5
113         visible: true
114         contact-id: 42
115         author-id: 42
116         owner-id: 42
117         uid: 42
118         verb: http://activitystrea.ms/schema/1.0/post
119         unseen: false
120         body: '[share]Shared status[/share]'
121         parent: 1
122         author-link: http://localhost/profile/othercontact
123         wall: true
124         starred: false
125         allow_cid: ''
126         allow_gid: ''
127         deny_cid: ''
128         deny_gid: ''
129
130 thread:
131     -
132         iid: 1
133         visible: true
134         contact-id: 42
135         uid: 42
136         wall: true
137     -
138         iid: 3
139         visible: true
140         contact-id: 43
141         uid: 0
142         wall: true
143
144 group:
145     -
146         id: 1
147         uid: 42
148         visible: true
149         name: Visible list
150     -
151         id: 2
152         uid: 42
153         visible: false
154         name: Private list
155
156 search:
157     -
158         id: 1
159         term: Saved search
160         uid: 42