Skip to content

Commit 6301a9a

Browse files
authored
fix(fsx): no validation error when hour property set to 24 in the LustreMaintenanceTime class. (#30342)
### Issue # (if applicable) Closes #30341 ### Reason for this change The `hour` property in the `LustreMaintenanceTime` class should be between 0 and 23. But no validation error occurs when it is set to 24. ### Description of changes In the validate method, I changed it so that an error is thrown when the hour is greater than 23, instead of when the hour is greater than 24. This allows a validation error to occur when the hour is set to 24. ### Description of how you validated changes Changed unit tests and add integ tests. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent c03cdab commit 6301a9a

11 files changed

+1732
-9
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-fsx/test/integ.lustre-file-system-maintenance-time.js.snapshot/AwsCdkFsxLustreMaintenanceTime.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)