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:
cgoldfeder
2016-05-13 17:41:18 -04:00
committed by Justine Tunney
parent 36ab6c15fe
commit 9ca191f3d4
4 changed files with 2 additions and 22 deletions
@@ -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;