http://www.linux-nfs.org/wiki/index.php?title=Nfs-utils_unit_tests&feed=atom&action=historyNfs-utils unit tests - Revision history2024-03-28T14:00:31ZRevision history for this page on the wikiMediaWiki 1.16.5http://www.linux-nfs.org/wiki/index.php?title=Nfs-utils_unit_tests&diff=2875&oldid=prevChucklever: Use chroot to protect SUT's /etc/fstab and /etc/mtab2007-08-15T21:43:02Z<p>Use chroot to protect SUT's /etc/fstab and /etc/mtab</p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:43, 15 August 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* The mount should be done in a chroot jail so it doesn't disturb the system's real /etc/fstab and /etc/mtab. In addition we can fix the contents of both files and thus test the side-effects of our test mounts more easily.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Unit tests can also act as regression tests for distributors.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Unit tests can also act as regression tests for distributors.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* These tests document how the NFS utilities need to behave in the presence of varying network conditions. As we modify existing tools and provide new ones, we will need to understand the operational requirements and history before implementing any changes.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* These tests document how the NFS utilities need to behave in the presence of varying network conditions. As we modify existing tools and provide new ones, we will need to understand the operational requirements and history before implementing any changes.</div></td></tr>
</table>Chuckleverhttp://www.linux-nfs.org/wiki/index.php?title=Nfs-utils_unit_tests&diff=2847&oldid=prevChucklever at 21:40, 7 August 20072007-08-07T21:40:41Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 21:40, 7 August 2007</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* Unit tests can also act as regression tests for distributors.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">* These tests document how the NFS utilities need to behave in the presence of varying network conditions. As we modify existing tools and provide new ones, we will need to understand the operational requirements and history before implementing any changes.</ins></div></td></tr>
</table>Chuckleverhttp://www.linux-nfs.org/wiki/index.php?title=Nfs-utils_unit_tests&diff=2845&oldid=prevChucklever: Add details about the nfs-utils unit test project2007-08-07T21:37:08Z<p>Add details about the nfs-utils unit test project</p>
<p><b>New page</b></p><div>Add unit test infrastructure to nfs-utils<br />
<br />
* For an example, see the t/ directory in the git source repository. I don't think these scripts are original to git.<br />
* Separate infrastructure can be used to test the mount commands, the exportfs command, and rpc.mountd, in order to break the project up into smaller bite-size chunks.<br />
* By setting up an NFS client and server on the same host, the unit test scripts can easily manipulate both sides of the traffic, and apply iptables filters as needed to emulate typical firewall configurations.</div>Chucklever