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

"container-tests" module. #1894

Merged
merged 14 commits into from
Apr 14, 2021
Merged
26 changes: 25 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ executors:
environment:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=4

machine_executor:
machine:
image: ubuntu-2004:202010-01

notify:
webhooks:
- url: $HUBOT_URL
Expand Down Expand Up @@ -191,6 +195,19 @@ jobs:
- capture_test_results
- capture_test_logs

containerTests:
parallelism: 1
executor: machine_executor
steps:
- prepare
- attach_workspace:
at: ~/project
- run:
mark-terry marked this conversation as resolved.
Show resolved Hide resolved
name: Container Tests
no_output_timeout: 10m
command: ./gradlew --no-daemon containerTests -i
- capture_test_results

buildDocker:
executor: besu_executor_med
steps:
Expand Down Expand Up @@ -274,7 +291,12 @@ workflows:
requires:
- assemble
context:
- besu-dockerhub-ro
- besu-dockerhub-ro
- containerTests:
requires:
- assemble
context:
- besu-dockerhub-ro
- buildDocker:
requires:
- unitTests
Expand All @@ -289,6 +311,7 @@ workflows:
requires:
- integrationTests
- unitTests
- containerTests
- acceptanceTests
- referenceTests
- buildDocker
Expand All @@ -304,6 +327,7 @@ workflows:
requires:
- integrationTests
- unitTests
- containerTests
- acceptanceTests
- referenceTests
- buildDocker
Expand Down
17 changes: 17 additions & 0 deletions container-tests/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

/*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

jar { enabled = false }
38 changes: 38 additions & 0 deletions container-tests/tests/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

/*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

jar { enabled = false }

dependencies {
testImplementation 'junit:junit'
testImplementation 'org.apache.logging.log4j:log4j-slf4j-impl'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.awaitility:awaitility'
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'org.web3j:core'
testImplementation 'org.web3j:quorum'
}

test.enabled = false

task containerTests(type: Test) {
description = 'Runs GoQuorum <> Besu container tests.'
mark-terry marked this conversation as resolved.
Show resolved Hide resolved
dependsOn(rootProject.distDocker)
def dockerBuildVersion = project.hasProperty('release.releaseVersion') ? project.property('release.releaseVersion') : "${rootProject.version}"
def imageName = "hyperledger/besu"
def image = "${imageName}:${dockerBuildVersion}"
systemProperty 'containertest.imagename', image
}
Loading