Logo: Relish

  1. Sign in

Project: Session-service

Valid session

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

Background
Given
the content-type is 'application/json'
Scenarios
A check is made for an active session
When
a session has been created
And
a GET request is sent to '/sessions/{valid_token}'
Then
a HTTP status code of 200 should be returned
when a check is made on an valid session the expired time is refreshed
When
a session has been created
And
a POST request is sent to '/sessions/{valid_token}' after 2 seconds
When
a POST request is sent to '/sessions/{valid_token}' after 2 seconds
When
a POST request is sent to '/sessions/{valid_token}' after 2 seconds
Then
a HTTP status code of 201 should be returned

Last published almost 7 years ago by John James.