Example #1
0
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")
Example #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")
Example #3
0
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")
Example #4
0
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")
Example #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")