feature: filter out internal build suffix #585
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.
Description
Why make this change
Installation of an internal MCR build fails when I set it like this.
I get this output
Related Links
PRODENG-3068
Testing
Test run with the proposed fix.
Unit tests show the newly added tests as well as preexisting tests works.
▶ go test -v pkg/product/common/api/mcr_config_validate_test.go === RUN Test_ValidateNil --- PASS: Test_ValidateNil (0.00s) === RUN Test_ValidateNilFIPS --- PASS: Test_ValidateNilFIPS (0.00s) === RUN Test_ValidateEmptyVersion --- PASS: Test_ValidateEmptyVersion (0.00s) === RUN Test_ValidateInvalidVersion --- PASS: Test_ValidateInvalidVersion (0.00s) === RUN Test_ValidateMissingChannelVersion --- PASS: Test_ValidateMissingChannelVersion (0.00s) === RUN Test_ValidateWrongChannelVersion --- PASS: Test_ValidateWrongChannelVersion (0.00s) === RUN Test_ValidateWrongChannelVersionFIPS --- PASS: Test_ValidateWrongChannelVersionFIPS (0.00s) === RUN Test_ValidateIncompleteChannelVersion --- PASS: Test_ValidateIncompleteChannelVersion (0.00s) === RUN Test_ValidateIncompleteChannelVersionFIPS --- PASS: Test_ValidateIncompleteChannelVersionFIPS (0.00s) === RUN Test_ValidateWildcardChannelVersion --- PASS: Test_ValidateWildcardChannelVersion (0.00s) === RUN Test_ValidateWildcardChannelVersionFIPS --- PASS: Test_ValidateWildcardChannelVersionFIPS (0.00s) === RUN Test_ValidateInternalBuild --- PASS: Test_ValidateInternalBuild (0.00s) === RUN Test_ValidateInternalBuildFIPS --- PASS: Test_ValidateInternalBuildFIPS (0.00s) PASS ok command-line-arguments 0.430s