1
0
mirror of https://github.com/google/nomulus synced 2026-04-26 03:00:48 +00:00

Add a dryrun flag to configure_tld command (#2188)

This will be used for presubmit testing.
This commit is contained in:
sarahcaseybot
2023-10-20 16:16:05 -04:00
committed by GitHub
parent 16e5018489
commit 8f8ffe7020
2 changed files with 28 additions and 0 deletions

View File

@@ -71,6 +71,11 @@ public class ConfigureTldCommand extends MutatingCommand {
+ " configuration in the database.")
boolean breakglass;
@Parameter(
names = {"-d", "--dryrun"},
description = "Does not execute the entity mutation")
boolean dryrun;
@Inject ObjectMapper mapper;
@Inject
@@ -126,6 +131,9 @@ public class ConfigureTldCommand extends MutatingCommand {
@Override
protected boolean dontRunCommand() {
if (dryrun) {
return true;
}
if (!newDiff) {
if (oldTldInBreakglass && !breakglass) {
// Run command to remove breakglass mode