1
2
3
4
5
6
7
8
9
10
11
12 package org.apache.hadoop.hbase.backup;
13
14 import static org.junit.Assert.assertTrue;
15
16 import org.apache.commons.logging.Log;
17 import org.apache.commons.logging.LogFactory;
18 import org.apache.hadoop.hbase.testclassification.LargeTests;
19 import org.junit.Test;
20 import org.junit.experimental.categories.Category;
21
22 import com.google.common.collect.Lists;
23
24 @Category(LargeTests.class)
25 public class TestRemoteBackup extends TestBackupBase {
26
27 private static final Log LOG = LogFactory.getLog(TestRemoteBackup.class);
28
29
30
31
32
33 @Test
34 public void testFullBackupRemote() throws Exception {
35
36 LOG.info("test remote full backup on a single table");
37
38 String backupId = backupTables(BackupType.FULL,
39 Lists.newArrayList(table1), BACKUP_REMOTE_ROOT_DIR);
40 assertTrue(checkSucceeded(backupId));
41
42 LOG.info("backup complete " + backupId);
43 }
44
45 }