This commit is contained in:
parent
fa499d9c53
commit
af9c4fa307
8 changed files with 92 additions and 0 deletions
17
.insomnia/UnitTest/ut_0336e3c86e494c658f26684b1cf3acff.yml
Executable file
17
.insomnia/UnitTest/ut_0336e3c86e494c658f26684b1cf3acff.yml
Executable 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');
|
16
.insomnia/UnitTest/ut_3e40e630bb434b888548336d23039c5d.yml
Executable file
16
.insomnia/UnitTest/ut_3e40e630bb434b888548336d23039c5d.yml
Executable 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');
|
15
.insomnia/UnitTest/ut_679fa5a9d3124222931e1436c64720af.yml
Executable file
15
.insomnia/UnitTest/ut_679fa5a9d3124222931e1436c64720af.yml
Executable 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');
|
||||||
|
|
10
.insomnia/UnitTest/ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml
Executable file
10
.insomnia/UnitTest/ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml
Executable 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);
|
10
.insomnia/UnitTest/ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml
Executable file
10
.insomnia/UnitTest/ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml
Executable 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);
|
10
.insomnia/UnitTest/ut_f8e860e92fbb403eb96e48889ec2c59a.yml
Executable file
10
.insomnia/UnitTest/ut_f8e860e92fbb403eb96e48889ec2c59a.yml
Executable 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);
|
6
.insomnia/UnitTestSuite/uts_429299a4eccb41d587546701419d1687.yml
Executable file
6
.insomnia/UnitTestSuite/uts_429299a4eccb41d587546701419d1687.yml
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
_id: uts_429299a4eccb41d587546701419d1687
|
||||||
|
type: UnitTestSuite
|
||||||
|
parentId: wrk_813c56f2ee4846179823b77290d0b55d
|
||||||
|
modified: 1651487081333
|
||||||
|
created: 1651046518237
|
||||||
|
name: Scim Tests
|
8
.insomnia/Workspace/wrk_813c56f2ee4846179823b77290d0b55d.yml
Executable file
8
.insomnia/Workspace/wrk_813c56f2ee4846179823b77290d0b55d.yml
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
_id: wrk_813c56f2ee4846179823b77290d0b55d
|
||||||
|
type: Workspace
|
||||||
|
parentId: null
|
||||||
|
modified: 1651486439389
|
||||||
|
created: 1651046518194
|
||||||
|
name: New Document
|
||||||
|
description: Ssim tests
|
||||||
|
scope: design
|
Loading…
Reference in a new issue