コード例 #1
0
ファイル: st_read.py プロジェクト: eitanb/nfs-ganesha
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
ファイル: st_write.py プロジェクト: elasti-rans/pynfs
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")