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
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.fs.Pathprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidsetupFS()voidTest that we throw an exception if there is no working snapshot directory when we attempt to 'complete' the snapshotvoidvoidvoidvoid
-
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
-