Commit Graph

10 Commits

Author SHA1 Message Date
Brad Hubbard
e20e6fc329 qa/suites/rados/rest: Don't pass empty dict as data arg
Passing an empty 'args' dict as a data argument when calling
requests.get somehow confuses the transaction, causing it to fail. Pass
'None' instead.

Fixes: https://tracker.ceph.com/issues/43720

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2020-03-31 17:43:10 +10:00
Sage Weil
1abcb0bb9b qa/workunits: env python -> env python3
Signed-off-by: Sage Weil <sage@redhat.com>
2019-12-20 07:17:10 -06:00
Boris Ranto
aaaef9146c restful: Expose perf counters
We currently do not expose perf counters in the restful module but this
is a useful piece of information to be exposed by the restful module.

Since we already have a function to gather all the information about the
perf counters, we can make this easily accessible through the restful
API.

This also supports filtering by daemons through regexps.

Signed-off-by: Boris Ranto <branto@redhat.com>
2019-04-30 13:30:14 +02:00
Boris Ranto
059588e758 qa/restful: Test pg_num/pgp_num modifications
Signed-off-by: Boris Ranto <branto@redhat.com>
2017-11-27 14:35:26 +01:00
Sage Weil
93918b0be5 test,qa/workunits: fix a zillion tests
Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-28 10:52:49 -04:00
Sage Weil
6f1a5946b6 mon/OSDMonitor: rename functions and variables, ruleset -> rule
Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-19 19:09:06 -04:00
Kefu Chai
8a44b680dd qa/workunits/rest/test_mgr_rest_api.py: set headers for requests
i think it's a bug in httplib shipped in old distro.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-06-15 10:13:14 +08:00
Sage Weil
7df54f2f24 qa/workunits/rest/test_mgr_rest_api.py: tolerate old distros
Work with older requests and/or missing urllib3.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-12 11:56:16 -04:00
Sage Weil
1bf53c1fc8 qa/workunits/rest/test_mgr_rest_api.py: improvements
Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-08 14:29:37 -04:00
Boris Ranto
74be9d857a restful: Add a qa workunit
This commit adds a simple test that will send the requests to most of
the API endpoints and check the status code of the requests.

Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-22 21:48:07 +02:00