예제 #1
0
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")
예제 #2
0
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")
예제 #3
0
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")
예제 #4
0
파일: st_read.py 프로젝트: mauser/pynfs
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")