Logo: Relish

  1. Sign in

Project: Trx2

Aanmelden als beheerder

Als PasNL-terminal
Wil ik kunnen inloggen
Zodat ik mijn beheer op een tablet kan uitvoeren.

Background Create a remote manager and a program
Given
a program with name "301"
And
I have an user "martijn" with password "dekker"
Scenarios
  • @login
Succesfull Login to trx2
When
I send a POST request to "/api/v1/admin/login" :
{
  "username":"martijn",
  "password":"dekker"
}
Then
the response should include this json parameter "api_key"
And
the response should include this json parameter "datetime_schememodified"
  • @login
Cannot login with invalid username or password
When
I login with a username username and password password
Then
the response should include this error message: errormessage
Examples:
username password errormessage
martinez dekker verkeerde username
martijn dekke verkeerde wachtwoord
foutieve invoer
martijn foutieve invoer
dekker foutieve invoer
After every new login the token changes
When
I send a POST request to "/api/v1/admin/login" :
{
  "username":"martijn",
  "password":"dekker"
}
Then
I will receive an api_key
And
I send a POST request to "/api/v1/admin/login" :
{
  "username":"martijn",
  "password":"dekker"
}
Then
I will receive a different api_key

Last published almost 7 years ago by martijn dekker.