From 7bc10f9671b187cecc2be8f5c52f7b4a7272f9f0 Mon Sep 17 00:00:00 2001
From: vharseko <vharseko@3a-systems.ru>
Date: Fri, 22 Sep 2023 07:30:49 +0000
Subject: [PATCH] Allow store LDAP catalog data in CASSANDRA noSQL cluster --backendType cas (ldapv3 to cassandra) (#302)
---
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java b/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
index 3a42c32..5bfc227 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
@@ -1673,13 +1673,15 @@
appendStreamContent(logsContents, TestCaseUtils.getSystemOutContents(), "System.out");
appendStreamContent(logsContents, TestCaseUtils.getSystemErrContents(), "System.err");
- for (final File logFile : Arrays.asList(new File(paths.testInstanceRoot, "logs").listFiles())) {
- try {
- appendStreamContent(logsContents, readFile(logFile.getPath()), logFile.getPath());
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
+ if (new File(paths.testInstanceRoot, "logs").listFiles()!=null) {
+ for (final File logFile : Arrays.asList(new File(paths.testInstanceRoot, "logs").listFiles())) {
+ try {
+ appendStreamContent(logsContents, readFile(logFile.getPath()), logFile.getPath());
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+ }
}
private static void appendStreamContent(StringBuilder out, String content, String name)
--
Gitblit v1.10.0