##// END OF EJS Templates
Turn x-frame-options tests into CSP tests
Kyle Kelley -
Show More
@@ -65,7 +65,7 b' class KernelAPITest(NotebookTestBase):'
65 self.assertEqual(r.status_code, 201)
65 self.assertEqual(r.status_code, 201)
66 self.assertIsInstance(kern1, dict)
66 self.assertIsInstance(kern1, dict)
67
67
68 self.assertEqual(r.headers['x-frame-options'], "SAMEORIGIN")
68 self.assertEqual(r.headers['Content-Security-Policy'], "frame-ancestors 'self'")
69
69
70 def test_main_kernel_handler(self):
70 def test_main_kernel_handler(self):
71 # POST request
71 # POST request
@@ -75,7 +75,7 b' class KernelAPITest(NotebookTestBase):'
75 self.assertEqual(r.status_code, 201)
75 self.assertEqual(r.status_code, 201)
76 self.assertIsInstance(kern1, dict)
76 self.assertIsInstance(kern1, dict)
77
77
78 self.assertEqual(r.headers['x-frame-options'], "SAMEORIGIN")
78 self.assertEqual(r.headers['Content-Security-Policy'], "frame-ancestors 'self'")
79
79
80 # GET request
80 # GET request
81 r = self.kern_api.list()
81 r = self.kern_api.list()
General Comments 0
You need to be logged in to leave comments. Login now