Removing the orion acceptance tests (#3086)

* Not executing Orion acceptance tests

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

* Removing ORION from enclave lists for tests

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>
pull/3092/head
Jiri Peinlich 3 years ago committed by GitHub
parent b1e2496c19
commit e07d804e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/ParameterizedEnclaveTestBase.java
  2. 4
      acceptance-tests/dsl/src/main/java/org/hyperledger/besu/tests/acceptance/dsl/privacy/PrivacyNode.java
  3. 8
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/BftPrivacyClusterAcceptanceTest.java
  4. 6
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/EnclaveErrorAcceptanceTest.java
  5. 5
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/OnchainPrivacyAcceptanceTest.java
  6. 6
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivDebugGetStateRootOnchainGroupAcceptanceTest.java
  7. 6
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivacyClusterAcceptanceTest.java
  8. 6
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/PrivacyGroupAcceptanceTest.java
  9. 5
      acceptance-tests/tests/src/test/java/org/hyperledger/besu/tests/acceptance/privacy/multitenancy/OnchainMultiTenancyAcceptanceTest.java
  10. 13
      testutil/src/main/java/org/hyperledger/enclave/testutil/EnclaveType.java

@ -15,7 +15,6 @@
package org.hyperledger.besu.tests.acceptance.dsl.privacy;
import static org.hyperledger.enclave.testutil.EnclaveType.NOOP;
import static org.hyperledger.enclave.testutil.EnclaveType.ORION;
import static org.hyperledger.enclave.testutil.EnclaveType.TESSERA;
import static org.web3j.utils.Restriction.RESTRICTED;
import static org.web3j.utils.Restriction.UNRESTRICTED;
@ -49,7 +48,6 @@ public abstract class ParameterizedEnclaveTestBase extends PrivacyAcceptanceTest
return Arrays.asList(
new Object[][] {
{RESTRICTED, TESSERA},
{RESTRICTED, ORION},
{UNRESTRICTED, NOOP}
});
}

@ -44,7 +44,6 @@ import org.hyperledger.besu.tests.acceptance.dsl.transaction.Transaction;
import org.hyperledger.enclave.testutil.EnclaveTestHarness;
import org.hyperledger.enclave.testutil.EnclaveType;
import org.hyperledger.enclave.testutil.NoopEnclaveTestHarness;
import org.hyperledger.enclave.testutil.OrionTestHarnessFactory;
import org.hyperledger.enclave.testutil.TesseraTestHarnessFactory;
import java.io.IOException;
@ -293,8 +292,7 @@ public class PrivacyNode implements AutoCloseable {
switch (enclaveType) {
case ORION:
return OrionTestHarnessFactory.create(
config.getName(), tempDir, privacyConfiguration.getKeyConfig());
throw new UnsupportedOperationException("The Orion tests are getting deprecated");
case TESSERA:
return TesseraTestHarnessFactory.create(
config.getName(), tempDir, privacyConfiguration.getKeyConfig(), containerNetwork);

@ -67,11 +67,9 @@ public class BftPrivacyClusterAcceptanceTest extends PrivacyAcceptanceTestBase {
@Parameterized.Parameters(name = "{0}")
public static Collection<BftPrivacyType> bftPrivacyTypes() {
final List<BftPrivacyType> bftPrivacyTypes = new ArrayList<>();
for (EnclaveType x : EnclaveType.values()) {
if (!x.equals(EnclaveType.NOOP)) {
for (ConsensusType consensusType : ConsensusType.values()) {
bftPrivacyTypes.add(new BftPrivacyType(x, consensusType, Restriction.RESTRICTED));
}
for (EnclaveType x : EnclaveType.valuesForTests()) {
for (ConsensusType consensusType : ConsensusType.values()) {
bftPrivacyTypes.add(new BftPrivacyType(x, consensusType, Restriction.RESTRICTED));
}
}

@ -25,11 +25,9 @@ import org.hyperledger.enclave.testutil.EnclaveType;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Base64;
import java.util.Collection;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.tuweni.crypto.sodium.Box;
import org.assertj.core.api.Condition;
@ -51,9 +49,7 @@ public class EnclaveErrorAcceptanceTest extends PrivacyAcceptanceTestBase {
@Parameters(name = "{0}")
public static Collection<EnclaveType> enclaveTypes() {
return Arrays.stream(EnclaveType.values())
.filter(enclaveType -> enclaveType != EnclaveType.NOOP)
.collect(Collectors.toList());
return EnclaveType.valuesForTests();
}
public EnclaveErrorAcceptanceTest(final EnclaveType enclaveType) throws IOException {

@ -33,7 +33,6 @@ import java.util.List;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.google.common.collect.Lists;
import org.junit.Before;
@ -59,9 +58,7 @@ public class OnchainPrivacyAcceptanceTest extends OnchainPrivacyAcceptanceTestBa
@Parameters(name = "{0}")
public static Collection<EnclaveType> enclaveTypes() {
return Arrays.stream(EnclaveType.values())
.filter(enclaveType -> enclaveType != EnclaveType.NOOP)
.collect(Collectors.toList());
return EnclaveType.valuesForTests();
}
private PrivacyNode alice;

@ -26,10 +26,8 @@ import org.hyperledger.enclave.testutil.EnclaveType;
import java.io.IOException;
import java.math.BigInteger;
import java.net.URISyntaxException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.tuweni.bytes.Bytes32;
import org.junit.Before;
@ -51,9 +49,7 @@ public class PrivDebugGetStateRootOnchainGroupAcceptanceTest
@Parameters(name = "{0}")
public static Collection<EnclaveType> enclaveTypes() {
return Arrays.stream(EnclaveType.values())
.filter(enclaveType -> enclaveType != EnclaveType.NOOP)
.collect(Collectors.toList());
return EnclaveType.valuesForTests();
}
private PrivacyNode aliceNode;

@ -29,11 +29,9 @@ import org.hyperledger.enclave.testutil.EnclaveType;
import java.io.IOException;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Optional;
import java.util.stream.Collectors;
import io.vertx.core.Vertx;
import org.apache.tuweni.bytes.Bytes;
@ -63,9 +61,7 @@ public class PrivacyClusterAcceptanceTest extends PrivacyAcceptanceTestBase {
@Parameters(name = "{0}")
public static Collection<EnclaveType> enclaveTypes() {
return Arrays.stream(EnclaveType.values())
.filter(enclaveType -> enclaveType != EnclaveType.NOOP)
.collect(Collectors.toList());
return EnclaveType.valuesForTests();
}
public PrivacyClusterAcceptanceTest(final EnclaveType enclaveType) throws IOException {

@ -24,10 +24,8 @@ import org.hyperledger.enclave.testutil.EnclaveType;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;
import java.util.stream.Collectors;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
@ -52,9 +50,7 @@ public class PrivacyGroupAcceptanceTest extends PrivacyAcceptanceTestBase {
@Parameters(name = "{0}")
public static Collection<EnclaveType> enclaveTypes() {
return Arrays.stream(EnclaveType.values())
.filter(enclaveType -> enclaveType != EnclaveType.NOOP)
.collect(Collectors.toList());
return EnclaveType.valuesForTests();
}
public PrivacyGroupAcceptanceTest(final EnclaveType enclaveType) throws IOException {

@ -31,7 +31,6 @@ import org.hyperledger.besu.tests.web3j.generated.EventEmitter;
import org.hyperledger.enclave.testutil.EnclaveType;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@ -60,9 +59,7 @@ public class OnchainMultiTenancyAcceptanceTest extends OnchainPrivacyAcceptanceT
@Parameterized.Parameters(name = "{0}")
public static Collection<EnclaveType> enclaveTypes() {
return Arrays.stream(EnclaveType.values())
.filter(enclaveType -> enclaveType != EnclaveType.NOOP)
.collect(Collectors.toList());
return EnclaveType.valuesForTests();
}
private static final PermissioningTransactions permissioningTransactions =

@ -14,8 +14,19 @@
*/
package org.hyperledger.enclave.testutil;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public enum EnclaveType {
ORION,
TESSERA,
NOOP
NOOP;
public static List<EnclaveType> valuesForTests() {
return Arrays.stream(values())
.filter(enclaveType -> enclaveType != NOOP)
.filter(enclaveType -> enclaveType != ORION)
.collect(Collectors.toList());
}
}

Loading…
Cancel
Save