Commit Graph

9 Commits

Author SHA1 Message Date
Dan Mick
6dd4ff8371 cephtool/test.sh, rest/test.py: add tell command tests
Also add HTTP method to test.py output

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-08-05 11:21:19 -07:00
Dan Mick
c9e8ff2bf1 rest/test.py: retry mds setmap in case epoch has changed
Loop 10 times retrying mds dump/getmap/setmap.

Fixes: #5815
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Dan Mick
dc1d95d713 rest/test.py: expect_nofail() to allow examination of reason
Also remove unused MyException

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-31 18:11:47 -07:00
Dan Mick
47d0937ccb rest/test.py: earlier versions of requests.py don't quote ' ' in params
requests 0.12.1 handles queryparams in the URL with embedded
spaces; requests 0.8.2 does not.  Avoid the issue by quoting the
URL into expect().

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-25 21:41:32 -07:00
Dan Mick
fe2019cc97 rest/test.py: cope with older requests.py versions
Older requests.py didn't have r.json (or r.json()); avoid by
decoding the json myself

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-24 16:09:13 -07:00
Dan Mick
1579c344fe rest/test.py: osd lspools should be a 'GET'
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-24 11:56:20 -07:00
Dan Mick
e4d0eeefa2 mon: "mds stat" must open/close section around dump_info
dump_info() got a new field outside the mdsmap section; it's ok for
the overall "report", but not for "mds stat".  Add an enclosing section
in "mds stat".  Fix test to expect new level.

Fixes: #5718
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-07-23 14:03:52 -07:00
Sage Weil
3f31540448 qa/workunits/rest/test: cluster_down/up are now idempotent
Signed-off-by: Sage Weil <sage@inktank.com>
2013-07-22 21:04:01 -07:00
Dan Mick
6cafb0e3e0 ceph-rest-api tests
Patterned after cephtool/test.sh, with some deeper validation of
output format and contents (because structured output is easier
to validate).

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-07-10 20:58:51 -07:00