File tree Expand file tree Collapse file tree 9 files changed +22
-14
lines changed
src/test/java/com/sonar/it/flex
src/test/java/org/sonar/flex/it Expand file tree Collapse file tree 9 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ plugin_qa_task:
9191 cpu : 3
9292 memory : 8G
9393 env :
94+ GITHUB_TOKEN : VAULT[development/github/token/licenses-ro token]
9495 matrix :
9596 - SQ_VERSION : LATEST_RELEASE
9697 - SQ_VERSION : DEV
@@ -111,6 +112,8 @@ ruling_task:
111112 << : *CONTAINER_DEFINITION
112113 cpu : 4
113114 memory : 8G
115+ env :
116+ GITHUB_TOKEN : VAULT[development/github/token/licenses-ro token]
114117 maven_cache :
115118 folder : ${CIRRUS_WORKING_DIR}/.m2/repository
116119 submodules_script :
Original file line number Diff line number Diff line change 2525 <dependencies >
2626 <dependency >
2727 <groupId >org.sonarsource.orchestrator</groupId >
28- <artifactId >sonar-orchestrator</artifactId >
28+ <artifactId >sonar-orchestrator-junit4 </artifactId >
2929 <version >${orchestrator.version} </version >
3030 <scope >test</scope >
3131 </dependency >
Original file line number Diff line number Diff line change 1616 */
1717package com .sonar .it .flex ;
1818
19- import com .sonar .orchestrator .Orchestrator ;
2019import com .sonar .orchestrator .build .SonarScanner ;
20+ import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2121import java .io .File ;
2222import org .junit .ClassRule ;
2323import org .junit .Test ;
2828public class CoverageTest {
2929
3030 @ ClassRule
31- public static Orchestrator orchestrator = Tests .ORCHESTRATOR ;
31+ public static OrchestratorRule orchestrator = Tests .ORCHESTRATOR ;
3232
3333 private static final String REPORT_PATH = "reports/coverage/coverage.xml" ;
3434 private static final String REPORT_PATH2 = "reports/coverage/coverage2.xml" ;
Original file line number Diff line number Diff line change 1616 */
1717package com .sonar .it .flex ;
1818
19- import com .sonar .orchestrator .Orchestrator ;
2019import com .sonar .orchestrator .build .MavenBuild ;
20+ import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2121import java .io .File ;
2222import org .junit .Assume ;
2323import org .junit .BeforeClass ;
3333public class FlexIntegrationTest {
3434
3535 @ ClassRule
36- public static Orchestrator orchestrator = Tests .ORCHESTRATOR ;
36+ public static OrchestratorRule orchestrator = Tests .ORCHESTRATOR ;
3737
3838 private static final String PROJECT_AS3COMMONS = "org.as3commons:as3commons-project" ;
3939 private static final String MODULE_COMMONS_LANG = "org.as3commons:as3commons-lang" ;
Original file line number Diff line number Diff line change 1616 */
1717package com .sonar .it .flex ;
1818
19- import com .sonar .orchestrator .Orchestrator ;
2019import com .sonar .orchestrator .build .SonarScanner ;
20+ import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2121import java .io .File ;
2222import org .junit .BeforeClass ;
2323import org .junit .ClassRule ;
@@ -35,7 +35,7 @@ public class FlexSimpleProjectTest {
3535 private static final String PROJECT = "simple-project" ;
3636
3737 @ ClassRule
38- public static Orchestrator orchestrator = Tests .ORCHESTRATOR ;
38+ public static OrchestratorRule orchestrator = Tests .ORCHESTRATOR ;
3939
4040 private static String keyFor (String s ) {
4141 return PROJECT + ":src/" + s ;
Original file line number Diff line number Diff line change 1616 */
1717package com .sonar .it .flex ;
1818
19- import com .sonar .orchestrator .Orchestrator ;
2019import com .sonar .orchestrator .build .MavenBuild ;
2120import com .sonar .orchestrator .build .SonarScanner ;
21+ import com .sonar .orchestrator .container .Edition ;
2222import com .sonar .orchestrator .config .Configuration ;
23+ import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2324import com .sonar .orchestrator .locator .FileLocation ;
2425import java .io .File ;
2526import java .util .Collections ;
4647public class Tests {
4748
4849 @ ClassRule
49- public static final Orchestrator ORCHESTRATOR = Orchestrator .builderEnv ()
50+ public static final OrchestratorRule ORCHESTRATOR = OrchestratorRule .builderEnv ()
51+ .setEdition (Edition .ENTERPRISE_LW )
52+ .activateLicense ()
5053 .useDefaultAdminCredentialsForBuilds (true )
5154 .setSonarVersion (Configuration .createEnv ().getString ("sonar.runtimeVersion" ))
5255 .addPlugin (FileLocation .byWildcardMavenFilename (new File ("../../sonar-flex-plugin/target" ), "sonar-flex-plugin-*.jar" ))
Original file line number Diff line number Diff line change 2121 <dependencies >
2222 <dependency >
2323 <groupId >org.sonarsource.orchestrator</groupId >
24- <artifactId >sonar-orchestrator</artifactId >
24+ <artifactId >sonar-orchestrator-junit4 </artifactId >
2525 <version >${orchestrator.version} </version >
2626 <scope >test</scope >
2727 </dependency >
Original file line number Diff line number Diff line change 1616 */
1717package org .sonar .flex .it ;
1818
19- import com .sonar .orchestrator .Orchestrator ;
2019import com .sonar .orchestrator .build .SonarScanner ;
20+ import com .sonar .orchestrator .container .Edition ;
2121import com .sonar .orchestrator .config .Configuration ;
22+ import com .sonar .orchestrator .junit4 .OrchestratorRule ;
2223import com .sonar .orchestrator .locator .FileLocation ;
2324import com .sonar .orchestrator .locator .MavenLocation ;
2425import java .io .File ;
3132public class FlexRulingTest {
3233
3334 @ ClassRule
34- public static Orchestrator ORCHESTRATOR = Orchestrator .builderEnv ()
35+ public static final OrchestratorRule ORCHESTRATOR = OrchestratorRule .builderEnv ()
36+ .setEdition (Edition .ENTERPRISE_LW )
37+ .activateLicense ()
3538 .useDefaultAdminCredentialsForBuilds (true )
3639 .setSonarVersion (Configuration .createEnv ().getString ("sonar.runtimeVersion" ))
3740 .addPlugin (FileLocation .byWildcardMavenFilename (new File ("../../sonar-flex-plugin/target" ), "sonar-flex-plugin-*.jar" ))
@@ -51,7 +54,6 @@ public void test() throws Exception {
5154 .setProjectName ("project" )
5255 .setProjectVersion ("1" )
5356 .setSourceDirs ("." )
54- .setLanguage ("flex" )
5557 .setSourceEncoding ("UTF-8" )
5658 .setProperty ("sonar.lits.dump.old" , FileLocation .of ("src/test/resources/expected" ).getFile ().getAbsolutePath ())
5759 .setProperty ("sonar.lits.dump.new" , FileLocation .of ("target/actual" ).getFile ().getAbsolutePath ())
Original file line number Diff line number Diff line change 8080 <analyzerCommons .version>2.7.0.1482</analyzerCommons .version>
8181 <junit .version>4.13.2</junit .version>
8282 <fest .version>1.4</fest .version>
83- <orchestrator .version>3.40.0.183 </orchestrator .version>
83+ <orchestrator .version>5.6.2.2625 </orchestrator .version>
8484
8585 <gitRepositoryName >sonar-flex</gitRepositoryName >
8686
You can’t perform that action at this time.
0 commit comments