Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONARJAVA-5302 Disable telemetry in tests #4990

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public class AutoScanTest {
.addPlugin(FileLocation.of(TestClasspathUtils.findModuleJarPath("../../sonar-java-plugin").toFile()))
.addPlugin(FileLocation.of(TestClasspathUtils.findModuleJarPath("../../java-symbolic-execution/java-symbolic-execution-plugin").toFile()))
.addPlugin(MavenLocation.of("org.sonarsource.sonar-lits-plugin", "sonar-lits-plugin", "0.11.0.2659"))
.setServerProperty("sonar.telemetry.enable", "false")
.build();

private static final String TARGET_ACTUAL = "target/actual/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ private static OrchestratorRule getEnterpriseOrchestratorOrNull() {
.addPlugin(JavaTestSuite.JAVA_PLUGIN_LOCATION)
// we need html plugin to have "jsp" language
.addPlugin(MavenLocation.of("org.sonarsource.html", "sonar-html-plugin", "DEV"))
.setServerProperty("sonar.telemetry.enable", "false")
.restoreProfileAtStartup(FileLocation.ofClasspath("/profile-jsp.xml"))
.activateLicense();
orchestratorBuilder.addPlugin(FileLocation.of(TestUtils.pluginJar("java-extension-plugin")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public class JavaTestSuite {
.addPlugin(FileLocation.of(TestUtils.pluginJar("java-extension-plugin")))
// making sure the tutorial is still working
.addPlugin(TUTORIAL_EXAMPLE_PLUGIN_LOCATION)
.setServerProperty("sonar.telemetry.enable", "false")
// profiles for each test projects
.restoreProfileAtStartup(FileLocation.ofClasspath("/profile-java-extension.xml"))
.restoreProfileAtStartup(FileLocation.ofClasspath("/profile-java-tutorial.xml"))
Expand Down