From af9c4fa30718efc3b63a8bc20ca9428e9af47053 Mon Sep 17 00:00:00 2001 From: PierreOzoux Date: Mon, 2 May 2022 12:25:08 +0200 Subject: [PATCH] --- .../ut_0336e3c86e494c658f26684b1cf3acff.yml | 17 +++++++++++++++++ .../ut_3e40e630bb434b888548336d23039c5d.yml | 16 ++++++++++++++++ .../ut_679fa5a9d3124222931e1436c64720af.yml | 15 +++++++++++++++ .../ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml | 10 ++++++++++ .../ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml | 10 ++++++++++ .../ut_f8e860e92fbb403eb96e48889ec2c59a.yml | 10 ++++++++++ .../uts_429299a4eccb41d587546701419d1687.yml | 6 ++++++ .../wrk_813c56f2ee4846179823b77290d0b55d.yml | 8 ++++++++ 8 files changed, 92 insertions(+) create mode 100755 .insomnia/UnitTest/ut_0336e3c86e494c658f26684b1cf3acff.yml create mode 100755 .insomnia/UnitTest/ut_3e40e630bb434b888548336d23039c5d.yml create mode 100755 .insomnia/UnitTest/ut_679fa5a9d3124222931e1436c64720af.yml create mode 100755 .insomnia/UnitTest/ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml create mode 100755 .insomnia/UnitTest/ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml create mode 100755 .insomnia/UnitTest/ut_f8e860e92fbb403eb96e48889ec2c59a.yml create mode 100755 .insomnia/UnitTestSuite/uts_429299a4eccb41d587546701419d1687.yml create mode 100755 .insomnia/Workspace/wrk_813c56f2ee4846179823b77290d0b55d.yml diff --git a/.insomnia/UnitTest/ut_0336e3c86e494c658f26684b1cf3acff.yml b/.insomnia/UnitTest/ut_0336e3c86e494c658f26684b1cf3acff.yml new file mode 100755 index 0000000..7f36d5a --- /dev/null +++ b/.insomnia/UnitTest/ut_0336e3c86e494c658f26684b1cf3acff.yml @@ -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'); diff --git a/.insomnia/UnitTest/ut_3e40e630bb434b888548336d23039c5d.yml b/.insomnia/UnitTest/ut_3e40e630bb434b888548336d23039c5d.yml new file mode 100755 index 0000000..3816ee5 --- /dev/null +++ b/.insomnia/UnitTest/ut_3e40e630bb434b888548336d23039c5d.yml @@ -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'); diff --git a/.insomnia/UnitTest/ut_679fa5a9d3124222931e1436c64720af.yml b/.insomnia/UnitTest/ut_679fa5a9d3124222931e1436c64720af.yml new file mode 100755 index 0000000..6c88d10 --- /dev/null +++ b/.insomnia/UnitTest/ut_679fa5a9d3124222931e1436c64720af.yml @@ -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'); + diff --git a/.insomnia/UnitTest/ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml b/.insomnia/UnitTest/ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml new file mode 100755 index 0000000..fafc927 --- /dev/null +++ b/.insomnia/UnitTest/ut_91894e79c9ed4d5da5f4e3db2bb7f4ba.yml @@ -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); diff --git a/.insomnia/UnitTest/ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml b/.insomnia/UnitTest/ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml new file mode 100755 index 0000000..2bc371f --- /dev/null +++ b/.insomnia/UnitTest/ut_bdcc8b3fadc246f0ad4d2ef37617d472.yml @@ -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); diff --git a/.insomnia/UnitTest/ut_f8e860e92fbb403eb96e48889ec2c59a.yml b/.insomnia/UnitTest/ut_f8e860e92fbb403eb96e48889ec2c59a.yml new file mode 100755 index 0000000..6f8506a --- /dev/null +++ b/.insomnia/UnitTest/ut_f8e860e92fbb403eb96e48889ec2c59a.yml @@ -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); diff --git a/.insomnia/UnitTestSuite/uts_429299a4eccb41d587546701419d1687.yml b/.insomnia/UnitTestSuite/uts_429299a4eccb41d587546701419d1687.yml new file mode 100755 index 0000000..c3345a0 --- /dev/null +++ b/.insomnia/UnitTestSuite/uts_429299a4eccb41d587546701419d1687.yml @@ -0,0 +1,6 @@ +_id: uts_429299a4eccb41d587546701419d1687 +type: UnitTestSuite +parentId: wrk_813c56f2ee4846179823b77290d0b55d +modified: 1651487081333 +created: 1651046518237 +name: Scim Tests diff --git a/.insomnia/Workspace/wrk_813c56f2ee4846179823b77290d0b55d.yml b/.insomnia/Workspace/wrk_813c56f2ee4846179823b77290d0b55d.yml new file mode 100755 index 0000000..5f6c7f4 --- /dev/null +++ b/.insomnia/Workspace/wrk_813c56f2ee4846179823b77290d0b55d.yml @@ -0,0 +1,8 @@ +_id: wrk_813c56f2ee4846179823b77290d0b55d +type: Workspace +parentId: null +modified: 1651486439389 +created: 1651046518194 +name: New Document +description: Ssim tests +scope: design