ceph/qa/tasks/mgr/dashboard
Kefu Chai afe8058b6c qa/tasks/mgr/dashboard: accept headers as an option param
* 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>
2022-08-22 14:01:16 +08:00
..
__init__.py
helper.py qa/tasks/mgr/dashboard: accept headers as an option param 2022-08-22 14:01:16 +08:00
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 mgr/dashboard: fix rbdconfiguration init type 2022-07-13 17:45:37 +02:00
test_requests.py qa/tasks/mgr/dashboard: accept headers as an option param 2022-08-22 14:01:16 +08:00
test_rgw.py
test_role.py
test_settings.py
test_summary.py
test_telemetry.py
test_user.py