This commit is contained in:
PierreOzoux 2022-05-02 12:25:08 +02:00
parent fa499d9c53
commit af9c4fa307
8 changed files with 92 additions and 0 deletions

View file

@ -0,0 +1,17 @@
_id: ut_0336e3c86e494c658f26684b1cf3acff
type: UnitTest
parentId: uts_429299a4eccb41d587546701419d1687
modified: 1651483472086
created: 1651143044064
requestId: req_a94c79a2fd0a49b3b3c3d71966d96d5a
name: Get /User/test
code: >
const response = await insomnia.send();
const body = JSON.parse(response.data);
expect(response.status).to.equal(200);
expect(body.userName).to.equal('test');
expect(body.emails.find(x => x.primary === true).value).to.equal('test@example.net');

View file

@ -0,0 +1,16 @@
_id: ut_3e40e630bb434b888548336d23039c5d
type: UnitTest
parentId: uts_429299a4eccb41d587546701419d1687
modified: 1651483474016
created: 1651143728650
requestId: req_a94c79a2fd0a49b3b3c3d71966d96d5a
name: Get /User/test
code: >
const response1 = await insomnia.send();
const body = JSON.parse(response1.data);
expect(response1.status).to.equal(200);
expect(body.emails.find(x => x.primary === true).value).to.equal('another@example.net');

View file

@ -0,0 +1,15 @@
_id: ut_679fa5a9d3124222931e1436c64720af
type: UnitTest
parentId: uts_429299a4eccb41d587546701419d1687
modified: 1651483466991
created: 1651047628255
requestId: req_61c232ba3e5145fdbdeaf76283bbdae8
name: Get /Users
code: |+
const response = await insomnia.send();
expect(response.status).to.equal(200);
const body = JSON.parse(response.data);
//console.log(body);
expect(body.Resources).to.be.an('array');
expect(body.Resources[0].id).to.equal('admin');

View file

@ -0,0 +1,10 @@
_id: ut_91894e79c9ed4d5da5f4e3db2bb7f4ba
type: UnitTest
parentId: uts_429299a4eccb41d587546701419d1687
modified: 1651483473151
created: 1651143719742
requestId: req_ef7e9d77fc90488e8d005455c5f7ff28
name: Put /User/test
code: |-
const response1 = await insomnia.send();
expect(response1.status).to.equal(200);

View file

@ -0,0 +1,10 @@
_id: ut_bdcc8b3fadc246f0ad4d2ef37617d472
type: UnitTest
parentId: uts_429299a4eccb41d587546701419d1687
modified: 1651483468325
created: 1651142984584
requestId: req_a4fa84d8861d4122916524d3c67eb3d0
name: Post /Users
code: |-
const response1 = await insomnia.send();
expect(response1.status).to.equal(200);

View file

@ -0,0 +1,10 @@
_id: ut_f8e860e92fbb403eb96e48889ec2c59a
type: UnitTest
parentId: uts_429299a4eccb41d587546701419d1687
modified: 1651483475427
created: 1651143759030
requestId: req_e74f3da259354e84aa99967258d99bbb
name: Del /User/test
code: |-
const response1 = await insomnia.send();
expect(response1.status).to.equal(204);

View file

@ -0,0 +1,6 @@
_id: uts_429299a4eccb41d587546701419d1687
type: UnitTestSuite
parentId: wrk_813c56f2ee4846179823b77290d0b55d
modified: 1651487081333
created: 1651046518237
name: Scim Tests

View file

@ -0,0 +1,8 @@
_id: wrk_813c56f2ee4846179823b77290d0b55d
type: Workspace
parentId: null
modified: 1651486439389
created: 1651046518194
name: New Document
description: Ssim tests
scope: design