mirror of
https://github.com/google/nomulus.git
synced 2025-08-16 22:44:06 +02:00
Enforce currency consistency for server status billing cost
Also adds tests for currency consistency for other costs, and cleans up some of the testing for negative currencies (since I was there). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=120231198
This commit is contained in:
parent
c5d09227c5
commit
706f3b44ed
9 changed files with 59 additions and 15 deletions
|
@ -215,11 +215,13 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
|
|||
.setRestoreBillingCost(Money.ofMajor(JPY, 1))
|
||||
.setRenewBillingCostTransitions(
|
||||
ImmutableSortedMap.of(START_OF_TIME, Money.ofMajor(JPY, 1)))
|
||||
.setServerStatusChangeBillingCost(Money.ofMajor(JPY, 1))
|
||||
.build());
|
||||
runCommandForced(
|
||||
"--create_billing_cost=\"JPY 12345\"",
|
||||
"--restore_billing_cost=\"JPY 67890\"",
|
||||
"--renew_billing_cost_transitions=\"0=JPY 101112\"",
|
||||
"--server_status_change_cost=\"JPY 97865\"",
|
||||
"xn--q9jyb4c");
|
||||
assertThat(Registry.get("xn--q9jyb4c").getStandardCreateCost())
|
||||
.isEqualTo(Money.ofMajor(JPY, 12345));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue