Skip to content

Commit c9dfece

Browse files
committedMar 27, 2025
update relative path
1 parent e14d9d1 commit c9dfece

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,22 @@ tasks.withType(Test).configureEach {
101101

102102
tasks.register("generateCertificates", Exec) {
103103
description = "Generates SSL certificates to start a secured ESDB server"
104-
commandLine 'docker', 'compose', '--file', '../configure-tls-for-tests.yml', 'up'
104+
commandLine 'docker', 'compose', '--file', './configure-tls-for-tests.yml', 'up'
105105
}
106106

107107
tasks.register("generateUserCertificates", Exec) {
108108
description = "Generates X.509 certificates for Plugins tests"
109-
commandLine 'docker', 'compose', '--file', '../configure-user-certs-for-tests.yml', 'up'
109+
commandLine 'docker', 'compose', '--file', './configure-user-certs-for-tests.yml', 'up'
110110
}
111111

112112
tasks.register("startDockerCompose", Exec) {
113113
description = "Starts ESDB cluster"
114-
commandLine 'docker', 'compose', '--file', '../docker-compose.yml', 'up', '-d'
114+
commandLine 'docker', 'compose', '--file', './docker-compose.yml', 'up', '-d'
115115
}
116116

117117
tasks.register("stopDockerCompose", Exec) {
118118
description = "Stop ESDB cluster"
119-
commandLine 'docker', 'compose', '--file', '../docker-compose.yml', 'down'
119+
commandLine 'docker', 'compose', '--file', './docker-compose.yml', 'down'
120120
}
121121

122122

‎src/test/java/io/kurrent/dbclient/databases/DockerContainerDatabase.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public DockerContainerDatabase(Builder builder) {
7979

8080
if (builder.secure) {
8181
verifyCertificatesExist();
82-
String certsDir = Paths.get(System.getProperty("user.dir"), "..", "certs").toAbsolutePath().toString();
82+
String certsDir = Paths.get(System.getProperty("user.dir"), "certs").toAbsolutePath().toString();
8383

8484
withEnv("EVENTSTORE_CERTIFICATE_FILE", "/etc/eventstore/certs/node/node.crt");
8585
withEnv("EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE", "/etc/eventstore/certs/node/node.key");
@@ -154,7 +154,7 @@ private static void verifyCertificatesExist() {
154154
};
155155

156156
for (String[] strings : files) {
157-
File file = Paths.get(currentDir, "..", "certs", strings[0], strings[1]).toAbsolutePath().toFile();
157+
File file = Paths.get(currentDir, "certs", strings[0], strings[1]).toAbsolutePath().toFile();
158158

159159
if (!file.exists())
160160
throw new RuntimeException(new FileNotFoundException(file.getAbsolutePath()));

‎src/test/java/io/kurrent/dbclient/plugins/ClientCertificateAuthenticationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static String userKey(String user) {
3030
}
3131

3232
static String buildCertPath(String user, String extension) {
33-
String certsPath = Paths.get(System.getProperty("user.dir"), "..", "certs").toAbsolutePath().toString();
33+
String certsPath = Paths.get(System.getProperty("user.dir"), "certs").toAbsolutePath().toString();
3434
return String.format("%s/user-%s/user-%s.%s", certsPath, user, user, extension);
3535
}
3636
}

0 commit comments

Comments
 (0)