+
+ rootId = res.body.id
+ })
+
+ it('Should load a user by id', async function () {
+ {
+ const res = await makeGetRequest({
+ url: servers[0].url,
+ path: '/plugins/test-four/router/user/' + rootId,
+ expectedStatus: HttpStatusCode.OK_200
+ })
+
+ expect(res.body.username).to.equal('root')
+ }
+
+ {
+ await makeGetRequest({
+ url: servers[0].url,
+ path: '/plugins/test-four/router/user/42',
+ expectedStatus: HttpStatusCode.NOT_FOUND_404
+ })
+ }