Package org.apache.hadoop.hbase.snapshot
Class TestSnapshotDescriptionUtils
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestSnapshotDescriptionUtils
Test that the
SnapshotProtos.SnapshotDescription
helper is helping correctly.-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
private static org.apache.hadoop.fs.Path
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
setupFS()
void
Test that we throw an exception if there is no working snapshot directory when we attempt to 'complete' the snapshotvoid
void
void
void
-
Field Details
-
CLASS_RULE
-
UTIL
-
fs
-
root
-
LOG
-
-
Constructor Details
-
TestSnapshotDescriptionUtils
public TestSnapshotDescriptionUtils()
-
-
Method Details
-
setupFS
- Throws:
Exception
-
cleanupFS
- Throws:
Exception
-
testValidateMissingTableName
- Throws:
IOException
-
testCompleteSnapshotWithNoSnapshotDirectoryFailure
Test that we throw an exception if there is no working snapshot directory when we attempt to 'complete' the snapshot- Throws:
Exception
- on failure
-
testIsSubDirectoryWorks
-
testIsWithinWorkingDir
- Throws:
IOException
-
testShouldSkipRenameSnapshotDirectories
-