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 mgr/dashboard: make modified API endpoints backward compatible 2021-09-24 18:48:35 +05:30
helper.py qa/tasks/mgr/dashboard: accept headers as an option param 2022-08-22 14:01:16 +08:00
test_api.py mgr/dashboard: make modified API endpoints backward compatible 2021-09-24 18:48:35 +05:30
test_auth.py mgr/dashboard: introduce gather facts in host list 2021-10-13 16:02:51 +05:30
test_cephfs.py mgr/dashboard/qa: add pylint check 2020-10-22 14:12:14 +02:00
test_cluster_configuration.py tools: add throttle mechanism to immutable object cache 2020-12-03 19:14:44 +08:00
test_cluster.py mgr/dashboard: Create Cluster Workflow welcome screen and e2e tests 2021-10-13 15:52:14 +05:30
test_crush_rule.py mgr/dashboard: remove max/min_size and ruleset 2021-07-02 00:10:14 +05:30
test_erasure_code_profile.py mgr/dashboard/qa: add isort check 2020-10-22 14:12:14 +02:00
test_feedback.py mgr/dashboard: report ceph tracker bug/feature through GUI 2022-01-17 19:45:31 +05:30
test_health.py mgr/dashboard: Improve notifications for osd nearfull, full 2022-01-19 16:35:27 +05:30
test_host.py mgr/dashboard: introduce gather facts in host list 2021-10-13 16:02:51 +05:30
test_logs.py mgr/dashboard/qa: add pylint check 2020-10-22 14:12:14 +02:00
test_mgr_module.py qa/tasks/mgr/dashboard: add perf channel to qa tests 2021-07-02 14:21:42 +00:00
test_monitor.py mgr/dashboard/qa: add flake8 linting 2020-10-22 14:12:14 +02:00
test_motd.py mgr/dashboard: Add configurable MOTD or wall notification 2021-07-14 10:48:49 +02:00
test_orchestrator.py mgr/dashboard: add rbd status endpoint 2022-06-07 23:12:39 -04:00
test_osd.py Merge pull request #37568 from s0nea/wip-dashboard-qa-linting 2020-10-26 11:27:23 +01:00
test_perf_counters.py mgr/dashboard: fix API tests 2020-04-25 09:50:19 +08:00
test_pool.py qa/mgr/dashboard/test_pool: don't check HEALTH_OK 2021-09-30 14:16:46 +02:00
test_rbd_mirroring.py mgr/dashboard/qa: add pylint check 2020-10-22 14:12:14 +02:00
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 mgr/dashboard: add rbd status endpoint 2022-06-07 23:12:39 -04:00
test_role.py qa/tasks/mgr: partial revert of 'import with full path' 2020-03-26 14:37:06 +08:00
test_settings.py mgr/dashboard: set rgw credentials: fix api tests 2021-08-11 08:59:13 +02:00
test_summary.py qa/tasks/mgr: partial revert of 'import with full path' 2020-03-26 14:37:06 +08:00
test_telemetry.py qa/tasks/mgr/dashboard: identify cluster in telemetry test 2021-02-11 17:45:02 -05:00
test_user.py qa/mgr/dashboard: add extra wait to test 2021-09-22 14:11:23 +02:00