mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Clean up and consolidate some unused queues
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136170276
This commit is contained in:
parent
e6ba5687b1
commit
6636e02d57
10 changed files with 23 additions and 41 deletions
|
@ -51,6 +51,7 @@ public class DatastoreBackupServiceTest {
|
|||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder()
|
||||
.withDatastore()
|
||||
.withTaskQueue()
|
||||
.build();
|
||||
|
||||
@Mock
|
||||
|
@ -84,8 +85,8 @@ public class DatastoreBackupServiceTest {
|
|||
@Test
|
||||
public void testSuccess_launchBackup() throws Exception {
|
||||
backupService.launchNewBackup(
|
||||
"default", "backup1", "somebucket", ImmutableSet.of("foo", "bar"));
|
||||
assertTasksEnqueued("default",
|
||||
"export-snapshot", "backup1", "somebucket", ImmutableSet.of("foo", "bar"));
|
||||
assertTasksEnqueued("export-snapshot",
|
||||
new TaskMatcher()
|
||||
.url("/_ah/datastore_admin/backup.create")
|
||||
.header("Host", "ah-builtin-python-bundle.default.localhost")
|
||||
|
@ -93,7 +94,7 @@ public class DatastoreBackupServiceTest {
|
|||
.param("name", "backup1_")
|
||||
.param("filesystem", "gs")
|
||||
.param("gs_bucket_name", "somebucket")
|
||||
.param("queue", "default")
|
||||
.param("queue", "export-snapshot")
|
||||
.param("kind", "foo")
|
||||
.param("kind", "bar"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue