Skip to content

Commit

Permalink
Fixed that the tests executes correctly, and no failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
niclash committed Aug 3, 2018
1 parent 7bddd91 commit 7451233
Show file tree
Hide file tree
Showing 35 changed files with 60 additions and 23 deletions.
2 changes: 1 addition & 1 deletion management/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.classpath
.settings
.metadata
target
target/
git.properties
.gitignore
# Package Files #
Expand Down
22 changes: 11 additions & 11 deletions management/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,21 @@ allprojects {
}
}

if (releaseBuild == "true") {
println "Project: " + project.name + " in Releasebuild: " + releaseBuild
apply plugin: 'nebula.nebula-release'

apply plugin: 'nebula.nebula-release'

uploadArchives {
repositories {
mavenDeployer {
repository(url: "$nexusDeployTarget") {
authentication(userName: "$nexusUsername", password: "$nexusPassword")
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "$nexusDeployTarget") {
authentication(userName: "$nexusUsername", password: "$nexusPassword")
}
}
}
project.rootProject.tasks.release.dependsOn(uploadArchives)
}
project.rootProject.tasks.release.dependsOn(uploadArchives)

test {
workingDir = file(project.projectDir)
}

if (ciBuild.toBoolean()) {
Expand Down
5 changes: 3 additions & 2 deletions management/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def gogoCommandVersion = "0.16.0"
def gogoRuntimeVersion = "0.16.2"
def gsonVersion = '2.3.1'
def guavaVersion = '18.0'
def hamcrestVersion = '1.3.0'
def hamcrestVersion = '1.3'
def httpClientVersion = '4.5.2'
def httpCoreVersion = '4.4.5'
def jacksonVersion = '2.6.3'
Expand Down Expand Up @@ -151,7 +151,7 @@ rootProject.ext {

karaf_shell : [group: "org.apache.karaf.shell", name: "org.apache.karaf.shell.console", version: karafVersion, transitive: false],
log4j : "log4j:log4j:$log4jVersion",
mockito : [group: "org.mockito", name: "mockito-core", version: mockitoVersion, transitive: true],
mockito : [group: "org.mockito", name: "mockito-all", version: mockitoVersion, transitive: true],
netty : "io.netty:netty:$nettyVersion",
nimbus_jwt : "com.nimbusds:nimbus-jose-jwt:$nimbusJwtVersion",

Expand All @@ -165,6 +165,7 @@ rootProject.ext {
osgi_core : [group: "org.osgi", name: "org.osgi.core", version: osgiCoreVersion],
servicemix_beanflow : [group: "org.apache.servicemix", name: "servicemix-beanflow", version: servicemixBeanflowVersion, transitive: false],
slf4j : [group: "org.slf4j", name: "slf4j-api", version: slf4jVersion, transitive: false],
slf4j_testlogger : [group: "org.slf4j", name: "slf4j-simple", version: slf4jVersion, transitive: false],
uuid_generator : [group: "com.fasterxml.uuid", name: "java-uuid-generator", version: uuidGeneratorVersion, transitive: false],
xerial_snappy : "org.xerial.snappy:snappy-java:$xerialSnappyVersion"

Expand Down
9 changes: 5 additions & 4 deletions management/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@


org.gradle.daemon=true
git.root=../
# Uncertain of the proxy settimgs needed.
#--- http proxy
#systemProp.http.proxyHost=
Expand All @@ -11,14 +12,14 @@ org.gradle.daemon=true
#systemProp.https.proxyPort=8080
#systemProp.https.nonProxyHosts=
#--- nexus
#nexusUrl=
#nexusUrl=http://d1:8081
#nexusUrlMavenPublic=https://nexus.psp.cardtech.de/nexus/repository/maven-public
#nexusUrlMavenSnapshots=https://nexus.psp.cardtech.de/nexus/repository/maven-snapshots
#nexusUrlMavenReleases=https://nexus.psp.cardtech.de/nexus/repository/maven-releases
#nexusUrlMavenThirdparty=https://nexus.psp.cardtech.de/nexus/repository/maven-thirdparty
#nexusDeployTarget=https://nexus.psp.cardtech.de/nexus/repository/maven-thirdparty
#nexusUsername=jenkins
#nexusPassword=jenkins
nexusDeployTarget=http://d1:8081/repository/maven-snapshots/
nexusUsername=jenkins
nexusPassword=habbazout
#--- sonarqube
#systemProp.sonar.host.url=
#systemProp.sonar.login=0c6f135bb54690a116e51553071c383eb776fd1a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
testCompile libraries.slf4j_testlogger
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
testCompile libraries.slf4j_testlogger
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
testCompile libraries.slf4j_testlogger
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
testCompile libraries.slf4j_testlogger
}
1 change: 0 additions & 1 deletion management/server/core/messenger/messenger-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

Expand Down
2 changes: 2 additions & 0 deletions management/server/core/messenger/messenger-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
testCompile libraries.slf4j_testlogger
}
1 change: 0 additions & 1 deletion management/server/core/messenger/messenger-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
1 change: 1 addition & 0 deletions management/server/core/metric/metric-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
2 changes: 2 additions & 0 deletions management/server/core/metric/metric-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ dependencies {
compile project(":server:subutai-common")
compile libraries.slf4j

testCompile project(":server:core:identity-manager:identity-manager-api")
testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
1 change: 0 additions & 1 deletion management/server/core/metric/metric-impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ dependencies {
compile libraries.open_jpa
compile libraries.slf4j

testCompile project(":server:core:command-executor:command-executor-api")
testCompile project(":server:core:metric:metric-api")
testCompile project(":server:core:local-peer:local-peer-impl")
testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
1 change: 1 addition & 0 deletions management/server/core/subutai-appender/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
1 change: 1 addition & 0 deletions management/server/core/tracker/tracker-impl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
2 changes: 2 additions & 0 deletions management/server/core/tracker/tracker-rest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dependencies {
compile libraries.guava
compile libraries.slf4j

testCompile project(":server:core:tracker:tracker-impl")
testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public class RestServiceImplTest


@Before
public void setUp() throws Exception
public void setUp()
throws Exception
{

restService = new RestServiceImpl( tracker );
Expand Down
3 changes: 2 additions & 1 deletion management/server/subutai-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ dependencies {
compile libraries.uuid_generator

testCompile libraries.hamcrest
testCompile libraries.mockito

// BAD!!
// BAD!! - compile!!
compile libraries.junit
}
1 change: 1 addition & 0 deletions management/server/subutai-hub-share/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ dependencies {

testCompile libraries.hamcrest
testCompile libraries.junit
testCompile libraries.mockito
}

0 comments on commit 7451233

Please sign in to comment.