Skip to content

Commit

Permalink
Revert "Disable functional tests as notifications to unblock rollback…
Browse files Browse the repository at this point in the history
… deploym…" (#4134)
  • Loading branch information
nitinprabhuhmcts authored Nov 12, 2024
1 parent 32f53af commit 91e7e60
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.regex.Pattern;
import junitparams.Parameters;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Timeout;
Expand Down Expand Up @@ -40,7 +39,6 @@ public void setUp() {
}

@Test
@Ignore
@Parameters({
"Appellant, 8620e023-f663-477e-a771-9cfad50ee30f, 446c7b23-7342-42e1-adff-b4c367e951cb, 1, 1, 1",
"Appointee, 8620e023-f663-477e-a771-9cfad50ee30f, 446c7b23-7342-42e1-adff-b4c367e951cb, 1, 1, 1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public void shouldSendDocmosisLetters(NotificationEventType notificationEventTyp
}

@Test
@Ignore
@Parameters(method = "expectedNumberOfLetters")
public void shouldSendCorrectNumberOfDocmosisLetters(NotificationEventType notificationEventType,
int expectedNumberOfLetters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.util.List;
import junitparams.Parameters;
import org.apache.commons.lang3.StringUtils;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;
import uk.gov.hmcts.reform.sscs.functional.tyanotifications.AbstractFunctionalTest;
Expand Down Expand Up @@ -39,7 +38,6 @@ public EvidenceReceivedFunctionalTest() {
}

@Test
@Ignore
@Parameters({"ORAL", "PAPER"})
public void givenEvidenceReceivedWithRepsSubscription_shouldSendNotificationToReps(AppealHearingType appealHearingType)
throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public void givenEventAndJointPartySubscription_shouldSendNotificationToJointPar
}

@Test
@Ignore
public void sendsDirectionIssuedProvideInformationLetterToAppellantRepresentativeAndJointParty() throws IOException, NotificationClientException {

NotificationEventType notificationEventType = NotificationEventType.DIRECTION_ISSUED;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ public NotificationsFunctionalTest() {
}

@Test
@Ignore
public void shouldSendEvidenceReceivedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_RECEIVED);

Expand All @@ -172,15 +171,13 @@ public void shouldSendEvidenceReceivedNotification() throws NotificationClientEx


@Test
@Ignore
public void shouldSendHearingPostponedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(POSTPONEMENT);

tryFetchNotificationsForTestCase(hearingPostponedEmailTemplateId);
}

@Test
@Ignore
public void shouldSendHearingAdjournedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(ADJOURNED);

Expand All @@ -191,23 +188,20 @@ public void shouldSendHearingAdjournedNotification() throws NotificationClientEx
}

@Test
@Ignore
public void shouldSendSubscriptionCreatedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(SUBSCRIPTION_CREATED);

tryFetchNotificationsForTestCase(subscriptionCreatedSmsTemplateId);
}

@Test
@Ignore
public void shouldSendSubscriptionUpdatedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(SUBSCRIPTION_UPDATED);

tryFetchNotificationsForTestCase(subscriptionUpdatedEmailTemplateId);
}

@Test
@Ignore
public void shouldSendAppealCreatedAppellantNotification() throws NotificationClientException, IOException {
simulateCcdCallback(SYA_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "Callback.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppellantEmailId, appealCreatedAppellantSmsId);
Expand All @@ -216,7 +210,6 @@ public void shouldSendAppealCreatedAppellantNotification() throws NotificationCl
}

@Test
@Ignore
public void shouldSendValidAppealCreatedAppellantNotification() throws NotificationClientException, IOException {
simulateCcdCallback(VALID_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "Callback.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppellantEmailId, appealCreatedAppellantSmsId);
Expand All @@ -225,7 +218,6 @@ public void shouldSendValidAppealCreatedAppellantNotification() throws Notificat
}

@Test
@Ignore
public void shouldSendAppealCreatedAppointeeNotification() throws NotificationClientException, IOException {
simulateCcdCallback(SYA_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "AppointeeCallback.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppointeeEmailId, appealCreatedAppointeeSmsId);
Expand All @@ -234,7 +226,6 @@ public void shouldSendAppealCreatedAppointeeNotification() throws NotificationCl
}

@Test
@Ignore
public void shouldSendValidAppealCreatedAppointeeNotification() throws NotificationClientException, IOException {
simulateCcdCallback(VALID_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "AppointeeCallback.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppointeeEmailId, appealCreatedAppointeeSmsId);
Expand All @@ -243,7 +234,6 @@ public void shouldSendValidAppealCreatedAppointeeNotification() throws Notificat
}

@Test
@Ignore
@Parameters({
"pip,judge\\, doctor and disability expert",
"esa,judge and a doctor",
Expand All @@ -266,7 +256,6 @@ public void shouldSendPaperDwpResponseReceivedNotification(final String benefit,
}

@Test
@Ignore
public void shouldNotSendPaperDwpResponseReceivedNotificationIfNotSubscribed() throws NotificationClientException, IOException {
simulateCcdCallback(DWP_RESPONSE_RECEIVED, BASE_PATH_TYAN + RESPONSE_RECEIVED_PAPER_PATH + "paper-no-subscriptions-"
+ DWP_RESPONSE_RECEIVED.getId() + "Callback.json");
Expand All @@ -278,7 +267,6 @@ public void shouldNotSendPaperDwpResponseReceivedNotificationIfNotSubscribed() t
}

@Test
@Ignore
public void shouldSendAppointeeEvidenceReminderForOralCaseNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_REMINDER,
BASE_PATH_TYAN + "appointee/oral-" + EVIDENCE_REMINDER.getId() + "Callback.json");
Expand All @@ -298,7 +286,6 @@ public void shouldSendAppointeeEvidenceReminderForOralCaseNotification() throws
}

@Test
@Ignore
public void shouldSendAppointeeEvidenceReminderForPaperCaseNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_REMINDER,
BASE_PATH_TYAN + "appointee/paper-" + EVIDENCE_REMINDER.getId() + "Callback.json");
Expand All @@ -318,7 +305,6 @@ public void shouldSendAppointeeEvidenceReminderForPaperCaseNotification() throws
}

@Test
@Ignore
public void shouldSendAppellantSubscriptionUpdateNotification() throws NotificationClientException, IOException {
simulateCcdCallback(SUBSCRIPTION_UPDATED,
BASE_PATH_TYAN + "appellant-" + SUBSCRIPTION_UPDATED.getId() + "Callback.json");
Expand All @@ -336,7 +322,6 @@ public void shouldSendAppellantSubscriptionUpdateNotification() throws Notificat
}

@Test
@Ignore
public void shouldSendAppointeeSubscriptionUpdateNotification() throws NotificationClientException, IOException {
simulateCcdCallback(SUBSCRIPTION_UPDATED,
BASE_PATH_TYAN + "appointee-" + SUBSCRIPTION_UPDATED.getId() + "Callback.json");
Expand All @@ -352,7 +337,6 @@ public void shouldSendAppointeeSubscriptionUpdateNotification() throws Notificat
}

@Test
@Ignore
public void shouldSendAppointeeEvidenceReceivedPaperNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_RECEIVED,
BASE_PATH_TYAN + "appointee/paper-" + EVIDENCE_RECEIVED.getId() + "Callback.json");
Expand All @@ -367,7 +351,6 @@ public void shouldSendAppointeeEvidenceReceivedPaperNotification() throws Notifi
}

@Test
@Ignore
public void shouldSendAppointeeHearingAdjournedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(ADJOURNED,
BASE_PATH_TYAN + "appointee/" + ADJOURNED.getId() + "Callback.json");
Expand All @@ -381,7 +364,6 @@ public void shouldSendAppointeeHearingAdjournedNotification() throws Notificatio
}

@Test
@Ignore
public void shouldSendAppointeeAppealLapsedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(APPEAL_LAPSED,
BASE_PATH_TYAN + "appointee/" + APPEAL_LAPSED.getId() + "Callback.json");
Expand All @@ -400,7 +382,6 @@ public void shouldSendAppointeeAppealLapsedNotification() throws NotificationCli
}

@Test
@Ignore
public void shouldSendAppointeeDwpAppealLapsedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(APPEAL_LAPSED,
BASE_PATH_TYAN + "appointee/dwpAppealLapsedCallback.json");
Expand All @@ -415,7 +396,6 @@ public void shouldSendAppointeeDwpAppealLapsedNotification() throws Notification
}

@Test
@Ignore
public void shouldSendAppointeeResponseReceivedForPaperCaseNotification() throws NotificationClientException, IOException {
simulateCcdCallback(DWP_RESPONSE_RECEIVED,
BASE_PATH_TYAN + "appointee/" + DWP_RESPONSE_RECEIVED.getId() + "Callback.json");
Expand Down Expand Up @@ -460,7 +440,6 @@ public void shouldSendAppointeeHearingBookedNotification() throws NotificationCl
}

@Test
@Ignore
public void shouldSendAppointeeEvidenceReceivedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_RECEIVED,
BASE_PATH_TYAN + "appointee/" + EVIDENCE_RECEIVED.getId() + "Callback.json");
Expand All @@ -471,7 +450,6 @@ public void shouldSendAppointeeEvidenceReceivedNotification() throws Notificatio
}

@Test
@Ignore
public void shouldSendAppointeeHearingPostponedNotification() throws NotificationClientException, IOException {
simulateCcdCallback(POSTPONEMENT,
BASE_PATH_TYAN + "appointee/" + POSTPONEMENT.getId() + "Callback.json");
Expand All @@ -483,7 +461,6 @@ public void shouldSendAppointeeHearingPostponedNotification() throws Notificatio
}

@Test
@Ignore
public void shouldSaveReasonableAdjustmentNotificationForAppellant() throws IOException, NotificationClientException {
simulateCcdCallback(APPEAL_RECEIVED, BASE_PATH_TYAN + APPEAL_RECEIVED.getId() + "AppellantReasonableAdjustmentCallback.json");

Expand All @@ -501,7 +478,6 @@ public void shouldSaveReasonableAdjustmentNotificationForAppellant() throws IOEx
}

@Test
@Ignore
public void shouldSaveReasonableAdjustmentNotificationForAppellantAndRep() throws IOException, NotificationClientException {
simulateCcdCallback(APPEAL_RECEIVED, BASE_PATH_TYAN + APPEAL_RECEIVED.getId() + "AppellantRepReasonableAdjustmentCallback.json");
delayInSeconds(10);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.List;
import junitparams.Parameters;
import junitparams.converters.Nullable;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Value;
import uk.gov.hmcts.reform.sscs.ccd.domain.SscsCaseData;
Expand Down Expand Up @@ -47,7 +46,6 @@ public OtherPartyFunctionalTest() {


@Test
@Ignore
@Parameters({"oral-,DWP_UPLOAD_RESPONSE, oralDwpUploadResponseJointPartySmsId, oralDwpUploadResponseOtherPartyEmailId"})
public void willSendDwpUploadResponse(@Nullable String prefix, NotificationEventType notificationEventType, String... fieldNames) throws Exception {

Expand All @@ -67,7 +65,6 @@ private String[] getFieldValue(String... fieldNames) {
}

@Test
@Ignore
@Parameters({
"ADJOURNED, 0, hearingAdjournedOtherPartyEmailTemplateId, hearingAdjournedOtherPartySmsTemplateId",
"POSTPONEMENT, 0, hearingPostponedOtherPartyEmailTemplateId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ public void setup() {
}

@Test
@Ignore
public void shouldSendEvidenceReceivedNotificationWelsh() throws NotificationClientException, IOException {
simulateWelshCcdCallback(EVIDENCE_RECEIVED);
tryFetchNotificationsForTestCase(
Expand All @@ -188,7 +187,6 @@ public void shouldSendEvidenceReceivedNotificationWelsh() throws NotificationCli
}

@Test
@Ignore
public void shouldSendPaperEvidenceReceivedNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_RECEIVED, BASE_PATH_TYAN + "paper-" + EVIDENCE_RECEIVED.getId() + "CallbackWelsh.json");
tryFetchNotificationsForTestCase(
Expand All @@ -200,7 +198,6 @@ public void shouldSendPaperEvidenceReceivedNotificationWelsh() throws Notificati


@Test
@Ignore
public void shouldSendHearingPostponedNotificationWelsh() throws NotificationClientException, IOException {
simulateWelshCcdCallback(POSTPONEMENT);

Expand All @@ -223,7 +220,6 @@ public void shouldSendHearingBookedNotificationWelsh() throws NotificationClient


@Test
@Ignore
public void shouldSendHearingAdjournedNotificationWelsh() throws NotificationClientException, IOException {
simulateWelshCcdCallback(ADJOURNED);

Expand All @@ -236,7 +232,6 @@ public void shouldSendHearingAdjournedNotificationWelsh() throws NotificationCli
}

@Test
@Ignore
public void shouldSendSubscriptionCreatedNotificationWelsh() throws NotificationClientException, IOException {

simulateWelshCcdCallback(SUBSCRIPTION_CREATED);
Expand All @@ -246,15 +241,13 @@ public void shouldSendSubscriptionCreatedNotificationWelsh() throws Notification


@Test
@Ignore
public void shouldSendSubscriptionUpdatedNotificationWelsh() throws NotificationClientException, IOException {
simulateWelshCcdCallback(SUBSCRIPTION_UPDATED);

tryFetchNotificationsForTestCase(subscriptionUpdatedEmailTemplateIdWelsh);
}

@Test
@Ignore
public void shouldSendAppealCreatedAppellantNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(SYA_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "CallbackWelsh.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppellantEmailIdWelsh, appealCreatedAppellantSmsIdWelsh);
Expand All @@ -264,7 +257,6 @@ public void shouldSendAppealCreatedAppellantNotificationWelsh() throws Notificat


@Test
@Ignore
public void shouldSendValidAppealCreatedAppellantNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(VALID_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "CallbackWelsh.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppellantEmailIdWelsh, appealCreatedAppellantSmsIdWelsh);
Expand All @@ -273,7 +265,6 @@ public void shouldSendValidAppealCreatedAppellantNotificationWelsh() throws Noti
}

@Test
@Ignore
public void shouldSendAppealCreatedAppointeeNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(SYA_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "AppointeeCallbackWelsh.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppointeeEmailIdWelsh, appealCreatedAppointeeSmsIdWelsh);
Expand All @@ -283,7 +274,6 @@ public void shouldSendAppealCreatedAppointeeNotificationWelsh() throws Notificat


@Test
@Ignore
public void shouldSendValidAppealCreatedAppointeeNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(VALID_APPEAL_CREATED, BASE_PATH_TYAN + SYA_APPEAL_CREATED.getId() + "AppointeeCallbackWelsh.json");
List<Notification> notifications = tryFetchNotificationsForTestCase(appealCreatedAppointeeEmailIdWelsh, appealCreatedAppointeeSmsIdWelsh);
Expand All @@ -292,7 +282,6 @@ public void shouldSendValidAppealCreatedAppointeeNotificationWelsh() throws Noti
}

@Test
@Ignore
public void shouldSendAppointeeEvidenceReminderForPaperCaseNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_REMINDER,
BASE_PATH_TYAN + "appointee/paper-" + EVIDENCE_REMINDER.getId() + "CallbackWelsh.json");
Expand All @@ -314,7 +303,6 @@ public void shouldSendAppointeeEvidenceReminderForPaperCaseNotification() throws
}

@Test
@Ignore
public void shouldSendPaperAppealDormantNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(APPEAL_DORMANT, BASE_PATH_TYAN + "paper-" + APPEAL_DORMANT.getId() + "CallbackWelsh.json");
tryFetchNotificationsForTestCase(
Expand All @@ -325,14 +313,12 @@ public void shouldSendPaperAppealDormantNotificationWelsh() throws NotificationC
}

@Test
@Ignore
public void shouldSendOralAppealDormantNotificationWelsh() throws NotificationClientException, IOException {
simulateCcdCallback(APPEAL_DORMANT, BASE_PATH_TYAN + "oral-" + APPEAL_DORMANT.getId() + "CallbackWelsh.json");
tryFetchNotificationsForTestCase(appealDormantOralJointPartyEmailTemplateIdWelsh, appealDormantOralAppellantEmailTemplateIdWelsh);
}

@Test
@Ignore
public void shouldSendAppealLapsedNotificationToAppointeeJointPartyAndRep() throws NotificationClientException, IOException {
simulateCcdCallback(APPEAL_LAPSED,
"tyanotifications/appointee/" + APPEAL_LAPSED.getId() + "CallbackWelsh.json");
Expand All @@ -356,7 +342,6 @@ public void shouldSendAppealLapsedNotificationToAppointeeJointPartyAndRep() thro
}

@Test
@Ignore
public void shouldSendAppointeeAppealWithdrawnNotification() throws NotificationClientException, IOException {
simulateCcdCallback(APPEAL_WITHDRAWN,
"tyanotifications/appointee/" + APPEAL_WITHDRAWN.getId() + "CallbackWelsh.json");
Expand All @@ -383,7 +368,6 @@ public void shouldSendAppointeeAppealWithdrawnNotification() throws Notification
}

@Test
@Ignore
public void shouldSendAppointeeEvidenceReminderForOralCaseNotification() throws NotificationClientException, IOException {
simulateCcdCallback(EVIDENCE_REMINDER,
"tyanotifications/appointee/oral-" + EVIDENCE_REMINDER.getId() + "CallbackWelsh.json");
Expand All @@ -405,7 +389,6 @@ public void shouldSendAppointeeEvidenceReminderForOralCaseNotification() throws
}

@Test
@Ignore
@Parameters(method = "docmosisTestSetup")
public void shouldSendDocmosisLettersViaGovNotify(NotificationEventType notificationEventType,
Optional<String> resourceParam,
Expand Down
Loading

0 comments on commit 91e7e60

Please sign in to comment.