コード例 #1
0
ファイル: st_write.py プロジェクト: grajoria/pynfs
def testBadStateidGanesha(t, env):
    """WRITE with bad stateid should return NFS4ERR_BAD_STATEID

    FLAGS: ganesha
    DEPEND: MKFILE
    CODE: WRT10g
    """
    c = env.c1
    c.init_connection()
    fh, stateid = c.create_confirm(t.code)
    res = c.write_file(fh, _text, 0, makeBadIDganesha(stateid))
    check(res, NFS4ERR_BAD_STATEID, "WRITE with bad stateid")
コード例 #2
0
def testBadStateidganesha(t, env):
    """LOCK should return NFS4ERR_BAD_STATEID if use a bad id

    FLAGS: ganesha
    DEPEND: MKFILE
    CODE: LOCK11g
    """
    c = env.c1
    c.init_connection()
    fh, stateid = c.create_confirm(t.code)
    res = c.lock_file(t.code, fh, makeBadIDganesha(stateid))
    check(res, NFS4ERR_BAD_STATEID, "LOCK with a bad stateid")
コード例 #3
0
ファイル: st_read.py プロジェクト: hamzy/git.linux-nfs.org
def testBadStateidGanesha(t, env):
    """READ with bad stateid should return NFS4ERR_BAD_STATEID

    FLAGS: ganesha
    DEPEND: MKFILE
    CODE: RD9g
    """
    c = env.c1
    c.init_connection()
    fh, stateid = c.create_confirm(t.code)
    res = c.read_file(fh, stateid=makeBadIDganesha(stateid))
    check(res, NFS4ERR_BAD_STATEID, "READ with bad stateid")
コード例 #4
0
ファイル: st_write.py プロジェクト: ajaynair/pynfs-1
def testBadStateidGanesha(t, env):
    """WRITE with bad stateid should return NFS4ERR_BAD_STATEID

    FLAGS: ganesha
    DEPEND: MKFILE
    CODE: WRT10g
    """
    c = env.c1
    c.init_connection()
    fh, stateid = c.create_confirm(t.code)
    res = c.write_file(fh, _text, 0, makeBadIDganesha(stateid))
    check(res, NFS4ERR_BAD_STATEID, "WRITE with bad stateid")
コード例 #5
0
def testBadStateidganesha(t, env):
    """LOCK should return NFS4ERR_BAD_STATEID if use a bad id

    FLAGS: ganesha
    DEPEND: MKFILE
    CODE: LOCK11g
    """
    c = env.c1
    c.init_connection()
    fh, stateid = c.create_confirm(t.code)
    res = c.lock_file(t.code, fh, makeBadIDganesha(stateid))
    check(res, NFS4ERR_BAD_STATEID, "LOCK with a bad stateid")