mirror of
https://github.com/google/nomulus
synced 2026-01-10 16:00:52 +00:00
Add reporting cron jobs to production
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173569808
This commit is contained in:
@@ -19,6 +19,7 @@ import static com.google.common.net.MediaType.PLAIN_TEXT_UTF_8;
|
||||
import static google.registry.reporting.IcannReportingModule.MANIFEST_FILE_NAME;
|
||||
import static google.registry.request.Action.Method.POST;
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
import static javax.servlet.http.HttpServletResponse.SC_OK;
|
||||
|
||||
import com.google.appengine.tools.cloudstorage.GcsFilename;
|
||||
import com.google.common.base.Splitter;
|
||||
@@ -99,6 +100,7 @@ public final class IcannReportingUploadAction implements Runnable {
|
||||
reportSummaryBuilder.put(reportFilename, success);
|
||||
}
|
||||
emailUploadResults(reportSummaryBuilder.build());
|
||||
response.setStatus(SC_OK);
|
||||
response.setContentType(PLAIN_TEXT_UTF_8);
|
||||
response.setPayload(
|
||||
String.format("OK, attempted uploading %d reports", manifestedFiles.size()));
|
||||
|
||||
Reference in New Issue
Block a user