From b995e34426d0d47c7b26e2807e34ff86d75bcc08 Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Mon, 24 Apr 2023 16:25:16 +0200 Subject: [PATCH] insomnia test --- IOT/test/Insomnia-All_2023-04-03.json | 168 -------------------------- IOT/test/Insomnia_2023-04-18.json | 1 - IOT/test/Insomnia_test_api.json | 1 + 3 files changed, 1 insertion(+), 169 deletions(-) delete mode 100644 IOT/test/Insomnia-All_2023-04-03.json delete mode 100644 IOT/test/Insomnia_2023-04-18.json create mode 100644 IOT/test/Insomnia_test_api.json diff --git a/IOT/test/Insomnia-All_2023-04-03.json b/IOT/test/Insomnia-All_2023-04-03.json deleted file mode 100644 index 6780042..0000000 --- a/IOT/test/Insomnia-All_2023-04-03.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "_type":"export", - "__export_format":4, - "__export_date":"2023-04-03T13:50:30.902Z", - "__export_source":"insomnia.desktop.app:v2023.1.0", - "resources":[ - { - "_id":"req_7ab7afd204f84b64b0f12c0ac2cce728", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528568144, - "created":1680528426928, - "url":"https://iot.epi.cb85.software/api/collections/users/records/", - "name":"List users", - "description":"", - "method":"GET", - "body":{}, - "parameters":[], - "headers":[], - "authentication":{}, - "metaSortKey":-1680528426928, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "parentId":null, - "modified":1680529607763, - "created":1680528426859, - "name":"Test API", - "description":"", - "scope":"design", - "_type":"workspace" - }, - { - "_id":"req_15f80c73d6184fcaa84a27c61f0e9d80", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529540579, - "created":1680528602721, - "url":"https://iot.epi.cb85.software/api/collections/users/records", - "name":"Create users", - "description":"", - "method":"POST", - "body":{ - "mimeType":"application/json", - "text":"{\n \"username\": \"nico\",\n \"email\": \"nicolas.sans@epitech.eu\",\n \"emailVisibility\": true,\n \"password\": \"12345abcdefg\",\n \"passwordConfirm\": \"12345abcdefg\",\n \"name\": \"test\"\n}" - }, - "parameters":[], - "headers":[ - { - "name":"Content-Type", - "value":"application/json" - } - ], - "authentication":{}, - "metaSortKey":-1680528602722, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529705996, - "created":1680529686485, - "url":"https://iot.epi.cb85.software/api/collections/trashs/records", - "name":"List trashs", - "description":"", - "method":"GET", - "body":{}, - "parameters":[], - "headers":[], - "authentication":{}, - "metaSortKey":-1680529686485, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"req_33bf2e1173ba46eea65e1fca84d4a49d", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529740613, - "created":1680529725947, - "url":"https://iot.epi.cb85.software/api/collections/data/records", - "name":"List data", - "description":"", - "method":"GET", - "body":{}, - "parameters":[], - "headers":[], - "authentication":{}, - "metaSortKey":-1680529725947, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"env_c064b9f18a216b0e8542bcc13d85f87eae7567c9", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528426923, - "created":1680528426923, - "name":"Base Environment", - "data":{}, - "dataPropertyOrder":null, - "color":null, - "isPrivate":false, - "metaSortKey":1680528426923, - "_type":"environment" - }, - { - "_id":"jar_c064b9f18a216b0e8542bcc13d85f87eae7567c9", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528426925, - "created":1680528426925, - "name":"Default Jar", - "cookies":[], - "_type":"cookie_jar" - }, - { - "_id":"spc_96bf7588a8b04c9ea2fb780dc2e6b0f5", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529607757, - "created":1680528426887, - "fileName":"Test API", - "contents":"", - "contentType":"yaml", - "_type":"api_spec" - }, - { - "_id":"uts_8ae620046c8a4f17af78e1354b40b6e2", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528426929, - "created":1680528426929, - "name":"Example Test Suite", - "_type":"unit_test_suite" - }, - { - "_id":"ut_a4ef4a2ba5a84ec09d963c48c2505ebd", - "parentId":"uts_8ae620046c8a4f17af78e1354b40b6e2", - "modified":1680528528479, - "created":1680528524523, - "requestId":"req_7ab7afd204f84b64b0f12c0ac2cce728", - "name":"Returns 200", - "code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);", - "_type":"unit_test" - } - ] -} \ No newline at end of file diff --git a/IOT/test/Insomnia_2023-04-18.json b/IOT/test/Insomnia_2023-04-18.json deleted file mode 100644 index 5dbdf57..0000000 --- a/IOT/test/Insomnia_2023-04-18.json +++ /dev/null @@ -1 +0,0 @@ -{"_type":"export","__export_format":4,"__export_date":"2023-04-18T14:32:31.099Z","__export_source":"insomnia.desktop.app:v2023.1.0","resources":[{"_id":"req_7ab7afd204f84b64b0f12c0ac2cce728","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681822742144,"created":1680528426928,"url":"https://iot.epi.cb85.software/api/collections/users/records/","name":"List users","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"michel.deghaud@gmail.com","password":"Kimbomaye67"},"metaSortKey":-1681726154079.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","parentId":null,"modified":1680529607763,"created":1680528426859,"name":"Test API","description":"","scope":"design","_type":"workspace"},{"_id":"req_15f80c73d6184fcaa84a27c61f0e9d80","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726834266,"created":1680528602721,"url":"https://iot.epi.cb85.software/api/collections/users/records","name":"Create users","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"username\": \"test2\",\n \"email\": \"test2@epitech.eu\",\n \"emailVisibility\": true,\n \"password\": \"test123458\",\n \"passwordConfirm\": \"test123458\",\n \"name\": \"test\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681726013605.6875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1138badbcac54120bc59393dc85f86de","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726556976,"created":1681725873132,"url":"https://iot.epi.cb85.software/api/collections/users/records/nktq3fk3djm3ltt","name":"Update users","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n \"username\": \"test2\",\n \"emailVisibility\": true,\n \"password\": \"test87654321\",\n \"passwordConfirm\": \"test87654321\",\n \"oldPassword\": \"test123458\",\n \"name\": \"test\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681725873132,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_fa6497fb827d4a77abe17ff96c84b22a","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726753772,"created":1681726622325,"url":"https://iot.epi.cb85.software/api/collections/users/records/nktq3fk3djm3ltt","name":"Delete users","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681724865407,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681822797950,"created":1680529686485,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"List trashs","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681723165610,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_74925dead7bd47b6b89e6b3ffef82e4d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681827653234,"created":1681717761795,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"Create trashs","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"owner\": \"clement\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"michel.deghaud@epitech.eu","password":"Kimbomaye67"},"metaSortKey":-1681721465813,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_624d172f1f05407687e5e5936c45f5b1","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681827195338,"created":1681733214164,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/4brip5fwm001bs9","name":"Update trashs","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n \"owner\": \"clement\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"basic","useISO88591":false,"disabled":false,"username":"michel.deghaud@epitech.eu","password":"Kimbomaye67"},"metaSortKey":-1681721040863.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c938089bc36a4a97ad3dc0fffdd946a7","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681733118306,"created":1681733027346,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/4brip5fwm001bs9","name":"Delete trashs","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681720615914.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_33bf2e1173ba46eea65e1fca84d4a49d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681728142249,"created":1680529725947,"url":"https://iot.epi.cb85.software/api/collections/data/records/","name":"List data","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681719766016,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_18aa204984174f768a3af0f99fc2cdf6","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681728087474,"created":1681718066219,"url":"https://iot.epi.cb85.software/api/collections/data/records","name":"Create data","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"value\": 123,\n \"trash_id\": \"4brip5fwm001bs9\",\n \"unit\": \"test\",\n \"status\": true\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681718066219,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f0869f5968c440ca8ea5c6089cbffc12","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681733341803,"created":1681733251871,"url":"https://iot.epi.cb85.software/api/collections/data/records/","name":"Update data","description":"","method":"PUT","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681718066194,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_164da34d5a9d4fb3975c006cee0932d4","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681733197552,"created":1681733131221,"url":"https://iot.epi.cb85.software/api/collections/data/records/23f7nh3dml30q9u","name":"Delete data","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681718066169,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426923,"created":1680528426923,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1680528426923,"_type":"environment"},{"_id":"jar_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426925,"created":1680528426925,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_96bf7588a8b04c9ea2fb780dc2e6b0f5","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529607757,"created":1680528426887,"fileName":"Test API","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_8ae620046c8a4f17af78e1354b40b6e2","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426929,"created":1680528426929,"name":"Example Test Suite","_type":"unit_test_suite"},{"_id":"ut_a4ef4a2ba5a84ec09d963c48c2505ebd","parentId":"uts_8ae620046c8a4f17af78e1354b40b6e2","modified":1681717662451,"created":1680528524523,"requestId":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","name":"Returns 200","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nconst body = JSON.parse(response1.data);\nexpect(body).to.be.an('object');\n\n//expect(body).to.be.an('object');\n//expect(item).to.be.an('string');\n//expect(response1.status).to.equal(200);\n//expect(item).to.have.property('symbol');","_type":"unit_test"}]} \ No newline at end of file diff --git a/IOT/test/Insomnia_test_api.json b/IOT/test/Insomnia_test_api.json new file mode 100644 index 0000000..480af78 --- /dev/null +++ b/IOT/test/Insomnia_test_api.json @@ -0,0 +1 @@ +{"_type":"export","__export_format":4,"__export_date":"2023-04-24T14:23:01.971Z","__export_source":"insomnia.desktop.app:v2023.1.0","resources":[{"_id":"req_c928ae8ca30d45f58c2acca6450700c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682333020073,"created":1681830109120,"url":"https://iot.epi.cb85.software/api/collections/users/auth-methods","name":"List auth methods","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681844035720.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","parentId":null,"modified":1680529607763,"created":1680528426859,"name":"Test API","description":"","scope":"design","_type":"workspace"},{"_id":"req_d7a431c2bd6b443aa28689729371e2a2","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682342617537,"created":1681846915698,"url":"https://iot.epi.cb85.software/api/collections/users/auth-with-oauth2","name":"Auth with Oauth2","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"provider\": \"gitea\",\n\t\"code\": \"eHTxn9Ahw8PhTTI7WGuDy8ACMsZzkF\",\n\t\"codeVerifier\": \"EmH6_WXMGAQcu0yRXmvnMaSRajnOR2W4ISAfc1exFCQ\",\n\t\"redirectUrl\": \"https://iot.epi.cb85.software/api/oauth2-redirect\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681842595731.1875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b90753f7d18a481ea269635bd158b239","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682331375214,"created":1682326388419,"url":"https://iot.epi.cb85.software/api/admins/auth-with-password","name":"Auth admin with password","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"identity\": \"michel.deghaud@epitech.eu\",\n\t\"password\": \"Kimbomaye67\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681841155742.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2a7f7f56e24c4e59945defd898074f7c","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682328487677,"created":1682326610426,"url":"https://iot.epi.cb85.software/api/admins","name":"List admins","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681835395786.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_76901b16dd1b49fabca6ed8ac7d260c3","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682331241000,"created":1682330713054,"url":"https://iot.epi.cb85.software/api/admins/7ivn0otv54m6zlp","name":"Get One Admin","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681834435793.875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1be9ba2f70ed4f3f9d10452fe3538cec","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682331648034,"created":1682331503147,"url":"https://iot.epi.cb85.software/api/admins/7ivn0otv54m6zlp","name":"Update admin","description":"","method":"PATCH","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681832995804.9375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_4c339bbd67c24b0cbc51bead26b57b0b","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682344299136,"created":1681831555816,"url":"https://iot.epi.cb85.software/api/collections/users/auth-with-password","name":"Auth with password","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"identity\": \"michel.deghaud@gmail.com\",\n\t\"password\": \"Deghaud67\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681778131599.6875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7ab7afd204f84b64b0f12c0ac2cce728","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682343995363,"created":1680528426928,"url":"https://iot.epi.cb85.software/api/collections/users/records/","name":"List users","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681726154079.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_15f80c73d6184fcaa84a27c61f0e9d80","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726834266,"created":1680528602721,"url":"https://iot.epi.cb85.software/api/collections/users/records","name":"Create users","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"username\": \"test2\",\n \"email\": \"test2@epitech.eu\",\n \"emailVisibility\": true,\n \"password\": \"test123458\",\n \"passwordConfirm\": \"test123458\",\n \"name\": \"test\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681726013605.6875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b3bf6800e58547b3819c1c26b0099e8a","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682344406341,"created":1682343419354,"url":"https://iot.epi.cb85.software/api/collections/users/records/sgn9pl046jez90v","name":"Get One User","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681725943368.8438,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1138badbcac54120bc59393dc85f86de","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682344462156,"created":1681725873132,"url":"https://iot.epi.cb85.software/api/collections/users/records/sgn9pl046jez90v","name":"Update users","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"id\": \"sgn9pl046jez90v\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681725873132,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_fa6497fb827d4a77abe17ff96c84b22a","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726753772,"created":1681726622325,"url":"https://iot.epi.cb85.software/api/collections/users/records/nktq3fk3djm3ltt","name":"Delete users","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681724865407,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345580384,"created":1680529686485,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"List user trashs","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681723165610,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b4bea38a4692445a83090e872ecb6717","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345365737,"created":1682344573719,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/wthsm763zdf6fhw","name":"Get One Trash","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681722315711.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_74925dead7bd47b6b89e6b3ffef82e4d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682338992691,"created":1681717761795,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"Create trashs","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"owner\": \"sgn9pl046jez90v\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681721465813,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_624d172f1f05407687e5e5936c45f5b1","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682332823813,"created":1681733214164,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/4brip5fwm001bs9","name":"Update trashs","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"id\": \"4brip5fwm001bs9\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681721040863.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c938089bc36a4a97ad3dc0fffdd946a7","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682329694763,"created":1681733027346,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/01n3toy1jrfwise","name":"Delete trashs","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681720615914.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_33bf2e1173ba46eea65e1fca84d4a49d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345663806,"created":1680529725947,"url":"https://iot.epi.cb85.software/api/collections/data/records/","name":"List data","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681719766016,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d20e17e560924dc79993393165168dfc","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345839134,"created":1682345694110,"url":"https://iot.epi.cb85.software/api/collections/data/records/egi1jxcr1snweh9","name":"Get One Data","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681718916117.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_18aa204984174f768a3af0f99fc2cdf6","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682330395318,"created":1681718066219,"url":"https://iot.epi.cb85.software/api/collections/data/records","name":"Create data","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"value\": 234,\n \"trash_id\": \"gdnuxl0wlgurtj3\",\n \"unit\": \"test\",\n \"status\": true\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681718066219,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f0869f5968c440ca8ea5c6089cbffc12","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682330127646,"created":1681733251871,"url":"https://iot.epi.cb85.software/api/collections/data/records/fx5te9es6uyxeq1","name":"Update data","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"id\": \"fx5te9es6uyxeq1\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681718066194,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_164da34d5a9d4fb3975c006cee0932d4","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682330487505,"created":1681733131221,"url":"https://iot.epi.cb85.software/api/collections/data/records/hdwyf32g9g5yxil","name":"Delete data","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681718066169,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426923,"created":1680528426923,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1680528426923,"_type":"environment"},{"_id":"jar_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682342256588,"created":1680528426925,"name":"Default Jar","cookies":[{"key":"i_like_gitea","value":"b7b17fd0060f694f","domain":"gitea.com","path":"/","httpOnly":true,"extensions":["SameSite=Lax"],"hostOnly":true,"creation":"2023-04-24T13:17:36.581Z","lastAccessed":"2023-04-24T13:17:36.581Z","id":"39265638773502776"},{"key":"_csrf","value":"rThISCKnUa8G9UzaeKApiaUmjGg6MTY4MjM0MjI1NjgxMjQ2MTU4Nw","maxAge":86400,"domain":"gitea.com","path":"/","httpOnly":true,"extensions":["SameSite=Lax"],"hostOnly":true,"creation":"2023-04-24T13:17:36.583Z","lastAccessed":"2023-04-24T13:17:36.583Z","id":"09793023360768416"}],"_type":"cookie_jar"},{"_id":"spc_96bf7588a8b04c9ea2fb780dc2e6b0f5","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529607757,"created":1680528426887,"fileName":"Test API","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_8ae620046c8a4f17af78e1354b40b6e2","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426929,"created":1680528426929,"name":"Example Test Suite","_type":"unit_test_suite"},{"_id":"ut_a4ef4a2ba5a84ec09d963c48c2505ebd","parentId":"uts_8ae620046c8a4f17af78e1354b40b6e2","modified":1681717662451,"created":1680528524523,"requestId":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","name":"Returns 200","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nconst body = JSON.parse(response1.data);\nexpect(body).to.be.an('object');\n\n//expect(body).to.be.an('object');\n//expect(item).to.be.an('string');\n//expect(response1.status).to.equal(200);\n//expect(item).to.have.property('symbol');","_type":"unit_test"}]} \ No newline at end of file