aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2024-10-10 22:38:49 +0300
committerGitHub <[email protected]>2024-10-10 13:38:49 -0600
commitdd5decabe7379a069c3b198e0930ec94d75c7bd4 (patch)
treed194a8b6c7b66fcf4167be187bcf9dc39b30d8e1
parentd7564d632fbed209e81978c5c2c529a7bf1836f7 (diff)
downloadcaddy-dd5decabe7379a069c3b198e0930ec94d75c7bd4.tar.gz
caddy-dd5decabe7379a069c3b198e0930ec94d75c7bd4.zip
tests: fix caddyfile adapt warnings (#6619)
Signed-off-by: Mohammed Al Sahaf <[email protected]>
-rw-r--r--caddytest/integration/caddyfile_adapt/acme_server_sign_with_root.caddyfiletest4
-rw-r--r--caddytest/integration/caddyfile_adapt/heredoc.caddyfiletest3
-rw-r--r--caddytest/integration/caddyfile_adapt/map_and_vars_with_raw_types.caddyfiletest15
3 files changed, 12 insertions, 10 deletions
diff --git a/caddytest/integration/caddyfile_adapt/acme_server_sign_with_root.caddyfiletest b/caddytest/integration/caddyfile_adapt/acme_server_sign_with_root.caddyfiletest
index 9880f2821..5b5040107 100644
--- a/caddytest/integration/caddyfile_adapt/acme_server_sign_with_root.caddyfiletest
+++ b/caddytest/integration/caddyfile_adapt/acme_server_sign_with_root.caddyfiletest
@@ -5,15 +5,15 @@
root_cn "Internal Root Cert"
intermediate_cn "Internal Intermediate Cert"
}
- }
+ }
}
-
acme.example.com {
acme_server {
ca internal
sign_with_root
}
}
+
----------
{
"apps": {
diff --git a/caddytest/integration/caddyfile_adapt/heredoc.caddyfiletest b/caddytest/integration/caddyfile_adapt/heredoc.caddyfiletest
index cc1174d6d..f50d2b7f9 100644
--- a/caddytest/integration/caddyfile_adapt/heredoc.caddyfiletest
+++ b/caddytest/integration/caddyfile_adapt/heredoc.caddyfiletest
@@ -1,11 +1,12 @@
example.com {
- respond <<EOF
+ respond <<EOF
<html>
<head><title>Foo</title>
<body>Foo</body>
</html>
EOF 200
}
+
----------
{
"apps": {
diff --git a/caddytest/integration/caddyfile_adapt/map_and_vars_with_raw_types.caddyfiletest b/caddytest/integration/caddyfile_adapt/map_and_vars_with_raw_types.caddyfiletest
index cc7563015..8b872635d 100644
--- a/caddytest/integration/caddyfile_adapt/map_and_vars_with_raw_types.caddyfiletest
+++ b/caddytest/integration/caddyfile_adapt/map_and_vars_with_raw_types.caddyfiletest
@@ -1,23 +1,23 @@
example.com
-map {host} {my_placeholder} {magic_number} {
+map {host} {my_placeholder} {magic_number} {
# Should output boolean "true" and an integer
- example.com true 3
+ example.com true 3
# Should output a string and null
- foo.example.com "string value"
+ foo.example.com "string value"
# Should output two strings (quoted int)
- (.*)\.example.com "${1} subdomain" "5"
+ (.*)\.example.com "${1} subdomain" "5"
# Should output null and a string (quoted int)
- ~.*\.net$ - `7`
+ ~.*\.net$ - `7`
# Should output a float and the string "false"
- ~.*\.xyz$ 123.456 "false"
+ ~.*\.xyz$ 123.456 "false"
# Should output two strings, second being escaped quote
- default "unknown domain" \"""
+ default "unknown domain" \"""
}
vars foo bar
@@ -27,6 +27,7 @@ vars {
ghi 2.3
jkl "mn op"
}
+
----------
{
"apps": {