Skip to content

Commit

Permalink
updating DeleteRequestIntegrationTest class
Browse files Browse the repository at this point in the history
  • Loading branch information
azakrzewski-hy committed Dec 19, 2024
1 parent 1b1a8ad commit 576e8eb
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import org.junit.jupiter.api.Test;

import org.alfresco.hxi_connector.live_ingester.util.E2ETestBase;
import org.alfresco.hxi_connector.live_ingester.util.insight_api.HxInsightRequest;
import org.alfresco.hxi_connector.live_ingester.util.insight_api.RequestLoader;

@SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert")
class DeleteRequestIntegrationTest extends E2ETestBase
Expand Down Expand Up @@ -59,13 +61,7 @@ void testDeleteRequest()
containerSupport.raiseRepoEvent(repoEvent);

// then
String expectedBody = """
{
"objectId": "d71dd823-82c7-477c-8490-04cb0e826e65",
"sourceId" : "alfresco-dummy-source-id-0a63de491876",
"eventType": "delete",
"sourceTimestamp": 1611656982995
}""";
containerSupport.expectHxIngestMessageReceived(expectedBody);
HxInsightRequest request = RequestLoader.load("/expected-hxinsight-requests/delete-document-request.yml");
containerSupport.expectHxIngestMessageReceived(request.body());
}
}

0 comments on commit 576e8eb

Please sign in to comment.