mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add the ability to generate RDE deposits in lenient mode
We will not want to run this under normal circumstances, but in cases (such as PDT testing in sandbox) where it's desirable to generate an escrow deposit even if it isn't technically valid XML, this gives us that option. Manual-mode RDE generation is also changed so that, if no watermark date is specified, it defaults to the previous midnight, to better support running of RDE in sandbox to catch data problems. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156108295
This commit is contained in:
parent
e1f4df86bd
commit
74a0defef3
9 changed files with 101 additions and 33 deletions
|
@ -45,6 +45,7 @@ public final class RdeModule {
|
|||
public static final String PARAM_DIRECTORY = "directory";
|
||||
public static final String PARAM_MODE = "mode";
|
||||
public static final String PARAM_REVISION = "revision";
|
||||
public static final String PARAM_LENIENT = "lenient";
|
||||
|
||||
@Provides
|
||||
@Parameter(PARAM_WATERMARK)
|
||||
|
@ -82,6 +83,12 @@ public final class RdeModule {
|
|||
return extractOptionalIntParameter(req, PARAM_REVISION);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter(PARAM_LENIENT)
|
||||
static boolean provideLenient(HttpServletRequest req) {
|
||||
return extractBooleanParameter(req, PARAM_REVISION);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Named("brda")
|
||||
static Queue provideQueueBrda() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue