forked from artemave/REST-assured
-
Notifications
You must be signed in to change notification settings - Fork 0
/
persistence.feature
24 lines (21 loc) · 1004 Bytes
/
persistence.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Feature: Persistence
In order to persist fixtrures/redirects between service restarts
As a developer
I want to be able to specify persistent storage
Scenario: default storage
Given I start service without --database option
And I register "/api/something" as fullpath and "content" as response content
And I restart service without --database option
When I request "/api/something"
Then I should get 404 in response status
Scenario Outline: specify storage
Given I start service with --database "<db>" option
And I register "/api/something" as fullpath and "content" as response content
And I restart service with --database "<db2>" option
When I request "/api/something"
Then I should get <status> in response status
Examples:
| db | db2 | status |
| database.db | database.db | 200 |
| /tmp/database.db | /tmp/database.db | 200 |
| database.db | database2.db | 404 |