This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 9a88aab46c NIFI-14456 Fixed Failing Unit Test in
DeleteBoxFileMetadataInstanceTest (#9875)
9a88aab46c is described below
commit 9a88aab46c81a97a005d65e606a51bf31d5583bc
Author: Noah <[email protected]>
AuthorDate: Fri Apr 11 09:29:53 2025 -0700
NIFI-14456 Fixed Failing Unit Test in DeleteBoxFileMetadataInstanceTest
(#9875)
Signed-off-by: David Handermann <[email protected]>
---
.../apache/nifi/processors/box/DeleteBoxFileMetadataInstanceTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/test/java/org/apache/nifi/processors/box/DeleteBoxFileMetadataInstanceTest.java
b/nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/test/java/org/apache/nifi/processors/box/DeleteBoxFileMetadataInstanceTest.java
index 08c3112f57..1bf016ec8c 100644
---
a/nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/test/java/org/apache/nifi/processors/box/DeleteBoxFileMetadataInstanceTest.java
+++
b/nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/test/java/org/apache/nifi/processors/box/DeleteBoxFileMetadataInstanceTest.java
@@ -84,7 +84,7 @@ public class DeleteBoxFileMetadataInstanceTest extends
AbstractBoxFileTest {
@Test
void testMetadataNotFound() {
- final BoxAPIResponseException mockException = new
BoxAPIResponseException("instance_not_found - Template not found", 404,
"instance_not_found", null);
+ final BoxAPIResponseException mockException = new
BoxAPIResponseException("Specified metadata template not found - Template not
found", 404, "Specified metadata template not found", null);
doThrow(mockException).when(mockBoxFile).deleteMetadata(TEMPLATE_KEY);
testRunner.enqueue("test content");
@@ -93,7 +93,7 @@ public class DeleteBoxFileMetadataInstanceTest extends
AbstractBoxFileTest {
testRunner.assertAllFlowFilesTransferred(DeleteBoxFileMetadataInstance.REL_TEMPLATE_NOT_FOUND,
1);
final MockFlowFile flowFile =
testRunner.getFlowFilesForRelationship(DeleteBoxFileMetadataInstance.REL_TEMPLATE_NOT_FOUND).getFirst();
flowFile.assertAttributeEquals(BoxFileAttributes.ERROR_CODE, "404");
- flowFile.assertAttributeEquals(BoxFileAttributes.ERROR_MESSAGE,
"instance_not_found - Template not found [404]");
+ flowFile.assertAttributeEquals(BoxFileAttributes.ERROR_MESSAGE,
"Specified metadata template not found - Template not found [404]");
}
@Test