Reinstate Tessera tests with a fixed version (#4303)

* Revert "ignore the tests that use tessera enclave via docker (#4297)"

This reverts commit 98e214cedc.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

* lock version of tessera and make public

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/4308/head
Sally MacFarlane 2 years ago committed by GitHub
parent b3b8e0aaeb
commit 13b777f61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/BftPrivacyClusterAcceptanceTest.java
  2. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/DeployPrivateSmartContractAcceptanceTest.java
  3. 1
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/EnclaveErrorAcceptanceTest.java
  4. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/FlexiblePrivacyAcceptanceTest.java
  5. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivCallAcceptanceTest.java
  6. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivDebugGetStateRootFlexibleGroupAcceptanceTest.java
  7. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivDebugGetStateRootOffchainGroupAcceptanceTest.java
  8. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivGetCodeAcceptanceTest.java
  9. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivGetLogsAcceptanceTest.java
  10. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivGetPrivateTransactionAcceptanceTest.java
  11. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivacyClusterAcceptanceTest.java
  12. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivacyGroupAcceptanceTest.java
  13. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivacyReceiptAcceptanceTest.java
  14. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivateContractPublicStateAcceptanceTest.java
  15. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivateGenesisAcceptanceTest.java
  16. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivateLogFilterAcceptanceTest.java
  17. 2
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/multitenancy/FlexibleMultiTenancyAcceptanceTest.java
  18. 12
      container-tests/tests/src/test/java/org/hyperledger/besu/tests/container/ContainerTestBase.java
  19. 4
      testutil/src/main/java/org/hyperledger/enclave/testutil/TesseraTestHarness.java

@ -30,7 +30,6 @@ import java.util.List;
import java.util.Optional;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -39,7 +38,6 @@ import org.web3j.protocol.besu.response.privacy.PrivateTransactionReceipt;
import org.web3j.utils.Restriction;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class BftPrivacyClusterAcceptanceTest extends PrivacyAcceptanceTestBase {
private final BftPrivacyType bftPrivacyType;

@ -26,11 +26,9 @@ import org.hyperledger.enclave.testutil.EnclaveType;
import java.io.IOException;
import java.util.Optional;
import org.junit.Ignore;
import org.junit.Test;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class DeployPrivateSmartContractAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode minerNode;

@ -49,7 +49,6 @@ import org.web3j.protocol.besu.response.privacy.PrivateTransactionReceipt;
import org.web3j.utils.Restriction;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class EnclaveErrorAcceptanceTest extends PrivacyAcceptanceTestBase {
private final PrivacyNode alice;

@ -38,7 +38,6 @@ import java.util.function.Supplier;
import com.google.common.collect.Lists;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -51,7 +50,6 @@ import org.web3j.protocol.core.methods.response.TransactionReceipt;
import org.web3j.tx.Contract;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class FlexiblePrivacyAcceptanceTest extends FlexiblePrivacyAcceptanceTestBase {
private final EnclaveType enclaveType;

@ -33,7 +33,6 @@ import java.util.List;
import java.util.Optional;
import javax.annotation.Nonnull;
import org.junit.Ignore;
import org.junit.Test;
import org.web3j.abi.FunctionEncoder;
import org.web3j.abi.TypeReference;
@ -49,7 +48,6 @@ import org.web3j.protocol.http.HttpService;
import org.web3j.tx.Contract;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivCallAcceptanceTest extends ParameterizedEnclaveTestBase {
private static final int VALUE = 1024;

@ -32,7 +32,6 @@ import java.util.Optional;
import org.apache.tuweni.bytes.Bytes32;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -40,7 +39,6 @@ import org.junit.runners.Parameterized.Parameters;
import org.testcontainers.containers.Network;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivDebugGetStateRootFlexibleGroupAcceptanceTest
extends FlexiblePrivacyAcceptanceTestBase {

@ -29,12 +29,10 @@ import java.io.IOException;
import java.util.Optional;
import org.apache.tuweni.bytes.Bytes32;
import org.junit.Ignore;
import org.junit.Test;
import org.testcontainers.containers.Network;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivDebugGetStateRootOffchainGroupAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode aliceNode;

@ -29,11 +29,9 @@ import java.io.IOException;
import java.util.Optional;
import org.apache.tuweni.bytes.Bytes;
import org.junit.Ignore;
import org.junit.Test;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivGetCodeAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode alice;

@ -30,14 +30,12 @@ import java.math.BigInteger;
import java.util.List;
import java.util.Optional;
import org.junit.Ignore;
import org.junit.Test;
import org.web3j.protocol.besu.response.privacy.PrivateTransactionReceipt;
import org.web3j.protocol.core.methods.response.EthLog.LogResult;
import org.web3j.utils.Restriction;
@SuppressWarnings("rawtypes")
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivGetLogsAcceptanceTest extends ParameterizedEnclaveTestBase {
/*

@ -32,12 +32,10 @@ import java.io.IOException;
import java.util.Optional;
import org.apache.tuweni.bytes.Bytes;
import org.junit.Ignore;
import org.junit.Test;
import org.testcontainers.containers.Network;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivGetPrivateTransactionAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode alice;

@ -42,7 +42,6 @@ import java.util.Optional;
import io.vertx.core.Vertx;
import org.apache.tuweni.bytes.Bytes;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -58,7 +57,6 @@ import org.web3j.utils.Base64String;
import org.web3j.utils.Numeric;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivacyClusterAcceptanceTest extends PrivacyAcceptanceTestBase {
private final PrivacyNode alice;

@ -35,7 +35,6 @@ import java.util.Collection;
import java.util.Optional;
import org.apache.logging.log4j.Level;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -46,7 +45,6 @@ import org.web3j.protocol.besu.response.privacy.PrivateTransactionReceipt;
import org.web3j.utils.Base64String;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivacyGroupAcceptanceTest extends PrivacyAcceptanceTestBase {
private final PrivacyNode alice;

@ -34,11 +34,9 @@ import java.io.IOException;
import java.util.Optional;
import org.apache.tuweni.bytes.Bytes;
import org.junit.Ignore;
import org.junit.Test;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivacyReceiptAcceptanceTest extends ParameterizedEnclaveTestBase {
final MinerTransactions minerTransactions = new MinerTransactions();

@ -33,7 +33,6 @@ import java.io.IOException;
import java.math.BigInteger;
import java.util.Optional;
import org.junit.Ignore;
import org.junit.Test;
import org.testcontainers.containers.Network;
import org.web3j.protocol.besu.response.privacy.PrivateTransactionReceipt;
@ -43,7 +42,6 @@ import org.web3j.protocol.exceptions.TransactionException;
import org.web3j.tx.exceptions.ContractCallException;
import org.web3j.utils.Restriction;
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivateContractPublicStateAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode transactionNode;

@ -29,7 +29,6 @@ import java.io.IOException;
import java.math.BigInteger;
import java.util.Optional;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -37,7 +36,6 @@ import org.web3j.protocol.core.methods.response.EthCall;
import org.web3j.utils.Restriction;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivateGenesisAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode alice;

@ -31,14 +31,12 @@ import java.util.Collections;
import java.util.List;
import java.util.Optional;
import org.junit.Ignore;
import org.junit.Test;
import org.web3j.protocol.besu.response.privacy.PrivateTransactionReceipt;
import org.web3j.protocol.core.methods.response.EthLog.LogResult;
import org.web3j.utils.Restriction;
@SuppressWarnings("rawtypes")
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class PrivateLogFilterAcceptanceTest extends ParameterizedEnclaveTestBase {
private final PrivacyNode node;

@ -40,7 +40,6 @@ import java.util.stream.Collectors;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@ -51,7 +50,6 @@ import org.web3j.utils.Base64String;
import org.web3j.utils.Restriction;
@RunWith(Parameterized.class)
@Ignore("Ignored since Tessera/Docker container startup causing errors")
public class FlexibleMultiTenancyAcceptanceTest extends FlexiblePrivacyAcceptanceTestBase {
private final EnclaveType enclaveType;

@ -48,8 +48,8 @@ public class ContainerTestBase {
// private final String besuImage = "hyperledger/besu:21.7.0-SNAPSHOT";
private final String besuImage = System.getProperty("containertest.imagename");
private final String goQuorumVersion = "22.4.4";
private final String tesseraVersion = "22.1.3";
public static final String GOQUORUM_VERSION = "22.4.4";
public static final String TESSERA_VERSION = "22.1.5";
protected final String goQuorumTesseraPubKey = "3XGBIf+x8IdVQOVfIsbRnHwTYOJP/Fx84G8gMmy8qDM=";
protected final String besuTesseraPubKey = "8JJLEAbq6o9m4Kqm++v0Y1n9Z2ryAFtZTyhnxSKWgws=";
@ -127,7 +127,7 @@ public class ContainerTestBase {
goQuorumContainer.getMappedPort(goQuorumRpcPort));
waitFor(10, () -> assertClientVersion(besuWeb3j, "besu"));
waitFor(10, () -> assertClientVersion(goQuorumWeb3j, goQuorumVersion));
waitFor(10, () -> assertClientVersion(goQuorumWeb3j, GOQUORUM_VERSION));
// Tell GoQuorum to peer to Besu
goQuorumContainer.execInContainer(
@ -187,7 +187,7 @@ public class ContainerTestBase {
final String containerIpcPath,
final String privKeyPath,
final String pubKeyPath) {
return new GenericContainer("quorumengineering/tessera:" + tesseraVersion)
return new GenericContainer("quorumengineering/tessera:" + TESSERA_VERSION)
.withNetwork(containerNetwork)
.withNetworkAliases("goQuorumTessera")
.withClasspathResourceMapping(
@ -209,7 +209,7 @@ public class ContainerTestBase {
private GenericContainer buildBesuTesseraContainer(
final String privKeyPath, final String pubKeyPath) {
return new GenericContainer("quorumengineering/tessera:" + tesseraVersion)
return new GenericContainer("quorumengineering/tessera:" + TESSERA_VERSION)
.withNetwork(containerNetwork)
.withNetworkAliases("besuTessera")
.withClasspathResourceMapping(
@ -230,7 +230,7 @@ public class ContainerTestBase {
private GenericContainer buildGoQuorumContainer(
final String ipcPath, final String ipcBindDir, final String containerIpcPath) {
return new GenericContainer("quorumengineering/quorum:" + goQuorumVersion)
return new GenericContainer("quorumengineering/quorum:" + GOQUORUM_VERSION)
.withNetwork(containerNetwork)
.dependsOn(tesseraGoQuorumContainer)
.withExposedPorts(goQuorumRpcPort, goQuorumP2pPort)

@ -49,7 +49,7 @@ public class TesseraTestHarness implements EnclaveTestHarness {
private URI q2TUri;
private URI thirdPartyUri;
private final String tesseraVersion = "latest";
public static final String TESSERA_VERSION = "22.1.5";
private final int thirdPartyPort = 9081;
private final int q2TPort = 9082;
@ -264,7 +264,7 @@ public class TesseraTestHarness implements EnclaveTestHarness {
private GenericContainer buildTesseraContainer(final String configFilePath) {
final String containerConfigFilePath = "/tmp/config.json";
final String keyDir = enclaveConfiguration.getTempDir().toString();
return new GenericContainer<>("quorumengineering/tessera:" + tesseraVersion)
return new GenericContainer<>("quorumengineering/tessera:" + TESSERA_VERSION)
.withCopyFileToContainer(MountableFile.forHostPath(configFilePath), containerConfigFilePath)
.withFileSystemBind(keyDir, containerKeyDir)
.withCommand("--configfile " + containerConfigFilePath)

Loading…
Cancel
Save