]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3609] Checkpoint: regenerated get_config_unittest.cc
authorFrancis Dupont <fdupont@isc.org>
Sat, 16 Nov 2024 08:54:55 +0000 (09:54 +0100)
committerFrancis Dupont <fdupont@isc.org>
Fri, 22 Nov 2024 08:55:31 +0000 (09:55 +0100)
src/bin/dhcp4/tests/get_config_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.cc

index c3e3e9e84265fe9c7b095e2b75d43c7f69143af9..3f66ed6cc05f090f978c22abdf85e7247f021116 100644 (file)
@@ -68,7 +68,6 @@ namespace {
 ///@{
 /// @brief extracted configurations
 const char* EXTRACTED_CONFIGS[] = {
-/// put this after const char* EXTRACTED_CONFIGS[] = {
     // CONFIGURATION 0
 "{\n"
 "        \"interfaces-config\": {\n"
@@ -2113,6 +2112,15 @@ const char* EXTRACTED_CONFIGS[] = {
 "                        \"comment\": \"basic HTTP authentication\"\n"
 "                    }\n"
 "                },\n"
+"                \"http-headers\": [\n"
+"                    {\n"
+"                        \"name\": \"Strict-Transport-Security\",\n"
+"                        \"user-context\": {\n"
+"                            \"comment\": \"HSTS header\"\n"
+"                        },\n"
+"                        \"value\": \"max-age=31536000\"\n"
+"                    }\n"
+"                ],\n"
 "                \"socket-address\": \"::1\",\n"
 "                \"socket-port\": 8000,\n"
 "                \"socket-type\": \"http\",\n"
@@ -2619,7 +2627,6 @@ const char* EXTRACTED_CONFIGS[] = {
 
 /// @brief unparsed configurations
 const char* UNPARSED_CONFIGS[] = {
-///put this after const char* UNPARSED_CONFIGS[] = {
     // CONFIGURATION 0
 "{\n"
 "        \"allocator\": \"iterative\",\n"
@@ -11474,6 +11481,15 @@ const char* UNPARSED_CONFIGS[] = {
 "                        \"comment\": \"basic HTTP authentication\"\n"
 "                    }\n"
 "                },\n"
+"                \"http-headers\": [\n"
+"                    {\n"
+"                        \"name\": \"Strict-Transport-Security\",\n"
+"                        \"user-context\": {\n"
+"                            \"comment\": \"HSTS header\"\n"
+"                        },\n"
+"                        \"value\": \"max-age=31536000\"\n"
+"                    }\n"
+"                ],\n"
 "                \"socket-address\": \"::1\",\n"
 "                \"socket-port\": 8000,\n"
 "                \"socket-type\": \"http\",\n"
index 156a5783958a9793298eae997b79b1bfdc2359cf..09e3367781f3347cbdd21f3a86875c8aac9d4bff 100644 (file)
@@ -68,7 +68,6 @@ namespace {
 ///@{
 /// @brief extracted configurations
 const char* EXTRACTED_CONFIGS[] = {
-/// put this after const char* EXTRACTED_CONFIGS[] = {
     // CONFIGURATION 0
 "{\n"
 "        \"interfaces-config\": {\n"
@@ -2007,6 +2006,15 @@ const char* EXTRACTED_CONFIGS[] = {
 "                        \"comment\": \"basic HTTP authentication\"\n"
 "                    }\n"
 "                },\n"
+"                \"http-headers\": [\n"
+"                    {\n"
+"                        \"name\": \"Strict-Transport-Security\",\n"
+"                        \"user-context\": {\n"
+"                            \"comment\": \"HSTS header\"\n"
+"                        },\n"
+"                        \"value\": \"max-age=31536000\"\n"
+"                    }\n"
+"                ],\n"
 "                \"socket-address\": \"127.0.0.1\",\n"
 "                \"socket-port\": 8000,\n"
 "                \"socket-type\": \"http\",\n"
@@ -2624,7 +2632,6 @@ const char* EXTRACTED_CONFIGS[] = {
 
 /// @brief unparsed configurations
 const char* UNPARSED_CONFIGS[] = {
-///put this after const char* UNPARSED_CONFIGS[] = {
     // CONFIGURATION 0
 "{\n"
 "        \"allocator\": \"iterative\",\n"
@@ -11262,6 +11269,15 @@ const char* UNPARSED_CONFIGS[] = {
 "                        \"comment\": \"basic HTTP authentication\"\n"
 "                    }\n"
 "                },\n"
+"                \"http-headers\": [\n"
+"                    {\n"
+"                        \"name\": \"Strict-Transport-Security\",\n"
+"                        \"user-context\": {\n"
+"                            \"comment\": \"HSTS header\"\n"
+"                        },\n"
+"                        \"value\": \"max-age=31536000\"\n"
+"                    }\n"
+"                ],\n"
 "                \"socket-address\": \"127.0.0.1\",\n"
 "                \"socket-port\": 8000,\n"
 "                \"socket-type\": \"http\",\n"