mirror of
https://github.com/google/nomulus
synced 2026-09-07 00:27:03 +00:00
Remove duplicate info from create/update reserved list command output (#2020)
It was repeating the domain label twice for every reserved list entry. It used to look like this: baddies=baddies,FULLY_BLOCKED
This commit is contained in:
@@ -190,8 +190,8 @@ class CreateReservedListCommandTest
|
||||
command.init();
|
||||
assertThat(command.prompt())
|
||||
.contains(
|
||||
"reservedListMap={baddies=baddies,FULLY_BLOCKED, "
|
||||
+ "ford=ford,FULLY_BLOCKED # random comment}");
|
||||
"reservedListMap=[(baddies,FULLY_BLOCKED), "
|
||||
+ "(ford,FULLY_BLOCKED # random comment)]");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -201,6 +201,6 @@ class CreateReservedListCommandTest
|
||||
CreateReservedListCommand command = new CreateReservedListCommand();
|
||||
command.input = tmpPath;
|
||||
command.init();
|
||||
assertThat(command.prompt()).contains("reservedListMap={}");
|
||||
assertThat(command.prompt()).contains("reservedListMap=[]");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,5 +130,8 @@ class UpdateReservedListCommandTest
|
||||
command.init();
|
||||
|
||||
assertThat(command.prompt()).contains("Update reserved list for xn--q9jyb4c_common-reserved?");
|
||||
assertThat(command.prompt()).contains("Old list: [(helicopter,FULLY_BLOCKED)]");
|
||||
assertThat(command.prompt())
|
||||
.contains("New list: [(baddies,FULLY_BLOCKED), (ford,FULLY_BLOCKED # random comment)]");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user