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.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ../auth/auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
@@ -3,6 +3,8 @@ Documentation Tests of the /artist route.
|
||||
... Ensures that the artist CRUD works corectly.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ../auth/auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
@@ -5,6 +5,11 @@ Resource ../rest.resource
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
ApiKey
|
||||
[Documentation] Set the API Key
|
||||
Set Headers {"Authorization": "API Key %{API_KEY_ROBOT}"}
|
||||
|
||||
|
||||
Login
|
||||
[Documentation] Shortcut to login with the given username for future requests
|
||||
[Arguments] ${username}
|
||||
|
||||
@@ -4,6 +4,8 @@ Documentation Tests of the /auth route.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ./auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
@@ -66,7 +66,7 @@ GuestToNormal
|
||||
Integer response status 200
|
||||
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
|
||||
Integer response status 200
|
||||
String response body username "toto"
|
||||
|
||||
@@ -3,6 +3,8 @@ Documentation Tests of the /genre route.
|
||||
... Ensures that the genre CRUD works corectly.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ../auth/auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
@@ -4,6 +4,7 @@ Documentation Tests of the /history route.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ../auth/auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
@@ -3,6 +3,8 @@ Documentation Tests of the /lesson route.
|
||||
... Ensures that the lesson CRUD works corectly.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ../auth/auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
@@ -4,6 +4,8 @@ Documentation Tests of the /song route.
|
||||
|
||||
Resource ../rest.resource
|
||||
Resource ../auth/auth.resource
|
||||
Resource ../auth/auth.resource
|
||||
Test Setup ApiKey
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
|
||||
Reference in New Issue
Block a user