From fb427a7ee3624d4388c364a0eea1d92ccbfb0158 Mon Sep 17 00:00:00 2001 From: Parisa Tejari Date: Tue, 19 Nov 2024 15:42:33 +0100 Subject: [PATCH] update test file --- .../uio/ifi/localega/doa/LocalEGADOAApplicationTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/no/uio/ifi/localega/doa/LocalEGADOAApplicationTests.java b/src/test/java/no/uio/ifi/localega/doa/LocalEGADOAApplicationTests.java index aebad2a..fb886d9 100644 --- a/src/test/java/no/uio/ifi/localega/doa/LocalEGADOAApplicationTests.java +++ b/src/test/java/no/uio/ifi/localega/doa/LocalEGADOAApplicationTests.java @@ -53,10 +53,10 @@ public static void setup() { props.setProperty("password", "rootpasswd"); props.setProperty("ssl", "true"); props.setProperty("application_name", "LocalEGA"); - props.setProperty("sslmode", "verify-full"); - props.setProperty("sslrootcert", new File("test/rootCA.pem").getAbsolutePath()); + props.setProperty("sslmode", "require"); +// props.setProperty("sslrootcert", new File("test/rootCA.pem").getAbsolutePath()); props.setProperty("sslcert", new File("test/localhost-client.pem").getAbsolutePath()); - props.setProperty("sslkey", new File("test/localhost-client-key.der").getAbsolutePath()); +// props.setProperty("sslkey", new File("test/localhost-client-key.der").getAbsolutePath()); Connection connection = DriverManager.getConnection(url, props); PreparedStatement file = connection.prepareStatement("SELECT local_ega.insert_file('body.enc','requester@elixir-europe.org');"); file.executeQuery();