forked from fabric8-analytics/fabric8-analytics-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_api.feature
39 lines (33 loc) · 1.19 KB
/
server_api.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Feature: Server API
@production
Scenario: Check the API entry point
Given System is running
When I access /api/v1/
Then I should get 200 status code
Then I should receive JSON response containing the paths key
@production
Scenario: Check the /api/v1/readiness response
Given System is running
When I access /api/v1/readiness
Then I should get 200 status code
Then I should receive empty JSON response
@production
Scenario: Check the /api/v1/liveness response
Given System is running
When I wait 20 seconds
When I access /api/v1/liveness
Then I should get 200 status code
Then I should receive empty JSON response
@production
Scenario: Check the service/state response
Given System is running
When I access /api/v1/system/version/
Then I should get 200 status code
Then I should receive JSON response containing the commit_hash key
Then I should receive JSON response containing the committed_at key
@production
Scenario: Check the /api/v1/schemas response
Given System is running
When I access /api/v1/schemas/
Then I should get 200 status code
Then I should receive JSON response containing the api key