[
https://issues.apache.org/jira/browse/HDFS-5135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14099246#comment-14099246
]
Brandon Li commented on HDFS-5135:
----------------------------------
Most of the current unit NFS tests are not end-to-end tests, which means they
directly invoke the internal methods like what's in TestReaddir. In this way,
some funcation/feature can't be covered. For example, we can't validate the
response format. This has to be validated by mounting the export and doing
manual test on Linux. We found quite a few response format problems in the
past, in a painful way, because we don't have enough end to end tests.
TestOutOfOrderWrite is an end-to-end test but it doesn't provide a framework or
class to be used by other tests.
Specifcally, we need a few things. We may want to create more JIRAs to split
the work:
1. utilities to package every NFS/mountd requests
2. utilityes to parse every NFS/mountd response
3. a test UDP client and TCP client, which can deliver request to NFS and get
response.
Once we have these utilities, we can create tests easily. For example, one
could easily write some tests like:
1. send create request
2. assert response status is OK
3. send same create request
4. assert response status is not OK
... ...
> Create a test framework to enable NFS end to end unit test
> ----------------------------------------------------------
>
> Key: HDFS-5135
> URL: https://issues.apache.org/jira/browse/HDFS-5135
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: nfs
> Affects Versions: 2.2.0
> Reporter: Brandon Li
> Assignee: Zhe Zhang
>
> Currently, we have to manually start portmap and nfs3 processes to test patch
> and new functionalities. This JIRA is to track the effort to introduce a test
> framework to NFS unit test without starting standalone nfs3 processes.
--
This message was sent by Atlassian JIRA
(v6.2#6252)