aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-09-08 12:23:01 +0000
committerTor Brede Vekterli <vekterli@yahooinc.com>2022-09-08 12:23:01 +0000
commitc06ed71b42e3995627ba854c7cf0bfae3c56bd0b (patch)
tree3fc428efd9560979f54cbf276d5d7c8d177c8512
parent46866b3f944baf6dbcff28ec8952255693d495c0 (diff)
Update test HTTP header expectations
-rw-r--r--storage/src/tests/frameworkimpl/status/statustest.cpp6
-rw-r--r--vespalib/src/tests/portal/portal_test.cpp2
-rw-r--r--vespalib/src/tests/state_server/state_server_test.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/storage/src/tests/frameworkimpl/status/statustest.cpp b/storage/src/tests/frameworkimpl/status/statustest.cpp
index 77d23314221..2593eabecec 100644
--- a/storage/src/tests/frameworkimpl/status/statustest.cpp
+++ b/storage/src/tests/frameworkimpl/status/statustest.cpp
@@ -117,7 +117,7 @@ TEST_F(StatusTest, index_status_page) {
"Content-Length: [0-9]+\r\n"
"X-XSS-Protection: 1; mode=block\r\n"
"X-Frame-Options: DENY\r\n"
- "Content-Security-Policy: default-src 'none'\r\n"
+ "Content-Security-Policy: default-src 'none'; frame-ancestors 'none'\r\n"
"X-Content-Type-Options: nosniff\r\n"
"Cache-Control: no-store\r\n"
"Pragma: no-cache\r\n"
@@ -152,7 +152,7 @@ TEST_F(StatusTest, html_status) {
"Content-Length: 117\r\n"
"X-XSS-Protection: 1; mode=block\r\n"
"X-Frame-Options: DENY\r\n"
- "Content-Security-Policy: default-src 'none'\r\n"
+ "Content-Security-Policy: default-src 'none'; frame-ancestors 'none'\r\n"
"X-Content-Type-Options: nosniff\r\n"
"Cache-Control: no-store\r\n"
"Pragma: no-cache\r\n"
@@ -184,7 +184,7 @@ TEST_F(StatusTest, xml_sStatus) {
"Content-Length: 100\r\n"
"X-XSS-Protection: 1; mode=block\r\n"
"X-Frame-Options: DENY\r\n"
- "Content-Security-Policy: default-src 'none'\r\n"
+ "Content-Security-Policy: default-src 'none'; frame-ancestors 'none'\r\n"
"X-Content-Type-Options: nosniff\r\n"
"Cache-Control: no-store\r\n"
"Pragma: no-cache\r\n"
diff --git a/vespalib/src/tests/portal/portal_test.cpp b/vespalib/src/tests/portal/portal_test.cpp
index 2e68e7033db..979b1284700 100644
--- a/vespalib/src/tests/portal/portal_test.cpp
+++ b/vespalib/src/tests/portal/portal_test.cpp
@@ -52,7 +52,7 @@ vespalib::string make_expected_response(const vespalib::string &content_type, co
"Content-Length: %zu\r\n"
"X-XSS-Protection: 1; mode=block\r\n"
"X-Frame-Options: DENY\r\n"
- "Content-Security-Policy: default-src 'none'\r\n"
+ "Content-Security-Policy: default-src 'none'; frame-ancestors 'none'\r\n"
"X-Content-Type-Options: nosniff\r\n"
"Cache-Control: no-store\r\n"
"Pragma: no-cache\r\n"
diff --git a/vespalib/src/tests/state_server/state_server_test.cpp b/vespalib/src/tests/state_server/state_server_test.cpp
index f6e614f213a..2369e0dac66 100644
--- a/vespalib/src/tests/state_server/state_server_test.cpp
+++ b/vespalib/src/tests/state_server/state_server_test.cpp
@@ -85,7 +85,7 @@ TEST_FF("require that non-empty known url returns expected headers", DummyHandle
"Content-Length: 5\r\n"
"X-XSS-Protection: 1; mode=block\r\n"
"X-Frame-Options: DENY\r\n"
- "Content-Security-Policy: default-src 'none'\r\n"
+ "Content-Security-Policy: default-src 'none'; frame-ancestors 'none'\r\n"
"X-Content-Type-Options: nosniff\r\n"
"Cache-Control: no-store\r\n"
"Pragma: no-cache\r\n"