[
https://issues.apache.org/jira/browse/HDFS-6619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Wang updated HDFS-6619:
------------------------------
Attachment: hdfs-6619.001.patch
Patch attached. High level sketch of changes:
- TestHDFSEncryption wasn't testing anything beyond normal stream operations,
which are already tested in a number of other HDFS tests. I removed this file
entirely.
- Renamed TestEncryptionZonesAPI to TestEncryptionZones
- The FileContext test extending TestEncryptionZonesAPI was running all the
inherited tests again, when all it wanted was to run that one rename test. I
folded that one test into TestEncryptionZones.
- I combined a bunch of small test cases into a single test case to save on
minicluster invocations.
I'd like to see us extend some of the existing stream tests to operate on
encryption zones to capture the intent of TestHdfsEncryption, but let's do that
in a different JIRA. There are probably also some more tests that could be
written for HDFS-6474 as well.
> Clean up encryption-related tests
> ---------------------------------
>
> Key: HDFS-6619
> URL: https://issues.apache.org/jira/browse/HDFS-6619
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: test
> Reporter: Andrew Wang
> Assignee: Andrew Wang
> Priority: Minor
> Attachments: hdfs-6619.001.patch
>
>
> Would be good to clean up TestHDFSEncryption and TestEncryptionZonesAPI.
> These tests could be renamed, test timeouts added/adjusted, reduced number of
> minicluster start/stops, whitespace, etc.
--
This message was sent by Atlassian JIRA
(v6.2#6252)