[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-nfs
Subject: [pynfs python3 5/7] st_flex: Test is now redundant
From: Tom Haynes <loghyr () gmail ! com>
Date: 2020-12-19 18:29:46
Message-ID: 20201219182948.83000-6-loghyr () hammerspace ! com
[Download RAW message or body]
From: Tom Haynes <loghyr@excfb.com>
Signed-off-by: Tom Haynes <loghyr@excfb.com>
---
nfs4.1/server41tests/st_flex.py | 28 ----------------------------
1 file changed, 28 deletions(-)
diff --git a/nfs4.1/server41tests/st_flex.py b/nfs4.1/server41tests/st_flex.py
index 80f5a85..3aae441 100644
--- a/nfs4.1/server41tests/st_flex.py
+++ b/nfs4.1/server41tests/st_flex.py
@@ -59,39 +59,11 @@ def testStateid1(t, env):
res = close_file(sess, fh, stateid=open_stateid)
check(res)
-def testFlexGetLayout(t, env):
- """Verify layout handling
-
- FLAGS: flex
- CODE: FFGLO1
- """
- sess = env.c1.new_pnfs_client_session(env.testname(t))
- # Create the file
- res = create_file(sess, env.testname(t))
- check(res)
- # Get layout
- fh = res.resarray[-1].object
- open_stateid = res.resarray[-2].stateid
- ops = [op.putfh(fh),
- op.layoutget(False, LAYOUT4_FLEX_FILES, LAYOUTIOMODE4_READ,
- 0, NFS4_MAXFILELEN, 4196, open_stateid, 0xffff)]
- res = sess.compound(ops)
- check(res)
- # Parse opaque
- for layout in res.resarray[-1].logr_layout:
- if layout.loc_type == LAYOUT4_FLEX_FILES:
- p = FlexUnpacker(layout.loc_body)
- opaque = p.unpack_ff_layout4()
- p.done()
- res = close_file(sess, fh, stateid=open_stateid)
- check(res)
-
def testFlexLayoutReturnFile(t, env):
"""
Return a file's layout
FLAGS: flex
- DEPEND: FFGLO1
CODE: FFLOR1
"""
sess = env.c1.new_pnfs_client_session(env.testname(t))
--
2.26.2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic