Remove the unsafe user api

This commit is contained in:
2023-05-28 14:44:57 +09:00
parent 93ae411ebe
commit 2838beae12
4 changed files with 8 additions and 46 deletions
+4 -4
View File
@@ -34,7 +34,7 @@ Create and get an history record
Integer $[0].songID ${song.body.id}
Integer $[0].score 55
[Teardown] Run Keywords DELETE /users/${userID}
[Teardown] Run Keywords DELETE /auth/me
... AND DELETE /song/${song.body.id}
Create and get a duplicated history record
@@ -68,7 +68,7 @@ Create and get a duplicated history record
Integer $[1].songID ${song.body.id}
Integer $[1].score 55
[Teardown] Run Keywords DELETE /users/${userID}
[Teardown] Run Keywords DELETE /auth/me
... AND DELETE /song/${song.body.id}
Create and get a search history record
@@ -95,7 +95,7 @@ Create and get a search history record
${len}= Get Length ${res.body}
Should Be Equal As Integers ${len} 1
[Teardown] DELETE /users/${userID}
[Teardown] DELETE /auth/me
Get the history of a single song
[Documentation] Create an history item
@@ -137,6 +137,6 @@ Get the history of a single song
Integer $.history[1].score 55
Integer $.best 65
[Teardown] Run Keywords DELETE /users/${userID}
[Teardown] Run Keywords DELETE /auth/me
... AND DELETE /song/${song.body.id}
... AND DELETE /song/${song2.body.id}
+2 -2
View File
@@ -14,7 +14,7 @@ Get settings
Output
Should Be True ${get.body.emailNotification}
Integer response status 200
[Teardown] DELETE /users/${userID}
[Teardown] DELETE /auth/me
Patch settingspushNotification
${userID}= RegisterLogin 2na-min-faranssa-wa-2na-adrus-allu3'at-al3rabia
@@ -24,4 +24,4 @@ Patch settingspushNotification
Output
Should Not Be True ${patch.body.leaderBoard}
Integer response status 200
[Teardown] DELETE /users/${userID}
[Teardown] DELETE /auth/me
-14
View File
@@ -1,14 +0,0 @@
*** Settings ***
Documentation Tests of the /users route.
... Ensures that the users CRUD works corectly.
Resource ../rest.resource
*** Test Cases ***
Create a user
[Documentation] Create a user
&{res}= POST /users {"username": "louis-boufon", "password": "pass", "email": "wow@gmail.com"}
Output
Integer response status 201
[Teardown] DELETE /users/${res.body.id}