-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mechanism for limiting the total volume size on the system by rejecting volume creation requests from REST. Includes BDDs, although the resize limit is not yet implemented. Signed-off-by: chriswldenyer <[email protected]>
- Loading branch information
1 parent
9d3c484
commit 77afd36
Showing
9 changed files
with
90 additions
and
6 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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Volume creation capacity limit | ||
|
||
Background: | ||
Given a control plane, Io-Engine instances and a pool | ||
|
||
Scenario: attempted creation exceeding the capacity limit | ||
Given a gRPC request to create a volume | ||
When the request includes a capacity limit | ||
And the volume creation would result in the capacity limit being exceeded | ||
Then volume creation should fail with an out-of-range error | ||
|
||
Scenario: attempted creation within the capacity limit | ||
Given a gRPC request to create a volume | ||
When the request includes a capacity limit | ||
And the volume creation would not result in the capacity limit being exceeded | ||
Then volume creation should succeed | ||
|
||
Scenario: attempted creation with no capacity limit | ||
Given a gRPC request to create a volume | ||
When the request does not include a capacity limit | ||
Then volume creation should succeed | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Volume resize capacity limit | ||
|
||
Background: | ||
Given a control plane, Io-Engine instances and a pool | ||
|
||
Scenario: attempted volume resize exceeding the capacity limit | ||
Given a gRPC request to resize a volume | ||
When the request includes a capacity limit | ||
And the volume resize would result in the capacity limit being exceeded | ||
Then volume resize should fail with an out-of-range error | ||
|
||
Scenario: attempted resize within the capacity limit | ||
Given a gRPC request to resize a volume | ||
When the request includes a capacity limit | ||
And the volume resize would not result in the capacity limit being exceeded | ||
Then volume resize should succeed | ||
|
||
Scenario: attempted creation with no capacity limit | ||
Given a gRPC request to resize a volume | ||
When the request does not include a capacity limit | ||
Then volume resize should succeed | ||
|