mirror of
https://github.com/google/nomulus.git
synced 2025-08-03 00:12:11 +02:00
Deploy spec11 reporting to production
This turns on spec11 reporting in production by adding it to the cron.xml, generating the report and sending an e-mail with a list of all problematic registrations to the associated registrar on the 2nd of each month at 15:00Z (11am EST) This also tweaks the e-mail template a bit according to suggestions from Bruno. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=213031440
This commit is contained in:
parent
cdcd5c2a0e
commit
f36c72cca0
5 changed files with 49 additions and 21 deletions
|
@ -83,7 +83,10 @@ public class PublishSpec11ReportActionTest {
|
|||
expectedJob.setCurrentState("JOB_STATE_FAILED");
|
||||
publishAction.run();
|
||||
assertThat(response.getStatus()).isEqualTo(SC_NO_CONTENT);
|
||||
verify(emailUtils).sendFailureAlertEmail("Spec11 2018-06 job 12345 ended in status failure.");
|
||||
verify(emailUtils)
|
||||
.sendAlertEmail(
|
||||
"Spec11 Dataflow Pipeline Failure 2018-06",
|
||||
"Spec11 2018-06 job 12345 ended in status failure.");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -102,6 +105,8 @@ public class PublishSpec11ReportActionTest {
|
|||
assertThat(response.getContentType()).isEqualTo(MediaType.PLAIN_TEXT_UTF_8);
|
||||
assertThat(response.getPayload()).isEqualTo("Template launch failed: expected");
|
||||
verify(emailUtils)
|
||||
.sendFailureAlertEmail("Spec11 2018-06 publish action failed due to expected");
|
||||
.sendAlertEmail(
|
||||
"Spec11 Publish Failure 2018-06",
|
||||
"Spec11 2018-06 publish action failed due to expected");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue