Logo: Relish

  1. Sign in

Project: Core

Delete previously Stored JSon String for an User/Application/Key

As a glass developer, I want to Delete a JSon String with a Key

Scenarios
Delete a Json String with a name from the backend
Given
a previously stored key name "prueba2" for user "1" in the application "1"
When
I request to Delete the Json String stored with the Key "prueba2" in the backend for user "1" in the application "1"
Then
the Json String is delete correctly from the backend
Fail when try to Delete a Json String that doesn't exist
Given
nothing
When
I request to Delete the Json String stored with the Key "pruebaXX" in the backend for user "1" in the application "1"
Then
I receive a HTTP "NOT_FOUND"
Fail when try to Delete a Json String with invalid userId
Given
nothing
When
I request to Delete the Json String stored with the Key "pruebaXX" in the backend for user "-1" in the application "1"
Then
I receive a HTTP "NOT_FOUND"
Fail when try to Delete a Json String with invalid applicationId
Given
nothing
When
I request to Delete the Json String stored with the Key "pruebaXX" in the backend for user "1" in the application "-1"
Then
I receive a HTTP "NOT_FOUND"

Last published over 6 years ago by Raimundo Alegría.