diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2015-08-24 18:01:19 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2015-09-01 01:47:57 -0700 |
commit | 4386c7a504273663ca47126673454a74c5ad97a6 (patch) | |
tree | 046b1df8476545049a797fd626f3c364c5f224b2 /tests/basic | |
parent | eb33931e4f7f57af87e307d36baba5084cd97da8 (diff) |
tests : workaround for the spurious failure in mount-nfs-auth.t
Backport of http://review.gluster.org/#/c/12006/
Upstream reference :
>Change-Id: I459a0c60743291a2e164a5e0a76a7e2577afdae0
>BUG: 1256352
>Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
>Reviewed-on: http://review.gluster.org/12006
>Reviewed-by: Niels de Vos <ndevos@redhat.com>
>Tested-by: NetBSD Build System <jenkins@build.gluster.org>
>Tested-by: Gluster Build System <jenkins@build.gluster.com>
>cherry-picked as 9f52d22690b3b0aac0a736eb15fe649fde6286b5
Change-Id: I82ab11692e84e13ae94623d38610e05c21fc4dbe
BUG: 1258717
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Reviewed-on: http://review.gluster.org/12071
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/basic')
-rwxr-xr-x | tests/basic/mount-nfs-auth.t | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/basic/mount-nfs-auth.t b/tests/basic/mount-nfs-auth.t index fcb41e8e35b..eb373731adb 100755 --- a/tests/basic/mount-nfs-auth.t +++ b/tests/basic/mount-nfs-auth.t @@ -245,8 +245,12 @@ EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" umount_nfs $N0 TEST export_allow_this_host_ro TEST netgroup_deny_this_host -EXPECT "Y" check_mount_success $V0 -EXPECT_WITHIN $AUTH_REFRESH_INTERVAL "N" small_write # Writes should not be allowed +## Restart the nfs server to avoid spurious failure(BZ1256352) +$CLI vol stop $V0 +$CLI vol start $V0 + +EXPECT_WITHIN $AUTH_REFRESH_INTERVAL "Y" check_mount_success $V0 +EXPECT "N" small_write # Writes should not be allowed TEST ! create # Create should not be allowed TEST stat_nfs # Stat should be allowed EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" umount_nfs $N0 |