diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-03-17 09:06:56 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-03-17 20:08:34 +0000 |
commit | da368da20e07d3073497c3a279a01d0c0bfdfac8 (patch) | |
tree | 681962134ec462c6bf79d90d2c95ec065b03f0df /sonar-scanner-engine/src/test | |
parent | 9316c3016fdca65613e1af37c630c04d393ae706 (diff) | |
download | sonarqube-da368da20e07d3073497c3a279a01d0c0bfdfac8.tar.gz sonarqube-da368da20e07d3073497c3a279a01d0c0bfdfac8.zip |
SONAR-14192 Deprecating rule keys may break users' exclusion settings
Diffstat (limited to 'sonar-scanner-engine/src/test')
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilterTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilterTest.java index c28628d5b51..6e0b5886fc1 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilterTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/EnforceIssuesFilterTest.java @@ -115,7 +115,7 @@ public class EnforceIssuesFilterTest { ignoreFilter = new EnforceIssuesFilter(exclusionPatternInitializer, analysisWarnings, activeRules); assertThat(ignoreFilter.accept(issue, chain)).isTrue(); verify(analysisWarnings) - .addUnique("The issue multicriteria pattern 'repo2:deprecated' matches a rule key that has been changed. The pattern should be updated to 'repo:rule'"); + .addUnique("A multicriteria issue enforce uses the rule key 'repo2:deprecated' that has been changed. The pattern should be updated to 'repo:rule'"); verifyNoInteractions(chain); } diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilterTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilterTest.java index 1db66e55f5d..fbc96e78478 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilterTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/issue/ignore/IgnoreIssuesFilterTest.java @@ -94,9 +94,9 @@ public class IgnoreIssuesFilterTest { underTest.addRuleExclusionPatternForComponent(component, pattern); assertThat(underTest.accept(issue, chain)).isFalse(); - verify(analysisWarnings).addUnique("The issue multicriteria pattern 'repo:rule' matches a rule key that has been changed. The pattern should be updated to 'foo:bar'"); + verify(analysisWarnings).addUnique("A multicriteria issue exclusion uses the rule key 'repo:rule' that has been changed. The pattern should be updated to 'foo:bar'"); assertThat(logTester.logs()) - .contains("The issue multicriteria pattern 'repo:rule' matches a rule key that has been changed. The pattern should be updated to 'foo:bar'"); + .contains("A multicriteria issue exclusion uses the rule key 'repo:rule' that has been changed. The pattern should be updated to 'foo:bar'"); } @Test |