Test file write/read, syncable, positioned read, seek and others for Crypto streams.
Crypto input and output streams implementing Hadoop stream interfaces
This test case is to verify basic functionality for crypto streams in HADOOP-10603.
1. Test crypto file writing with different buffer size.
2. Test crypto file reading with different buffer size.
3. Test hflush/hsync of crypto output stream, and with different buffer size.
4. Test positioned read of crypto file.
5. Test seek to different positions for crypto file.
6. Test get file position of crypto file.
7. Test skip operations for crypto file.
Refine TestHdfsCryptoStreams extends CryptoStreamsTestBase.
HDFS side test cases for Crypto streams.
Hi Yi, overall looks good, few small comments:
Andrew Wang, thanks for your good comments. I update the patch for them.
+1 thanks Yi, I committed this to the branch.