mirror of
https://github.com/google/nomulus.git
synced 2025-05-20 11:19:35 +02:00
Finish YAMLification of last necessary config values
There are still some options in RegistryConfig that can't be configured in YAML, but it's not clear why anyone would need to change them from their default values. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146482435
This commit is contained in:
parent
4031988409
commit
61230b035c
12 changed files with 92 additions and 60 deletions
|
@ -15,7 +15,6 @@
|
|||
package google.registry.export;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static google.registry.config.RegistryConfig.LocalTestConfig.RESERVED_TERMS_TEST_EXPORT_DISCLAIMER;
|
||||
import static google.registry.testing.DatastoreHelper.createTld;
|
||||
import static google.registry.testing.DatastoreHelper.persistReservedList;
|
||||
import static google.registry.testing.DatastoreHelper.persistResource;
|
||||
|
@ -57,9 +56,7 @@ public class ExportUtilsTest {
|
|||
createTld("tld");
|
||||
persistResource(Registry.get("tld").asBuilder().setReservedLists(rl1, rl2, rl3).build());
|
||||
// Should not contain jimmy, tine, or oval.
|
||||
assertThat(
|
||||
new ExportUtils(RESERVED_TERMS_TEST_EXPORT_DISCLAIMER)
|
||||
.exportReservedTerms(Registry.get("tld")))
|
||||
assertThat(new ExportUtils("This is a disclaimer.\n").exportReservedTerms(Registry.get("tld")))
|
||||
.isEqualTo("This is a disclaimer.\ncat\nlol\nsnow\n");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue