Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa/workunits/rest/test.py: stop trying to test obsolte cluster_up/down #18552

Merged
merged 1 commit into from
Oct 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions qa/workunits/mon/caps.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ def test_all():
{
'cmd':('mds getmap', '', 'r'),
},
{
'cmd':('mds cluster_down', '', 'rw'),
'post':'mds cluster_up'
},
],
'mon':[
{
Expand Down
47 changes: 9 additions & 38 deletions qa/workunits/rest/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,25 +151,6 @@ def expect_nofail(url, method, respcode, contenttype, extra_hdrs=None,

# XXX no ceph -w equivalent yet

expect('mds/cluster_down', 'PUT', 200, '')
expect('mds/cluster_down', 'PUT', 200, '')
expect('mds/cluster_up', 'PUT', 200, '')
expect('mds/cluster_up', 'PUT', 200, '')

expect('mds/compat/rm_incompat?feature=4', 'PUT', 200, '')
expect('mds/compat/rm_incompat?feature=4', 'PUT', 200, '')

r = expect('mds/compat/show', 'GET', 200, 'json', JSONHDR)
assert('incompat' in r.myjson['output'])
r = expect('mds/compat/show', 'GET', 200, 'xml', XMLHDR)
assert(r.tree.find('output/mds_compat/incompat') is not None)

# EEXIST from CLI
expect('mds/deactivate?who=2', 'PUT', 400, '')

r = expect('mds/dump.xml', 'GET', 200, 'xml')
assert(r.tree.find('output/mdsmap/created') is not None)

expect('fs/flag/set?flag_name=enable_multiple&val=true', 'PUT', 200, '')
expect('osd/pool/create?pg_num=1&pool=my_cephfs_metadata', 'PUT', 200, '')
expect('osd/pool/create?pg_num=1&pool=my_cephfs_data', 'PUT', 200, '')
Expand All @@ -184,27 +165,17 @@ def expect_nofail(url, method, respcode, contenttype, extra_hdrs=None,
assert(p['pg_num'] == 10)
break
assert(poolnum is not None)
expect('mds/add_data_pool?pool={0}'.format(poolnum), 'PUT', 200, '')
expect('mds/remove_data_pool?pool={0}'.format(poolnum), 'PUT', 200, '')
expect('fs/add_data_pool?fs_name={1}&pool={0}'.format(poolnum,'mycephfs'), 'PUT', 200, '')
expect('fs/rm_data_pool?pool={0}&fs_name={1}'.format(poolnum,'mycephfs'), 'PUT', 200, '')
expect('osd/pool/delete?pool=data2&pool2=data2'
'&sure=--yes-i-really-really-mean-it', 'PUT', 200, '')
expect('mds/set?var=allow_multimds&val=true&confirm=--yes-i-really-mean-it', 'PUT', 200, '')
expect('mds/set_max_mds?maxmds=4', 'PUT', 200, '')
expect('mds/set?var=max_mds&val=4', 'PUT', 200, '')
expect('mds/set?var=max_file_size&val=1048576', 'PUT', 200, '')
expect('mds/set?var=allow_new_snaps&val=true&confirm=--yes-i-really-mean-it', 'PUT', 200, '')
expect('mds/set?var=allow_new_snaps&val=0', 'PUT', 200, '')
expect('mds/set?var=inline_data&val=true&confirm=--yes-i-really-mean-it', 'PUT', 200, '')
expect('mds/set?var=inline_data&val=0', 'PUT', 200, '')
r = expect('mds/dump.json', 'GET', 200, 'json')
assert(r.myjson['output']['max_mds'] == 4)
expect('mds/set_max_mds?maxmds=3', 'PUT', 200, '')
r = expect('mds/stat.json', 'GET', 200, 'json')
expect('mds/set?var=max_mds&val=2', 'PUT', 200, '')
r = expect('mds/stat.json', 'GET', 200, 'json')
assert('epoch' in r.myjson['output']['fsmap'])
r = expect('mds/stat.xml', 'GET', 200, 'xml')
assert(r.tree.find('output/mds_stat/fsmap/epoch') is not None)
expect('fs/set?fs_name=mycephfs&var=allow_multimds&val=true&confirm=--yes-i-really-mean-it', 'PUT', 200, '')
expect('fs/set?fs_name=mycephfs&var=max_mds&val=4', 'PUT', 200, '')
expect('fs/set?fs_name=mycephfs&var=max_file_size&val=1048576', 'PUT', 200, '')
expect('fs/set?fs_name=mycephfs&var=allow_new_snaps&val=true&confirm=--yes-i-really-mean-it', 'PUT', 200, '')
expect('fs/set?fs_name=mycephfs&var=allow_new_snaps&val=0', 'PUT', 200, '')
expect('fs/set?fs_name=mycephfs&var=inline_data&val=true&confirm=--yes-i-really-mean-it', 'PUT', 200, '')
expect('fs/set?fs_name=mycephfs&var=inline_data&val=0', 'PUT', 200, '')

# more content tests below, just check format here
expect('mon/dump.json', 'GET', 200, 'json')
Expand Down