Logo: Relish

  1. Sign in

Project: Session-service

Delete

Delete an existing/non existing session and confirm correct HTTP status code is returned

Scenarios
Deleting an existing session
Given
a session has been created
When
a DELETE request is sent to '/sessions/{valid_token}'
Then
a HTTP status code of 200 should be returned
When
a GET request is sent to '/sessions/{valid_token}'
Then
a HTTP status code of 404 should be returned
Deleting a non-existing session
When
a DELETE request is sent to '/sessions/{invalid_token}'
Then
a HTTP status code of 200 should be returned

Last published almost 7 years ago by John James.