summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2024-11-16 09:54:55 +0100
committerFrancis Dupont <fdupont@isc.org>2024-11-22 09:55:31 +0100
commit088d3aaadb6a5902524a2810dac612bb9f75f5b1 (patch)
tree7432165180802332a83d53b3266b92320368d716
parent[#3609] Checkpoint before rebase (diff)
downloadkea-088d3aaadb6a5902524a2810dac612bb9f75f5b1.tar.xz
kea-088d3aaadb6a5902524a2810dac612bb9f75f5b1.zip
[#3609] Checkpoint: regenerated get_config_unittest.cc
-rw-r--r--src/bin/dhcp4/tests/get_config_unittest.cc20
-rw-r--r--src/bin/dhcp6/tests/get_config_unittest.cc20
2 files changed, 36 insertions, 4 deletions
diff --git a/src/bin/dhcp4/tests/get_config_unittest.cc b/src/bin/dhcp4/tests/get_config_unittest.cc
index c3e3e9e842..3f66ed6cc0 100644
--- a/src/bin/dhcp4/tests/get_config_unittest.cc
+++ b/src/bin/dhcp4/tests/get_config_unittest.cc
@@ -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"
diff --git a/src/bin/dhcp6/tests/get_config_unittest.cc b/src/bin/dhcp6/tests/get_config_unittest.cc
index 156a578395..09e3367781 100644
--- a/src/bin/dhcp6/tests/get_config_unittest.cc
+++ b/src/bin/dhcp6/tests/get_config_unittest.cc
@@ -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"