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:
Ben McIlwain
2023-05-03 17:31:23 -04:00
committed by GitHub
parent 61ab29ae9e
commit 14d245b1e3
5 changed files with 21 additions and 20 deletions
@@ -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)]");
}
}