aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-01-05 12:19:25 -0600
committersonartech <sonartech@sonarsource.com>2021-01-11 20:20:39 +0000
commit6789a2ec09f916b67bb34400f332570d2ca26b94 (patch)
tree767909bb951844bafb67f4b99c0b7c18b560e670 /sonar-scanner-engine
parent16d235022a4711857cde9d0953be3a864b1bfb83 (diff)
downloadsonarqube-6789a2ec09f916b67bb34400f332570d2ca26b94.tar.gz
sonarqube-6789a2ec09f916b67bb34400f332570d2ca26b94.zip
SONAR-14245 Drop organization related tables
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java19
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/repository/DefaultQualityProfileLoaderTest.java12
2 files changed, 0 insertions, 31 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java
index 7ffc341b009..08fb1328223 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/fs/FileSystemMediumTest.java
@@ -128,25 +128,6 @@ public class FileSystemMediumTest {
}
@Test
- public void dontLogInvalidOrganization() throws IOException {
- File srcDir = new File(baseDir, "src");
- srcDir.mkdir();
-
- File xooFile = new File(srcDir, "sample.xoo");
- FileUtils.write(xooFile, "Sample xoo\ncontent", StandardCharsets.UTF_8);
-
- tester.newAnalysis()
- .properties(builder
- .put("sonar.sources", "src")
- .build())
- .execute();
-
- assertThat(logTester.logs()).contains("Project key: com.foo.project");
- assertThat(logTester.logs().stream().collect(joining("\n"))).doesNotContain("Organization key");
- assertThat(logTester.logs().stream().collect(joining("\n"))).doesNotContain("Branch key");
- }
-
- @Test
public void onlyGenerateMetadataIfNeeded() throws IOException {
File srcDir = new File(baseDir, "src");
srcDir.mkdir();
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/repository/DefaultQualityProfileLoaderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/repository/DefaultQualityProfileLoaderTest.java
index b1d7fa7888f..f85f94f27fc 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/repository/DefaultQualityProfileLoaderTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/repository/DefaultQualityProfileLoaderTest.java
@@ -82,18 +82,6 @@ public class DefaultQualityProfileLoaderTest {
verifyNoMoreInteractions(wsClient);
}
- @Test
- public void load_throws_MessageException_if_organization_is_not_found_after_trying_default() {
- HttpException e = new HttpException("", 404, "{\"errors\":[{\"msg\":\"No organization with key 'myorg'\"}]}");
- WsTestUtil.mockException(wsClient, e);
-
- exception.expect(MessageException.class);
- exception.expectMessage("Failed to load the default quality profiles: No organization with key 'myorg'");
-
- underTest.load("project");
- verifyNoMoreInteractions(wsClient);
- }
-
private void verifyCalledPath(String expectedPath) {
WsTestUtil.verifyCall(wsClient, expectedPath);
}