Logo: Relish

  1. Sign in

Project: Session-service

Invalid Session

The session service allows you to see if a session already exists for an invalid token.

Background
Given
the content-type is 'application/json'
Scenarios
A check is made for a session that is not found
When
a GET request is sent to '/sessions/{invalid_token}'
Then
a HTTP status code of 404 should be returned
A check is made on a valid token after it is expired
When
a session has been created
And
a POST request is sent to '/sessions/{valid_token}' after 4 seconds
Then
a HTTP status code of 404 should be returned

Last published almost 7 years ago by John James.