use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class OcspStaplingIT method setup.
@BeforeAll
static void setup() throws Exception {
int jettyServerPortNo = startOcspMock();
endUserKeyFile = Files.createTempFile("end_key", "pem");
endUserCertFile = Files.createTempFile("end_key", "pem");
intKeyFile = Files.createTempFile("int_key", "pem");
Path intCertFile = Files.createTempFile("int_key", "pem");
rootCertFile = Files.createTempFile("root_key", "pem");
rootKeyFile = Files.createTempFile("root_key", "pem");
// make sure files are not there
Files.delete(endUserKeyFile);
Files.delete(endUserCertFile);
Files.delete(rootKeyFile);
Files.delete(rootCertFile);
Files.delete(intKeyFile);
Files.delete(intCertFile);
var bouncyCastleProvider = new BouncyCastleProvider();
CertificateChainFactory.createCertificateChain(endUserCertFile, endUserKeyFile, intCertFile, intKeyFile, rootCertFile, rootKeyFile, jettyServerPortNo, bouncyCastleProvider);
util = new TransportTestUtil();
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class SupportedStructTypesV2IT method setup.
@BeforeEach
public void setup(TestInfo testInfo) throws IOException {
server.setConfigure(withOptionalBoltEncryption());
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(new Neo4jPackV2());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltChannelAutoReadLimiterIT method setup.
@BeforeEach
public void setup(TestInfo testInfo) throws Exception {
server.setGraphDatabaseFactory(getTestGraphDatabaseFactory());
server.setConfigure(getSettingsFunction());
server.init(testInfo);
address = server.lookupDefaultConnector();
connection = new SocketConnection();
util = new TransportTestUtil();
installSleepProcedure(server.graphDatabaseService());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class BoltV3TransportBase method setUp.
@BeforeEach
public void setUp(TestInfo testInfo) throws IOException {
server.setConfigure(settings -> {
withOptionalBoltEncryption().accept(settings);
settings.put(FabricSettings.enabled_by_default, fabricEnabled());
});
server.init(testInfo);
address = server.lookupDefaultConnector();
util = new TransportTestUtil(newMessageEncoder());
}
use of org.neo4j.bolt.testing.TransportTestUtil in project neo4j by neo4j.
the class CertificatesIT method setup.
@BeforeAll
public static void setup() throws IOException, GeneralSecurityException, OperatorCreationException {
certFactory = new SelfSignedCertificateFactory();
keyFile = Files.createTempFile("key", "pem");
certFile = Files.createTempFile("key", "pem");
// make sure files are not there
Files.delete(keyFile);
Files.delete(certFile);
certFactory.createSelfSignedCertificate(certFile, keyFile, "my.domain");
util = new TransportTestUtil();
}
Aggregations