fix: robot tests with apikey

This commit is contained in:
GitBluub
2023-12-01 23:37:35 +01:00
committed by Clément Le Bihan
parent f496ae5bc1
commit 0a84c9daac
9 changed files with 19 additions and 1 deletions

View File

@@ -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 ***

View File

@@ -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 ***

View File

@@ -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}

View File

@@ -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 ***

View File

@@ -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"

View File

@@ -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 ***

View File

@@ -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 ***

View File

@@ -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 ***

View File

@@ -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 ***