-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #581
- Loading branch information
Showing
21 changed files
with
144 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
ecchronos-binary/src/test/behave/features/demand_repair_job.json
This file was deleted.
Oops, something went wrong.
28 changes: 14 additions & 14 deletions
28
ecchronos-binary/src/test/behave/features/ecc-rest-repair-info.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
Feature: API for repair info | ||
|
||
Scenario: Get repair info for table test1.table1 in the last 5 minutes | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?keyspace=test&table=table1&duration=5m | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info | ||
|
||
Scenario: Get local repair info for table test1.table1 in the last 5 minutes | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?keyspace=test&table=table1&duration=5m&isLocal=true | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info | ||
|
||
Scenario: Get repair info for keyspace test1 in the last 5 minutes | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?keyspace=test&duration=5m | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info | ||
|
||
Scenario: Get repair info for all tables in the last 5 minutes | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?duration=5m | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info | ||
|
||
Scenario: Get repair info for all tables since epoch | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?since=0 | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info | ||
|
||
Scenario: Get repair info for all tables between epoch and epoch+5 minutes | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?since=0&duration=5m | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info | ||
|
||
Scenario: Get local repair info for all tables between epoch and epoch+5 minutes | ||
Given I have a json schema in repair_info.json | ||
Given I have a json schema repair_info | ||
And I use the url localhost:8080/repair-management/v2/repairInfo?since=0&duration=5m&isLocal=true | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_info | ||
And the response matches the json schema repair_info |
20 changes: 10 additions & 10 deletions
20
ecchronos-binary/src/test/behave/features/ecc-rest-repair.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
Feature: API for repairs | ||
|
||
Scenario: Run local repair for table test.table1 | ||
Given I have a json schema in repair_list_v2.json | ||
Given I have a json schema repairs | ||
And I use the url localhost:8080/repair-management/v2/repairs?keyspace=test&table=table1&isLocal=true | ||
When I send a POST request | ||
Then the response is successful | ||
And the response matches the json repair_list_v2 | ||
And the response matches the json schema repairs | ||
|
||
Scenario: Get repair status for all repairs | ||
Given I have a json schema in repair_list_v2.json | ||
Given I have a json schema repairs | ||
And I use the url localhost:8080/repair-management/v2/repairs | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_list_v2 | ||
And the response matches the json schema repairs | ||
|
||
Scenario: Get repair status for all repairs in the keyspace test | ||
Given I have a json schema in repair_list_v2.json | ||
Given I have a json schema repairs | ||
And I use the url localhost:8080/repair-management/v2/repairs?keyspace=test | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_list_v2 | ||
And the response matches the json schema repairs | ||
And the job list contains only keyspace test | ||
|
||
Scenario: Get repair status for table test.table1 and then get by id | ||
Given I have a json schema in repair_list_v2.json | ||
Given I have a json schema repairs | ||
And I use the url localhost:8080/repair-management/v2/repairs?keyspace=test&table=table1 | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_list_v2 | ||
And the response matches the json schema repairs | ||
And the id from response is extracted for test.table1 | ||
Given I have a json schema in repair_list_v2.json | ||
Given I have a json schema repairs | ||
And I fetch repairs with id | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json repair_list_v2 | ||
And the response matches the json schema repairs |
24 changes: 12 additions & 12 deletions
24
ecchronos-binary/src/test/behave/features/ecc-rest-schedule.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
Feature: API to get schedule status | ||
|
||
Scenario: Get schedule status for all repairs | ||
Given I have a json schema in schedule_list_v2.json | ||
Given I have a json schema schedules | ||
And I use the url localhost:8080/repair-management/v2/schedules | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json schedule_list_v2 | ||
And the response matches the json schema schedules | ||
|
||
Scenario: Get schedule status for all repairs in the keyspace test | ||
Given I have a json schema in schedule_list_v2.json | ||
Given I have a json schema schedules | ||
And I use the url localhost:8080/repair-management/v2/schedules?keyspace=test | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json schedule_list_v2 | ||
And the response matches the json schema schedules | ||
And the job list contains only keyspace test | ||
|
||
Scenario: Get schedule status for table test.table1 and then get by id | ||
Given I have a json schema in schedule_list_v2.json | ||
Given I have a json schema schedules | ||
And I use the url localhost:8080/repair-management/v2/schedules?keyspace=test&table=table1 | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json schedule_list_v2 | ||
And the response matches the json schema schedules | ||
And the id from response is extracted for test.table1 | ||
Given I have a json schema in schedule.json | ||
Given I have a json schema schedule | ||
And I fetch schedules with id | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json schedule | ||
And the response matches the json schema schedule | ||
|
||
Scenario: Get full schedule status for table test.table1 and then get by id | ||
Given I have a json schema in schedule_list_v2.json | ||
Given I have a json schema schedules | ||
And I use the url localhost:8080/repair-management/v2/schedules?keyspace=test&table=table1 | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json schedule_list_v2 | ||
And the response matches the json schema schedules | ||
And the id from response is extracted for test.table1 | ||
Given I have a json schema in full_schedule.json | ||
Given I have a json schema full_schedule | ||
And I fetch schedules with id and full | ||
When I send a GET request | ||
Then the response is successful | ||
And the response matches the json full_schedule | ||
And the response matches the json schema full_schedule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Feature: ecc-spring | ||
|
||
Scenario: RestServer health check returns UP | ||
Scenario: Get health status | ||
Given I use the url localhost:8080/actuator/health | ||
When I send a GET request | ||
Then the response is successful | ||
And the status is UP | ||
|
||
Scenario: RestServer returns metrics | ||
Scenario: Get metrics | ||
Given I use the url localhost:8080/metrics | ||
When I send a GET request | ||
Then the response is successful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.