mirror of
https://github.com/google/nomulus.git
synced 2025-05-17 17:59:41 +02:00
Add --reason flag to UpdateSmdCommand
Just an old patch that I had lying around and never mailed out. Seemed like it could be worth having checked in. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124853504
This commit is contained in:
parent
cc01035fe8
commit
9a2b88ee28
2 changed files with 13 additions and 4 deletions
|
@ -77,7 +77,7 @@ public class UpdateSmdCommandTest extends CommandTestCase<UpdateSmdCommand> {
|
|||
public void testSuccess() throws Exception {
|
||||
DateTime before = new DateTime(UTC);
|
||||
String smdFile = writeToTmpFile(ACTIVE_SMD);
|
||||
runCommand("--id=2-Q9JYB4C", "--smd=" + smdFile);
|
||||
runCommand("--id=2-Q9JYB4C", "--smd=" + smdFile, "--reason=testing");
|
||||
|
||||
EncodedSignedMark encodedSignedMark = TmchData.readEncodedSignedMark(ACTIVE_SMD);
|
||||
assertAboutApplications().that(reloadDomainApplication())
|
||||
|
@ -86,7 +86,9 @@ public class UpdateSmdCommandTest extends CommandTestCase<UpdateSmdCommand> {
|
|||
.hasLastEppUpdateClientId("TheRegistrar").and()
|
||||
.hasOnlyOneHistoryEntryWhich()
|
||||
.hasType(HistoryEntry.Type.DOMAIN_APPLICATION_UPDATE).and()
|
||||
.hasClientId("TheRegistrar");
|
||||
.hasClientId("TheRegistrar").and()
|
||||
.hasMetadataReason("UpdateSmdCommand: testing").and()
|
||||
.hasNoXml();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue