mirror of
https://github.com/google/nomulus
synced 2026-01-10 07:57:58 +00:00
Allow multiple DNS writers on TLDs
This completes the data/functionality migration for multiple DNS writers. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163835077
This commit is contained in:
@@ -183,9 +183,12 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFailure_multipleDnsWritersNotYetSupported() throws Exception {
|
||||
thrown.expect(IllegalArgumentException.class, "Multiple DNS writers are not yet supported");
|
||||
public void testSuccess_multipleDnsWriters() throws Exception {
|
||||
assertThat(Registry.get("xn--q9jyb4c").getDnsWriters()).containsExactly("VoidDnsWriter");
|
||||
|
||||
runCommandForced("--dns_writers=FooDnsWriter,VoidDnsWriter", "xn--q9jyb4c");
|
||||
assertThat(Registry.get("xn--q9jyb4c").getDnsWriters())
|
||||
.containsExactly("FooDnsWriter", "VoidDnsWriter");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user