mirror of
https://github.com/google/nomulus
synced 2026-08-20 14:16:19 +00:00
Registry should not be a BackupGroupRoot
In [] I made Registry a BGR in prep for each Registry being in its own entity group. But we decided not to do that, and in [] mcilwain@ moved Registry under the cross-tld root. So there's no reason for Registry to implement BackupGroupRoot anymore. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=120402417
This commit is contained in:
committed by
Justine Tunney
parent
36ab6c15fe
commit
9ca191f3d4
@@ -30,7 +30,6 @@ import static org.joda.time.Duration.standardMinutes;
|
||||
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.google.common.collect.Range;
|
||||
import com.google.domain.registry.model.registry.Registry;
|
||||
import com.google.domain.registry.model.registry.Registry.TldState;
|
||||
import com.google.domain.registry.model.registry.label.PremiumList;
|
||||
@@ -63,22 +62,6 @@ public class UpdateTldCommandTest extends CommandTestCase<UpdateTldCommand> {
|
||||
createTld("xn--q9jyb4c");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_updateAutoTimestamp() throws Exception {
|
||||
Registry registry = Registry.get("xn--q9jyb4c");
|
||||
DateTime creationTime = registry.getCreationTime();
|
||||
assertThat(creationTime).isNotNull();
|
||||
assertThat(registry.getUpdateAutoTimestamp().getTimestamp()).isEqualTo(creationTime);
|
||||
|
||||
DateTime before = DateTime.now(UTC);
|
||||
runCommandForced("xn--q9jyb4c");
|
||||
DateTime after = DateTime.now(UTC);
|
||||
|
||||
registry = Registry.get("xn--q9jyb4c");
|
||||
assertThat(registry.getCreationTime()).isEqualTo(creationTime);
|
||||
assertThat(registry.getUpdateAutoTimestamp().getTimestamp()).isIn(Range.closed(before, after));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_tldStateTransitions() throws Exception {
|
||||
DateTime sunriseStart = now;
|
||||
|
||||
Reference in New Issue
Block a user