This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 293bb82ca6a (chores) camel-file: avoid using a restricted directory
293bb82ca6a is described below
commit 293bb82ca6a96448de69cc71b8d36fcd0e7a0e3c
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon May 13 09:58:35 2024 +0200
(chores) camel-file: avoid using a restricted directory
Try to avoid using a path that may have different permissions, which tends
to lead to failures in CI environments
---
.../org/apache/camel/component/file/FileProducerExpressionTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/camel-core/src/test/java/org/apache/camel/component/file/FileProducerExpressionTest.java
b/core/camel-core/src/test/java/org/apache/camel/component/file/FileProducerExpressionTest.java
index 1f680ef1fec..3d453358436 100644
---
a/core/camel-core/src/test/java/org/apache/camel/component/file/FileProducerExpressionTest.java
+++
b/core/camel-core/src/test/java/org/apache/camel/component/file/FileProducerExpressionTest.java
@@ -73,11 +73,11 @@ public class FileProducerExpressionTest extends
ContextTestSupport {
@Test
public void testProducerComplexByExpression() {
- String expression =
"../filelanguageinbox/myfile-${bean:myguidgenerator.guid}-${date:now:yyyyMMdd}.txt";
+ String expression =
"target/filelanguageinbox/myfile-${bean:myguidgenerator.guid}-${date:now:yyyyMMdd}.txt";
template.sendBody(fileUri("?jailStartingDirectory=false&fileName=" +
expression), "Hello World");
String date = new SimpleDateFormat("yyyyMMdd").format(new Date());
- assertFileExists(testFile("../filelanguageinbox/myfile-123-" + date +
".txt"));
+ assertFileExists(testFile("target/filelanguageinbox/myfile-123-" +
date + ".txt"));
}
@Test