Skip to content

Commit

Permalink
"container-tests" module. (hyperledger#1894)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Terry <mark.terry@consensys.net>
  • Loading branch information
mark-terry authored and eum602 committed Nov 3, 2023
1 parent 3dfef4c commit e6a2fb2
Show file tree
Hide file tree
Showing 20 changed files with 857 additions and 1 deletion.
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:
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.'
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

0 comments on commit e6a2fb2

Please sign in to comment.