def testBadStateid(t, env): """READ with bad stateid should return NFS4ERR_BAD_STATEID FLAGS: read badid all DEPEND: MKFILE CODE: RD9 """ c = env.c1 c.init_connection() fh, stateid = c.create_confirm(t.code) res = c.read_file(fh, stateid=makeBadID(stateid)) check(res, NFS4ERR_BAD_STATEID, "READ with bad stateid")
def testBadStateid(t, env): """WRITE with bad stateid should return NFS4ERR_BAD_STATEID FLAGS: write badid all DEPEND: MKFILE CODE: WRT10 """ c = env.c1 c.init_connection() fh, stateid = c.create_confirm(t.code) res = c.write_file(fh, _text, 0, makeBadID(stateid)) check(res, NFS4ERR_BAD_STATEID, "WRITE with bad stateid")