Logo: Relish

  1. Sign in

Project: Core

Store Named JSon String for an User/Application

As a glass developer, I want to store a JSon String named with a Key name

Scenarios
Register a Json String with a name into the backend
Given
a key name "key" and a Json String "JSOOOOOOOOON"
When
I request to store the Json String in the backend for user "1" in the application "1"
Then
the Json String is stored correctly in the backend
Fail when try to register JSon String to invalid User
Given
a key name "key" and a Json String "JSOOOOOOOOON"
When
I request to store the Json String in the backend for user "-1" in the application "1"
Then
I receive a HTTP "NOT_FOUND"
Fail when try to register JSon String to invalid User
Given
a key name "key" and a Json String "JSOOOOOOOOON"
When
I request to store the Json String in the backend for user "1" in the application "-1"
Then
I receive a HTTP "NOT_FOUND"
Fail when try to Store Invalid JSon String KEY
Given
a key name "" and a Json String "JSOOOOOOOOON"
When
I request to store the Json String in the backend for user "1" in the application "1"
Then
I receive a HTTP "NOT_FOUND"
Fail when try to Store empty JSon String
Given
a key name "kEY" and a Json String ""
When
I request to store the Json String in the backend for user "1" in the application "1"
Then
I receive a HTTP "BAD_REQUEST"

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