[PATCH 07/17] CLNT: test operation not in session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Mi Jinlong <mijinlong@xxxxxxxxxxxxxx>
---
 nfs4.1/server41tests/st_sequence.py |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/nfs4.1/server41tests/st_sequence.py b/nfs4.1/server41tests/st_sequence.py
index a5e344d..c6a5959 100644
--- a/nfs4.1/server41tests/st_sequence.py
+++ b/nfs4.1/server41tests/st_sequence.py
@@ -301,3 +301,16 @@ def testReplayCache007(t, env):
     res2 = sess1.compound(ops, seq_delta=0, cache_this=False)
     check(res2, NFS4ERR_RETRY_UNCACHED_REP)
 
+def testOpNotInSession(t, env):
+    """Operations other than SEQUENCE, BIND_CONN_TO_SESSION, EXCHANGE_ID,
+       CREATE_SESSION, and DESTROY_SESSION, MUST NOT appear as the
+       first operation in a COMPOUND. rfc5661 18.46.3
+
+    FLAGS: sequence all
+    CODE: SEQ11
+    """
+    c = env.c1.new_client(env.testname(t))
+
+    # putrootfh with out session
+    res = c.c.compound([op.putrootfh()])
+    check(res, NFS4ERR_OP_NOT_IN_SESSION)
-- 
1.7.4.1



--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux