def testReplayCache005(t, env): """Send two unsupported compounds with same seqid FLAGS: sequence all CODE: SEQ9e """ c1 = env.c1.new_client(env.testname(t)) sess1 = c1.create_session() res1 = sess1.compound([op.illegal()], cache_this=True) check(res1, NFS4ERR_OP_ILLEGAL) res2 = sess1.compound([op.illegal()], seq_delta=0) check(res2, NFS4ERR_OP_ILLEGAL) res1.tag = res2.tag = "" if not nfs4lib.test_equal(res1, res2): fail("Replay results not equal")
def testInvalidMinor2(t, env): """COMPOUND with invalid minor version returns NFS4ERR_MINOR_VERS_MISMATCH even if using illegal opcode (rfc 5661 p. 399) FLAGS: compound all CODE: COMP4b """ c = env.c1 res = c.compound([op.illegal()], version=50) check(res, NFS4ERR_MINOR_VERS_MISMATCH) if res.resarray: t.fail("Nonempty result array after NFS4ERR_MINOR_VERS_MISMATCH")
def testInvalidMinor2(t, env): """COMPOUND with invalid minor version returns NFS4ERR_MINOR_VERS_MISMATCH even if using illegal opcode FLAGS: compound all CODE: COMP4b """ c = env.c1 res = c.compound([op.illegal()], version=50) check(res, NFS4ERR_MINOR_VERS_MISMATCH) if res.resarray: t.fail("Nonempty result array after NFS4ERR_MINOR_VERS_MISMATCH")