Skip to content

Commit

Permalink
tests: Run the integrations tests against SQ 9.8 (#704)
Browse files Browse the repository at this point in the history
Since 9.8 the instance created for integration tests has the permission
to run an analysis disabled by default. Updated orchestrator so we can
enable the permission
  • Loading branch information
gtoison authored Jan 10, 2023
1 parent 37328a5 commit e3b27bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
SONAR_PLUGIN_API_VERSION: 8.9.9.56886
SONAR_PLUGIN_API_GROUPID: org.sonarsource.sonarqube
SONAR_JAVA_VERSION: 6.15.1.26025
- SONAR_SERVER_VERSION: 9.6.0.59041
SONAR_PLUGIN_API_VERSION: 9.9.0.229
SONAR_PLUGIN_API_GROUPID: org.sonarsource.api.plugin
SONAR_JAVA_VERSION: 7.13.0.29990
- SONAR_SERVER_VERSION: 9.7.0.61563
SONAR_PLUGIN_API_VERSION: 9.11.0.290
SONAR_PLUGIN_API_GROUPID: org.sonarsource.api.plugin
SONAR_JAVA_VERSION: 7.14.0.30229
- SONAR_SERVER_VERSION: 9.8.0.63668
SONAR_PLUGIN_API_VERSION: 9.13.0.360
SONAR_PLUGIN_API_GROUPID: org.sonarsource.api.plugin
SONAR_JAVA_VERSION: 7.15.0.30507
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
<dependency>
<groupId>org.sonarsource.orchestrator</groupId>
<artifactId>sonar-orchestrator</artifactId>
<version>3.37.0.87</version>
<version>3.40.0.183</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public class FindbugsTestSuite {
// Build the SonarQube server with an older version of the plugin
.addPlugin(MavenLocation.of("com.github.spotbugs", "sonar-findbugs-plugin", "4.0.6"))
.keepBundledPlugins()
// Since SQ 9.8 permissions for 'Anyone' group has been limited for new instances
.useDefaultAdminCredentialsForBuilds(true)
.setSonarVersion("LATEST_RELEASE[" + sonarVersion + "]")
.restoreProfileAtStartup(FileLocation.ofClasspath("/it/profiles/empty-backup.xml"))
.restoreProfileAtStartup(FileLocation.ofClasspath("/it/profiles/findbugs-backup.xml"))
Expand Down

0 comments on commit e3b27bd

Please sign in to comment.