From c4202d784b71b4d6de700cc8f18483f0af399850 Mon Sep 17 00:00:00 2001 From: Jongyoul Lee Date: Wed, 7 Feb 2024 15:19:56 +0900 Subject: [PATCH] [HOTFIX] Check permission when updating cron information --- .../test/java/org/apache/zeppelin/notebook/NotebookTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NotebookTest.java b/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NotebookTest.java index dd3feb2f22b..e6927dddb0c 100644 --- a/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NotebookTest.java +++ b/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NotebookTest.java @@ -57,6 +57,7 @@ import java.io.FileWriter; import java.io.IOException; import java.nio.charset.StandardCharsets; +import java.nio.file.Files; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -111,6 +112,9 @@ public void setUp() throws Exception { schedulerService = new QuartzSchedulerService(conf, notebook); notebook.initNotebook(); notebook.waitForFinishInit(1, TimeUnit.MINUTES); + + // create empty shiro.ini file under confDir + Files.createFile(new File(confDir, "shiro.ini").toPath()); } @Override