mirror of
https://github.com/ceph/ceph
synced 2025-01-22 19:15:41 +00:00
afe8058b6c
* add optional "headers" parameter to _request() and _get() * correct the test of test_force_no_gzip, as the header in response should be "application/vnd.ceph.api.v1.0+json", not "application/json" with this change, we are able to pass headers to _get() in dashboard api tests. without this change, we'd have following error when testing `test_force_no_gzip` defined by `tasks.mgr.dashboard.test_requests.RequestsTest`: raceback (most recent call last): File "/home/jenkins-build/build/workspace/ceph-api/src/pybind/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler return handler(*args, **kwargs) File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__ return self.callable(*self.args, **self.kwargs) File "/home/jenkins-build/build/workspace/ceph-api/src/pybind/mgr/dashboard/controllers/_base_controller.py", line 263, in inner ret = func(*args, **kwargs) TypeError: Summary.__call__() got an unexpected keyword argument 'headers' Signed-off-by: Kefu Chai <tchaikov@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
helper.py | ||
test_api.py | ||
test_auth.py | ||
test_cephfs.py | ||
test_cluster_configuration.py | ||
test_cluster.py | ||
test_crush_rule.py | ||
test_erasure_code_profile.py | ||
test_feedback.py | ||
test_health.py | ||
test_host.py | ||
test_logs.py | ||
test_mgr_module.py | ||
test_monitor.py | ||
test_motd.py | ||
test_orchestrator.py | ||
test_osd.py | ||
test_perf_counters.py | ||
test_pool.py | ||
test_rbd_mirroring.py | ||
test_rbd.py | ||
test_requests.py | ||
test_rgw.py | ||
test_role.py | ||
test_settings.py | ||
test_summary.py | ||
test_telemetry.py | ||
test_user.py |