Skip to content

Commit

Permalink
Merge pull request #7552 from mandy-chessell/code2023
Browse files Browse the repository at this point in the history
Add tests to gradle build
  • Loading branch information
mandy-chessell authored Mar 22, 2023
2 parents 901c884 + 21860ea commit adb4243
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
testImplementation project(':open-metadata-distribution:open-metadata-assemblies')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
compile localGroovy()
testImplementation localGroovy()
compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
testImplementation("org.junit.jupiter:junit-jupiter-params")
implementation project(':open-metadata-implementation:adapters:authentication-plugins:http-helper')
Expand All @@ -35,13 +35,12 @@ dependencies {

}

description = 'ProjectProperties Profile OMAS FVT'
description = 'Community Profile OMAS FVT'

java {
withJavadocJar()
}


// Local properties to use
ext
{
Expand Down Expand Up @@ -73,7 +72,6 @@ task startServer(dependsOn: ['cleanData',':open-metadata-distribution:open-metad
stopAfter = test
waitForPort = 10441
timeout = 180

//waitForOutput = 'has started'
}

Expand All @@ -85,23 +83,11 @@ task configServer(dependsOn: ['startServer','classes'], type: JavaExec) {
systemProperties = [
'name': 'Egeria chassis',
'baseURL': 'https://localhost:10441',
'servermem': 'serverinmem',
'delay': '2',
'server': 'fvtServer',
'user': 'testUser'
]
}

task prepareDirs {
mustRunAfter clean
doLast {
mkdir layout.buildDirectory.dir('run')
}
}

task cleanData(type: Delete) {
delete files("${buildDir}/run/data")
}

// The actual tests (Integration only)
test {
description 'Run Integration Tests'
Expand All @@ -113,7 +99,18 @@ test {
useJUnitPlatform()
testLogging.showStandardStreams = true
dependsOn configServer
errorOutput = layout.buildDirectory.file("chassis-error.log")

}

task prepareDirs {
mustRunAfter clean
doLast {
mkdir layout.buildDirectory.dir('run')
}
}

task cleanData(type: Delete) {
delete files("${buildDir}/run/data")
}

// Resolves logging conflict with Jena
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,18 @@ dependencies {
implementation project(':open-metadata-implementation:access-services:discovery-engine:discovery-engine-client')
implementation project(':open-metadata-implementation:frameworks:audit-log-framework')
implementation project(':open-metadata-implementation:frameworks:open-connector-framework')
implementation project(':open-metadata-implementation:frameworks:open-discovery-framework')
implementation project(':open-metadata-implementation:repository-services:repository-services-apis')
implementation project(':open-metadata-implementation:admin-services:admin-services-api')
implementation project(':open-metadata-implementation:common-services:ffdc-services')
implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-api')
implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-client')
implementation project(':open-metadata-test:open-metadata-fvt:fvt-utilities')
compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
testImplementation project(':open-metadata-distribution:open-metadata-assemblies')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
compile localGroovy()
testImplementation localGroovy()
compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
testImplementation("org.junit.jupiter:junit-jupiter-params")
implementation project(':open-metadata-implementation:adapters:authentication-plugins:http-helper')
Expand All @@ -42,7 +44,6 @@ java {
withJavadocJar()
}


// Local properties to use
ext
{
Expand Down Expand Up @@ -74,7 +75,6 @@ task startServer(dependsOn: ['cleanData',':open-metadata-distribution:open-metad
stopAfter = test
waitForPort = 10450
timeout = 180

//waitForOutput = 'has started'
}

Expand All @@ -86,23 +86,11 @@ task configServer(dependsOn: ['startServer','classes'], type: JavaExec) {
systemProperties = [
'name': 'Egeria chassis',
'baseURL': 'https://localhost:10450',
'servermem': 'serverinmem',
'delay': '2',
'server': 'fvtServer',
'user': 'testUser'
]
}

task prepareDirs {
mustRunAfter clean
doLast {
mkdir layout.buildDirectory.dir('run')
}
}

task cleanData(type: Delete) {
delete files("${buildDir}/run/data")
}

// The actual tests (Integration only)
test {
description 'Run Integration Tests'
Expand All @@ -117,6 +105,17 @@ test {

}

task prepareDirs {
mustRunAfter clean
doLast {
mkdir layout.buildDirectory.dir('run')
}
}

task cleanData(type: Delete) {
delete files("${buildDir}/run/data")
}

// Resolves logging conflict with Jena
loggingCapabilities {
enforceLogback()// Configuration goes here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ dependencies {
implementation project(':open-metadata-implementation:admin-services:admin-services-api')
implementation project(':open-metadata-implementation:common-services:ffdc-services')
implementation project(':open-metadata-implementation:framework-services:ocf-metadata-management:ocf-metadata-client')
implementation project(':open-metadata-implementation:framework-services:gaf-metadata-management:gaf-metadata-api')
implementation project(':open-metadata-implementation:framework-services:gaf-metadata-management:gaf-metadata-client')
implementation project(':open-metadata-test:open-metadata-fvt:fvt-utilities')
compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
testImplementation project(':open-metadata-distribution:open-metadata-assemblies')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.junit.jupiter:junit-jupiter-engine'
compile localGroovy()
testImplementation localGroovy()
compileOnly 'com.fasterxml.jackson.core:jackson-annotations'
testImplementation("org.junit.jupiter:junit-jupiter-params")
implementation project(':open-metadata-implementation:adapters:authentication-plugins:http-helper')
Expand All @@ -42,7 +44,6 @@ java {
withJavadocJar()
}


// Local properties to use
ext
{
Expand Down Expand Up @@ -74,7 +75,6 @@ task startServer(dependsOn: ['cleanData',':open-metadata-distribution:open-metad
stopAfter = test
waitForPort = 10451
timeout = 180

//waitForOutput = 'has started'
}

Expand All @@ -86,23 +86,11 @@ task configServer(dependsOn: ['startServer','classes'], type: JavaExec) {
systemProperties = [
'name': 'Egeria chassis',
'baseURL': 'https://localhost:10451',
'servermem': 'serverinmem',
'delay': '2',
'server': 'fvtServer',
'user': 'testUser'
]
}

task prepareDirs {
mustRunAfter clean
doLast {
mkdir layout.buildDirectory.dir('run')
}
}

task cleanData(type: Delete) {
delete files("${buildDir}/run/data")
}

// The actual tests (Integration only)
test {
description 'Run Integration Tests'
Expand All @@ -117,6 +105,17 @@ test {

}

task prepareDirs {
mustRunAfter clean
doLast {
mkdir layout.buildDirectory.dir('run')
}
}

task cleanData(type: Delete) {
delete files("${buildDir}/run/data")
}

// Resolves logging conflict with Jena
loggingCapabilities {
enforceLogback()// Configuration goes here
Expand Down
Loading

0 comments on commit adb4243

Please sign in to comment.