diff --git a/build.gradle b/build.gradle index f1e802e3ec..b3c580c19c 100644 --- a/build.gradle +++ b/build.gradle @@ -344,6 +344,7 @@ subprojects { testClassesDirs = sourceSets.integrationTest.output.classesDirs classpath = sourceSets.integrationTest.runtimeClasspath outputs.upToDateWhen { false } + useJUnitPlatform {} } } diff --git a/enclave/src/integration-test/java/org/hyperledger/besu/enclave/EnclaveTest.java b/enclave/src/integration-test/java/org/hyperledger/besu/enclave/EnclaveTest.java index 695d86f252..b9b657e668 100644 --- a/enclave/src/integration-test/java/org/hyperledger/besu/enclave/EnclaveTest.java +++ b/enclave/src/integration-test/java/org/hyperledger/besu/enclave/EnclaveTest.java @@ -21,6 +21,7 @@ import static org.assertj.core.api.Assertions.catchThrowable; import org.hyperledger.besu.enclave.types.PrivacyGroup; import org.hyperledger.besu.enclave.types.ReceiveResponse; import org.hyperledger.besu.enclave.types.SendResponse; +import org.hyperledger.enclave.testutil.EnclaveEncryptorType; import org.hyperledger.enclave.testutil.EnclaveKeyConfiguration; import org.hyperledger.enclave.testutil.TesseraTestHarness; import org.hyperledger.enclave.testutil.TesseraTestHarnessFactory; @@ -47,11 +48,11 @@ public class EnclaveTest { private static final String PAYLOAD = "a wonderful transaction"; private static final String MOCK_KEY = "iOCzoGo5kwtZU0J41Z9xnGXHN6ZNukIa9MspvHtu3Jk="; - private static Enclave enclave; + private Enclave enclave; private Vertx vertx; private EnclaveFactory factory; - private static TesseraTestHarness testHarness; + private TesseraTestHarness testHarness; @BeforeEach public void setUp() throws Exception { @@ -62,7 +63,10 @@ public class EnclaveTest { TesseraTestHarnessFactory.create( "enclave", Files.createTempDirectory(folder, "enclave"), - new EnclaveKeyConfiguration("enclave_key_0.pub", "enclave_key_0.key"), + new EnclaveKeyConfiguration( + new String[] {"enclave_key_0.pub"}, + new String[] {"enclave_key_0.key"}, + EnclaveEncryptorType.NOOP), Optional.empty()); testHarness.start(); diff --git a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/EthGetFilterChangesIntegrationTest.java b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/EthGetFilterChangesIntegrationTest.java index 333720ac4c..e46efb6b8d 100644 --- a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/EthGetFilterChangesIntegrationTest.java +++ b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/EthGetFilterChangesIntegrationTest.java @@ -297,7 +297,7 @@ public class EthGetFilterChangesIntegrationTest { .type(TransactionType.FRONTIER) .gasLimit(100) .gasPrice(Wei.ZERO) - .nonce(1) + .nonce(0) .payload(Bytes.EMPTY) .to(Address.ID) .value(Wei.of(transactionNumber)) diff --git a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/PrivGetPrivateTransactionIntegrationTest.java b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/PrivGetPrivateTransactionIntegrationTest.java index 6287957a78..9bb10629f3 100644 --- a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/PrivGetPrivateTransactionIntegrationTest.java +++ b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/frontier/PrivGetPrivateTransactionIntegrationTest.java @@ -47,6 +47,7 @@ import org.hyperledger.besu.ethereum.privacy.RestrictedDefaultPrivacyController; import org.hyperledger.besu.ethereum.privacy.storage.PrivateStateStorage; import org.hyperledger.besu.ethereum.rlp.BytesValueRLPOutput; import org.hyperledger.besu.plugin.data.Restriction; +import org.hyperledger.enclave.testutil.EnclaveEncryptorType; import org.hyperledger.enclave.testutil.EnclaveKeyConfiguration; import org.hyperledger.enclave.testutil.TesseraTestHarness; import org.hyperledger.enclave.testutil.TesseraTestHarnessFactory; @@ -127,7 +128,10 @@ public class PrivGetPrivateTransactionIntegrationTest { TesseraTestHarnessFactory.create( "enclave", Files.createTempDirectory(folder, "enclave"), - new EnclaveKeyConfiguration("enclave_key_0.pub", "enclave_key_0.key"), + new EnclaveKeyConfiguration( + new String[] {"enclave_key_0.pub"}, + new String[] {"enclave_key_0.key"}, + EnclaveEncryptorType.NOOP), Optional.empty()); testHarness.start(); diff --git a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/london/EthGetFilterChangesIntegrationTest.java b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/london/EthGetFilterChangesIntegrationTest.java index 703bd22ef0..9e95650f04 100644 --- a/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/london/EthGetFilterChangesIntegrationTest.java +++ b/ethereum/api/src/integration-test/java/org/hyperledger/besu/ethereum/api/jsonrpc/methods/fork/london/EthGetFilterChangesIntegrationTest.java @@ -297,7 +297,7 @@ public class EthGetFilterChangesIntegrationTest { .type(TransactionType.FRONTIER) .gasLimit(100) .gasPrice(Wei.ZERO) - .nonce(1) + .nonce(0) .payload(Bytes.EMPTY) .to(Address.ID) .value(Wei.of(transactionNumber)) diff --git a/ethereum/core/src/integration-test/java/org/hyperledger/besu/ethereum/mainnet/precompiles/privacy/PrivacyPrecompiledContractIntegrationTest.java b/ethereum/core/src/integration-test/java/org/hyperledger/besu/ethereum/mainnet/precompiles/privacy/PrivacyPrecompiledContractIntegrationTest.java index 3004a9b5f1..2c6e07433f 100644 --- a/ethereum/core/src/integration-test/java/org/hyperledger/besu/ethereum/mainnet/precompiles/privacy/PrivacyPrecompiledContractIntegrationTest.java +++ b/ethereum/core/src/integration-test/java/org/hyperledger/besu/ethereum/mainnet/precompiles/privacy/PrivacyPrecompiledContractIntegrationTest.java @@ -50,6 +50,7 @@ import org.hyperledger.besu.evm.gascalculator.SpuriousDragonGasCalculator; import org.hyperledger.besu.evm.precompile.PrecompiledContract; import org.hyperledger.besu.evm.tracing.OperationTracer; import org.hyperledger.besu.evm.worldstate.WorldUpdater; +import org.hyperledger.enclave.testutil.EnclaveEncryptorType; import org.hyperledger.enclave.testutil.EnclaveKeyConfiguration; import org.hyperledger.enclave.testutil.TesseraTestHarness; import org.hyperledger.enclave.testutil.TesseraTestHarnessFactory; @@ -123,7 +124,10 @@ public class PrivacyPrecompiledContractIntegrationTest { TesseraTestHarnessFactory.create( "enclave", Files.createTempDirectory(folder, "enclave"), - new EnclaveKeyConfiguration("enclave_key_0.pub", "enclave_key_1.key"), + new EnclaveKeyConfiguration( + new String[] {"enclave_key_0.pub"}, + new String[] {"enclave_key_1.key"}, + EnclaveEncryptorType.NOOP), Optional.empty()); testHarness.start();