-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tests that use the SEM manager into a separate subproject
Signed-off-by: Eamonn Mansour <[email protected]>
- Loading branch information
Showing
29 changed files
with
236 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
galasa-internal-inttests-parent/dev.galasa.internal.inttests.obr/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// This section tells gradle which gradle plugins to use to build this project. | ||
plugins { | ||
id 'base' | ||
id 'maven-publish' | ||
id 'dev.galasa.obr' version '0.36.0' | ||
id 'dev.galasa.testcatalog' version '0.36.0' | ||
} | ||
|
||
// Set the variables which will control what the built OSGi bundle will be called | ||
// and the name it will be published under in the maven repository. | ||
group = 'dev.galasa' | ||
version = '0.38.0' | ||
|
||
// What are the dependencies of the obr ? | ||
dependencies { | ||
bundle project(':dev.galasa.internal.inttests') | ||
} | ||
|
||
def testcatalog = file('build/testcatalog.json') | ||
def obrFile = file('build/galasa.obr') | ||
|
||
|
||
tasks.withType(PublishToMavenLocal) { task -> | ||
task.dependsOn genobr | ||
task.dependsOn mergetestcat | ||
} | ||
|
||
// Tell gradle to publish the built OBR as a maven artifact on the | ||
// local maven repository. | ||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
artifact obrFile | ||
artifact (testcatalog) { | ||
classifier "testcatalog" | ||
extension "json" | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "$targetMaven" | ||
|
||
if ("$targetMaven".startsWith('http')) { | ||
credentials { | ||
username System.getenv('GITHUB_ACTOR') | ||
password System.getenv('GITHUB_TOKEN') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
// If we are deploying a test catalog using the galasa plugin, | ||
// directly to the ecosystem, then we can get the properties | ||
// we need from the system properties, passed on the command line using | ||
// -DGALASA_STREAM=xxx -DGALASA_BOOTSTRAP=xxx -DGALASA_TOKEN=xxx | ||
deployTestCatalog { | ||
bootstrap = System.getProperty("GALASA_BOOTSTRAP") | ||
stream = System.getProperty("GALASA_STREAM") | ||
token = System.getProperty("GALASA_TOKEN"); | ||
} |
3 changes: 3 additions & 0 deletions
3
galasa-internal-inttests-parent/dev.galasa.internal.inttests/bnd.bnd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Bundle-Version: 0.0.1-SNAPSHOT | ||
Bundle-Name: dev.galasa.internal.inttests | ||
Import-Package: * |
67 changes: 67 additions & 0 deletions
67
galasa-internal-inttests-parent/dev.galasa.internal.inttests/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// This section tells gradle which gradle plugins to use to build this project. | ||
plugins { | ||
id 'java' | ||
id 'maven-publish' | ||
id 'dev.galasa.tests' version '0.36.0' | ||
id 'biz.aQute.bnd.builder' version '6.4.0' | ||
} | ||
|
||
// This section tells gradle where it should look for any dependencies | ||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { | ||
url "$sourceMaven" | ||
} | ||
maven { | ||
url "$internalMaven" | ||
} | ||
|
||
} | ||
|
||
// Set the variables which will control what the built OSGi bundle will be called | ||
// and the name it will be published under in the maven repository. | ||
group = 'dev.galasa' | ||
version = '0.38.0' | ||
|
||
// What are the dependencies of the test code ? | ||
// When more managers and dependencies are added, this list will need to grow. | ||
dependencies { | ||
implementation platform('dev.galasa:galasa-bom:0.38.0') | ||
|
||
implementation 'dev.galasa:dev.galasa' | ||
implementation 'dev.galasa:dev.galasa.framework' | ||
implementation 'dev.galasa:dev.galasa.core.manager' | ||
implementation 'commons-logging:commons-logging' | ||
implementation 'org.assertj:assertj-core' | ||
|
||
implementation 'dev.galasa:dev.galasa.galasaecosystem.manager' | ||
implementation 'dev.galasa:dev.galasa.sem.manager' | ||
implementation 'dev.galasa:dev.galasa.cicsts.manager' | ||
implementation 'dev.galasa:dev.galasa.sdv.manager' | ||
implementation 'dev.galasa:dev.galasa.zosprogram.manager' | ||
|
||
implementation 'com.google.code.gson:gson:2.10.1' | ||
} | ||
|
||
// Tell gradle to publish the built OSGi bundles as maven artifacts on the | ||
// local maven repository. | ||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "$targetMaven" | ||
|
||
if ("$targetMaven".startsWith('http')) { | ||
credentials { | ||
username System.getenv('GITHUB_ACTOR') | ||
password System.getenv('GITHUB_TOKEN') | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.