mirror of
https://github.com/google/nomulus.git
synced 2025-08-02 16:02:10 +02:00
Add @VirtualEntity checking to Ofy's deleteWithoutBackup()
This was an oversight I noticed ages ago, so resurrecting some old local changes I had to correct it. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146812322
This commit is contained in:
parent
d2bc569b4b
commit
5d4a88e5ce
7 changed files with 78 additions and 12 deletions
|
@ -29,7 +29,6 @@ import com.google.appengine.tools.cloudstorage.GcsService;
|
|||
import com.google.appengine.tools.cloudstorage.GcsServiceFactory;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.googlecode.objectify.Key;
|
||||
import com.googlecode.objectify.ObjectifyService;
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.ofy.CommitLogBucket;
|
||||
import google.registry.model.ofy.CommitLogCheckpoint;
|
||||
|
@ -65,7 +64,6 @@ public class ExportCommitLogDiffActionTest {
|
|||
|
||||
@Before
|
||||
public void before() {
|
||||
ObjectifyService.register(TestObject.class);
|
||||
task.gcsService = gcsService;
|
||||
task.gcsBucket = "gcs bucket";
|
||||
task.batchSize = 5;
|
||||
|
|
|
@ -31,9 +31,7 @@ import com.google.appengine.tools.cloudstorage.ListItem;
|
|||
import com.google.appengine.tools.cloudstorage.ListResult;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Iterators;
|
||||
import com.googlecode.objectify.ObjectifyService;
|
||||
import google.registry.testing.AppEngineRule;
|
||||
import google.registry.testing.TestObject;
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
||||
import java.nio.ByteBuffer;
|
||||
|
@ -64,7 +62,6 @@ public class GcsDiffFileListerTest {
|
|||
|
||||
@Before
|
||||
public void before() throws Exception {
|
||||
ObjectifyService.register(TestObject.class);
|
||||
diffLister.gcsService = gcsService;
|
||||
diffLister.gcsBucket = GCS_BUCKET;
|
||||
diffLister.executor = newDirectExecutorService();
|
||||
|
|
|
@ -39,7 +39,6 @@ import com.google.common.collect.ImmutableSet;
|
|||
import com.google.common.collect.Lists;
|
||||
import com.google.common.primitives.Longs;
|
||||
import com.googlecode.objectify.Key;
|
||||
import com.googlecode.objectify.ObjectifyService;
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.ofy.CommitLogBucket;
|
||||
import google.registry.model.ofy.CommitLogCheckpoint;
|
||||
|
@ -81,7 +80,6 @@ public class RestoreCommitLogsActionTest {
|
|||
|
||||
@Before
|
||||
public void init() {
|
||||
ObjectifyService.register(TestObject.class);
|
||||
action.gcsService = gcsService;
|
||||
action.dryRun = false;
|
||||
action.datastoreService = DatastoreServiceFactory.getDatastoreService();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue