NC | lifecycle | Add Tests in POSIX Integration Tests - Part 1 #8990
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the Problem
We want to expand our test coverage in the NC lifecycle test.
Explain the Changes
id
) in the rulelifecycle_rule_delete_all
.cli
and replace it withposix_integration
, also inside the test titles, remove thecli
and replace it withnc
.describe
parts.Note: We added a validation for this - see issue #8870
Disabled
and the rule doesn't run (in partially picked cases).DISABLED
, add the test cases for nested key and content dirENABLED
only for nested key (as content dir is an unsupported case - see our design doc of versioning).using Jest feature
it.each
(see Jest docs - we used array of objects and in the title we used the placeholder of$description
to add information in the title).Note: The tests were picked (we didn't want to run them on all the existing tests, although we can).
update_file_mtime
.Issues:
Testing Instructions:
Automatic Tests
sudo npx jest test_nc_lifecycle_posix_integration.test