fix: robot tests with apikey
This commit is contained in:
committed by
Clément Le Bihan
parent
f496ae5bc1
commit
0a84c9daac
@@ -3,6 +3,8 @@ Documentation Tests of the /album route.
|
|||||||
... Ensures that the album CRUD works corectly.
|
... Ensures that the album CRUD works corectly.
|
||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
|
Resource ../auth/auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ Documentation Tests of the /artist route.
|
|||||||
... Ensures that the artist CRUD works corectly.
|
... Ensures that the artist CRUD works corectly.
|
||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
|
Resource ../auth/auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
@@ -5,6 +5,11 @@ Resource ../rest.resource
|
|||||||
|
|
||||||
|
|
||||||
*** Keywords ***
|
*** Keywords ***
|
||||||
|
ApiKey
|
||||||
|
[Documentation] Set the API Key
|
||||||
|
Set Headers {"Authorization": "API Key %{API_KEY_ROBOT}"}
|
||||||
|
|
||||||
|
|
||||||
Login
|
Login
|
||||||
[Documentation] Shortcut to login with the given username for future requests
|
[Documentation] Shortcut to login with the given username for future requests
|
||||||
[Arguments] ${username}
|
[Arguments] ${username}
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ Documentation Tests of the /auth route.
|
|||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
Resource ./auth.resource
|
Resource ./auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ GuestToNormal
|
|||||||
Integer response status 200
|
Integer response status 200
|
||||||
Boolean response body isGuest true
|
Boolean response body isGuest true
|
||||||
|
|
||||||
${res}= PUT /auth/me { "username": "toto", "password": "toto", "email": "a@b.c"}
|
${res}= PUT /auth/me { "username": "toto", "password": "toto", "email": "awdaw@b.c"}
|
||||||
Output
|
Output
|
||||||
Integer response status 200
|
Integer response status 200
|
||||||
String response body username "toto"
|
String response body username "toto"
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ Documentation Tests of the /genre route.
|
|||||||
... Ensures that the genre CRUD works corectly.
|
... Ensures that the genre CRUD works corectly.
|
||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
|
Resource ../auth/auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ Documentation Tests of the /history route.
|
|||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
Resource ../auth/auth.resource
|
Resource ../auth/auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ Documentation Tests of the /lesson route.
|
|||||||
... Ensures that the lesson CRUD works corectly.
|
... Ensures that the lesson CRUD works corectly.
|
||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
|
Resource ../auth/auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ Documentation Tests of the /song route.
|
|||||||
|
|
||||||
Resource ../rest.resource
|
Resource ../rest.resource
|
||||||
Resource ../auth/auth.resource
|
Resource ../auth/auth.resource
|
||||||
|
Resource ../auth/auth.resource
|
||||||
|
Test Setup ApiKey
|
||||||
|
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
|
|||||||
Reference in New Issue
Block a user