Skip to contentSkip to conversation

4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status

PATCH Applied Andrew Elble 2 participants 2 messages Nov 1, 2017 – Nov 9, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 4.1 server tests: make DELEG8 also check that an operation using a revoked stateid returns revoked status

---
 nfs4.1/server41tests/st_delegation.py | 2 ++
 1 file changed, 2 insertions(+)
nfs4.1/server41tests/st_delegation.py +2 -0
index a5066926a89d..c5959f6cda84 100644
@@ -186,6 +186,8 @@ def testDelegRevocation(t, env):
         # depend on the above compound waiting no longer than the
         # server's lease period:
         res = sess1.compound([])
+    res = sess1.compound([op.putfh(fh), op.read(delegstateid, 0, 1000)])
+    check(res, NFS4ERR_DELEG_REVOKED, "Read with a revoked delegation")
     slot, seq_op = sess1._prepare_compound({})
     res = sess1.c.compound([seq_op])
     flags = res.resarray[0].sr_status_flags;
Signature · 1 line
2.10.1
#1 lore raw

Applied, thanks.--b.

Quoted 20 lines · Andrew Elble
---
 nfs4.1/server41tests/st_delegation.py | 2 ++
 1 file changed, 2 insertions(+)
nfs4.1/server41tests/st_delegation.py +2 -0
index a5066926a89d..c5959f6cda84 100644
@@ -186,6 +186,8 @@ def testDelegRevocation(t, env):
         # depend on the above compound waiting no longer than the
         # server's lease period:
         res = sess1.compound([])
+    res = sess1.compound([op.putfh(fh), op.read(delegstateid, 0, 1000)])
+    check(res, NFS4ERR_DELEG_REVOKED, "Read with a revoked delegation")
     slot, seq_op = sess1._prepare_compound({})
     res = sess1.c.compound([seq_op])
     flags = res.resarray[0].sr_status_flags;
Signature · 1 line
2.10.1