diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-09-20 11:59:16 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-10-12 20:03:43 +0000 |
commit | 566094fc629ab1e92afb0cdf191a0e2c685b5c35 (patch) | |
tree | ce172266109cf1c4e81a041e460c6cc7bcd5d50e /sonar-scanner-engine/src/test/java/org/sonar/scanner | |
parent | bcfb1cac55137b838da7a93385b20e0e5ed47abb (diff) | |
download | sonarqube-566094fc629ab1e92afb0cdf191a0e2c685b5c35.tar.gz sonarqube-566094fc629ab1e92afb0cdf191a0e2c685b5c35.zip |
SONAR-17352 Refactor component keys to not include branch suffix
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/ProjectReactorValidatorTest.java | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/ProjectReactorValidatorTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/ProjectReactorValidatorTest.java index 7c2ee0b39e9..9ed7acc1b46 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/ProjectReactorValidatorTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/scan/ProjectReactorValidatorTest.java @@ -97,23 +97,6 @@ public class ProjectReactorValidatorTest { } @Test - public void fail_when_key_contains_invalid_phrases() { - ProjectReactor reactorWithBranchInKey = createProjectReactor("test:BRANCH:test"); - - assertThatThrownBy(() -> underTest.validate(reactorWithBranchInKey)) - .isInstanceOf(MessageException.class) - .hasMessageContainingAll("\"test:BRANCH:test\" is not a valid project key. " - + "Project key must not contain following phrases", ":BRANCH:", ":PULLREQUEST:"); - - ProjectReactor reactorWithPRinKey = createProjectReactor("test:PULLREQUEST:test"); - - assertThatThrownBy(() -> underTest.validate(reactorWithPRinKey)) - .isInstanceOf(MessageException.class) - .hasMessageContainingAll("\"test:PULLREQUEST:test\" is not a valid project key. " - + "Project key must not contain following phrases", ":BRANCH:", ":PULLREQUEST:"); - } - - @Test public void fail_when_only_digits() { ProjectReactor reactor = createProjectReactor("12345"); |