Commit c9657407 authored by Marc Burnie [AWS]'s avatar Marc Burnie [AWS]
Browse files

Merge branch 'enable-publishing-tag-status-events' into 'master'

re-enabling publishing of legal tag status change events

See merge request !255
parents bfed6892 95c93dca
Pipeline #119869 passed with stages
in 43 minutes and 52 seconds
......@@ -30,8 +30,7 @@ public class LegalTagStatusJob {
statusChangedTags = checkAndUpdateLegalTagStatus(true, tenantName, statusChangedTags);
statusChangedTags = checkAndUpdateLegalTagStatus(false, tenantName, statusChangedTags);
//TODO: Uncomment following event publishing method after this issue is resolved: https://community.opengroup.org/osdu/platform/system/storage/-/issues/117
//publishLegalTagStatusUpdateEvents(!statusChangedTags.getStatusChangedTags().isEmpty(), projectId, headers, statusChangedTags);
publishLegalTagStatusUpdateEvents(!statusChangedTags.getStatusChangedTags().isEmpty(), projectId, headers, statusChangedTags);
return statusChangedTags;
}
......
......@@ -89,7 +89,6 @@ public class LegalTagStatusJobTests {
assertEquals(LegalTagCompliance.incompliant, result.getStatusChangedTags().get(0).getChangedTagStatus());
}
@Ignore("https://community.opengroup.org/osdu/platform/system/storage/-/issues/117")
@Test
public void should_sendLegalTagNameAndNewStatusWithCorrelationIdToPubSub_when_legalTagBecomesIncompliant() throws
Exception {
......@@ -105,7 +104,6 @@ public class LegalTagStatusJobTests {
verify(messagePublisherMock, times(1)).publish(any(), any(), any());
}
@Ignore("https://community.opengroup.org/osdu/platform/system/storage/-/issues/117")
@Test
public void should_notSendMessageToPubSub_when_noLegalTagStatusHasChanged() throws Exception {
Collection<LegalTag> validLegalTags = new ArrayList<>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment