-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable tests for node volume attachment limits
The csi-test sanity package ships with off-by-default tests to validate per-node attachment limits. This change toggles the corresponding test configuration flag to enable the tests. The change requires modifying our fake driver to return a 422 HTTP error code when the limit is exceeded. As a consequence, we also need to customize the IdempotentCount test setting which parameterizes the 'should be idempotent' test that creates the given number of volumes in sequence. The default value of 10 causes our (fake) limit to be exceeded, which is why we tune it down to 5. The test also revealed that we missed to handle the case where the node volume attachment limit is exceed during ControllerPublishVolume. We extend our error handling to identify this case and return an RESOURCE_EXHAUSTED code accordingly.
- Loading branch information
Timo Reimann
committed
Apr 24, 2020
1 parent
f17d28a
commit 98c12a8
Showing
3 changed files
with
75 additions
and
2 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