release-22.1: roachtest: declare encryption support as part of TestSpec #81588
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.
Backport 1/1 commits from #81483.
/cc @cockroachdb/release
This commit introduces the
EncryptionSupport
field toTestSpec
. Bysetting this field, tests can declare whether they support being run
in a cluster with encryption enabled. Three options are available:
This replaces the
EncryptAtRandom
field added earlier, which onlyallowed tests to opt-in to random encryption.
In addition to this change, the values accepted by the
--encrypt
flag in roachtest also changes. The only two valid values are:
--encrypt=auto
(default). Tests that support encryption(EncryptionAllowed) will run with encryption enabled.
--encrypt=random
(CI). Tests that support encryption(EncryptionAllowed) will run on a cluster which may or may
not have encryption enabled.
The
EncryptionSupport
field should be the only way tests indicatetheir relationship with encryption. The
DontEncrypt
field wasremoved (it was not being used anymore at the time of this commit),
and all tests that set
EncryptedStores
directly were updated to useEncryptionSupport
accordingly.Resolves: #79265.
Release note: None
Release justification: fix roachtest.