1+ ### CLUSTERING ###
2+
3+ GET {{host}}/plugins/restapi/v1/clustering/status
4+ Authorization : {{ authkey }}
5+ HTTP 200
6+ [Asserts]
7+ xpath "string(/clustering/status)" == "Disabled"
8+
9+ GET {{host}}/plugins/restapi/v1/clustering/nodes
10+ Authorization : {{ authkey }}
11+ HTTP 200
12+ [Asserts]
13+ xpath "/clusterNodes[not(child::node())]" exists
14+
15+
16+ ### USER GROUPS ###
17+
18+ GET http://localhost:9090/plugins/restapi/v1/groups
19+ Authorization : {{ authkey }}
20+ HTTP 200
21+ [Asserts]
22+ xpath "/groups[not(child::node())]" exists # groups at the root, with no child nodes
23+
24+ POST http://localhost:9090/plugins/restapi/v1/groups
25+ Authorization : {{ authkey }}
26+ Content-Type : application/xml
27+ ```
28+ <?xml version="1.0" encoding="UTF-8"?>
29+ <group>
30+ <name>group1</name>
31+ <description>test-group</description>
32+ <shared>false</shared>
33+ <admins>
34+ <admin>jane</admin>
35+ </admins>
36+ <members>
37+ <member>john</member>
38+ </members>
39+ </group>
40+ ```
41+ HTTP 201
42+
43+ GET http://localhost:9090/plugins/restapi/v1/groups # check if the group was created
44+ Authorization : {{ authkey }}
45+ HTTP 200
46+ [Asserts]
47+ xpath "/groups/group[name='group1']" exists
48+
49+ GET http://localhost:9090/plugins/restapi/v1/groups/group1
50+ Authorization : {{ authkey }}
51+ HTTP 200
52+ [Asserts]
53+ xpath "/group[name='group1']" exists
54+ xpath "string(/group/description)" == "test-group"
55+
56+ PUT http://localhost:9090/plugins/restapi/v1/groups/group1
57+ Authorization : {{ authkey }}
58+ Content-Type : application/xml
59+ ```
60+ <?xml version="1.0" encoding="UTF-8"?>
61+ <group>
62+ <name>group1</name>
63+ <description>test-group-updated</description>
64+ <shared>false</shared>
65+ <admins>
66+ <admin>jane</admin>
67+ </admins>
68+ <members>
69+ <member>john</member>
70+ </members>
71+ </group>
72+ ```
73+ HTTP 200
74+
75+ GET http://localhost:9090/plugins/restapi/v1/groups/group1
76+ Authorization : {{ authkey }}
77+ HTTP 200
78+ [Asserts]
79+ xpath "/group[name='group1']" exists
80+ xpath "string(/group/description)" == "test-group-updated"
81+
82+ DELETE http://localhost:9090/plugins/restapi/v1/groups/group1
83+ Authorization : {{ authkey }}
84+ HTTP 200
85+
86+
87+ ### CHAT ROOMS ###
88+ GET http://localhost:9090/plugins/restapi/v1/chatrooms
89+ Authorization : {{ authkey }}
90+ HTTP 200
91+
92+ GET http://localhost:9090/plugins/restapi/v1/sessions
93+ Authorization : {{ authkey }}
94+ HTTP 200
95+ [Asserts]
96+ xpath "/sessions[not(child::node())]" count == 1 # sessions at the root, with no child nodes
97+
98+
99+ GET http://localhost:9090/plugins/restapi/v1/system/readiness/server
100+ Authorization : {{ authkey }}
101+ HTTP 200
0 commit comments