mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Add plural DNS writers field to Registry entity
This is the first step in a multi-step data migration to allow multiple DNS writers per TLD. The overall process looks like this: 1. Add a plural DNS writers field with backfill (this commit). 2. Deploy it. 3. Run the ResaveEnvironmentEntitiesCommand to populate this new field on all entities. 4. Update the code to use the new field everywhere. 5. Deploy it. 6. Delete the now-unreferenced, old deprecated singular value field. This process is rollback-safe. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161253436
This commit is contained in:
parent
b39f368ea3
commit
4d5b6845b7
4 changed files with 38 additions and 0 deletions
|
@ -177,8 +177,11 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
|
|||
@Test
|
||||
public void testSuccess_dnsWriter() throws Exception {
|
||||
assertThat(Registry.get("xn--q9jyb4c").getDnsWriter()).isEqualTo("VoidDnsWriter");
|
||||
assertThat(Registry.get("xn--q9jyb4c").getDnsWriters()).containsExactly("VoidDnsWriter");
|
||||
|
||||
runCommandForced("--dns_writer=FooDnsWriter", "xn--q9jyb4c");
|
||||
assertThat(Registry.get("xn--q9jyb4c").getDnsWriter()).isEqualTo("FooDnsWriter");
|
||||
assertThat(Registry.get("xn--q9jyb4c").getDnsWriters()).containsExactly("FooDnsWriter");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue