mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 12:31:08 +02:00
Always require acknowledgment of premium fees
This removes the configuration ability on both Registry and Registrar entities to allow operations on premium domains to succeed without acking the fees using the fee extension. We only ever used this ability during the minna launch, and it was a fiasco. We have no intention of ever allowing creation, renewal, transfer, restoring, etc. of premium domains without acking the fees ever again, and haven't done so since 2013, so removing this ability allows us to simplify our code, data model, and tests. Note that all TLDs in our production system currently require price ACKing anyway, so from an external partner perspective this commit is a noop. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=229423650
This commit is contained in:
parent
3e0eaecc9b
commit
37aa1d1815
33 changed files with 81 additions and 257 deletions
|
@ -312,28 +312,12 @@ public class UpdateRegistrarCommandTest extends CommandTestCase<UpdateRegistrarC
|
|||
assertThat(loadRegistrar("NewRegistrar").getBlockPremiumNames()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_premiumPriceAckRequired() throws Exception {
|
||||
assertThat(loadRegistrar("NewRegistrar").getPremiumPriceAckRequired()).isFalse();
|
||||
runCommandForced("--premium_price_ack_required=true", "NewRegistrar");
|
||||
assertThat(loadRegistrar("NewRegistrar").getPremiumPriceAckRequired()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_resetPremiumPriceAckRequired() throws Exception {
|
||||
persistResource(
|
||||
loadRegistrar("NewRegistrar").asBuilder().setPremiumPriceAckRequired(true).build());
|
||||
runCommandForced("--premium_price_ack_required=false", "NewRegistrar");
|
||||
assertThat(loadRegistrar("NewRegistrar").getPremiumPriceAckRequired()).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_unspecifiedBooleansArentChanged() throws Exception {
|
||||
persistResource(
|
||||
loadRegistrar("NewRegistrar")
|
||||
.asBuilder()
|
||||
.setBlockPremiumNames(true)
|
||||
.setPremiumPriceAckRequired(true)
|
||||
.setContactsRequireSyncing(true)
|
||||
.build());
|
||||
// Make some unrelated change where we don't specify the flags for the booleans.
|
||||
|
@ -341,7 +325,6 @@ public class UpdateRegistrarCommandTest extends CommandTestCase<UpdateRegistrarC
|
|||
// Make sure that the boolean fields didn't get reset back to false.
|
||||
Registrar reloadedRegistrar = loadRegistrar("NewRegistrar");
|
||||
assertThat(reloadedRegistrar.getBlockPremiumNames()).isTrue();
|
||||
assertThat(reloadedRegistrar.getPremiumPriceAckRequired()).isTrue();
|
||||
assertThat(reloadedRegistrar.getContactsRequireSyncing()).isTrue();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue