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

Add tests to gradle build #7552

Merged
merged 2 commits into from
Mar 22, 2023
Merged
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 @@ -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