]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/tasks/mgr/dashboard/test_requests.py
eba81d673af2c99301225d963a4266c70d78ad47
1 # -*- coding: utf-8 -*-
3 from __future__
import absolute_import
5 from .helper
import DashboardTestCase
8 class RequestsTest(DashboardTestCase
):
10 self
._get
('/api/summary')
12 'Content-Encoding': 'gzip',
13 'Content-Type': 'application/json',
16 def test_force_no_gzip(self
):
17 self
._get
('/api/summary', params
=dict(
18 headers
={'Accept-Encoding': 'identity'}
20 self
.assertNotIn('Content-Encoding', self
._resp
.headers
)
22 'Content-Type': 'application/json',
23 'server': 'Ceph-Dashboard',
24 'Content-Security-Policy': "frame-ancestors 'self';",
25 'X-Content-Type-Options': 'nosniff',
26 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload'