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
Prev Previous commit
Next Next commit
Updated Besu image to use build artifact.
Signed-off-by: Mark Terry <mark.terry@consensys.net>
  • Loading branch information
mark-terry committed Apr 1, 2021
commit 4bbefa7dc0a3da6d340963b53e32d7567b9d212f
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ workflows:
- containerTests:
requires:
- assemble
- buildDocker
context:
- besu-dockerhub-ro
- buildDocker:
Expand Down
5 changes: 5 additions & 0 deletions container-tests/tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ 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.installDist)
def dockerBuildVersion = project.hasProperty('release.releaseVersion') ? project.property('release.releaseVersion') : "${rootProject.version}"
def imageName = "hyperledger/besu"
def image = "${imageName}:${dockerBuildVersion}"
systemProperty 'containertest.imagename', image
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

@SuppressWarnings({"rawtypes", "unchecked"})
public class ContainerTestBase {
private final String besuVersion = "develop";
private final String besuImage = System.getProperty("containertest.imagename");
private final String goQuorumVersion = "21.1.0";
private final String tesseraVersion = "21.1.0";

Expand Down Expand Up @@ -151,7 +151,7 @@ public void tearDown() throws IOException {
}

private GenericContainer buildBesuContainer() {
return new GenericContainer("hyperledger/besu:" + besuVersion)
return new GenericContainer(besuImage)
.withNetwork(containerNetwork)
.withNetworkAliases(besuNetworkAlias)
.withExposedPorts(besuRpcPort, besuP2pPort)
Expand Down