Skip to content

Commit dd5deca

Browse files
authored
tests: fix caddyfile adapt warnings (#6619)
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
1 parent d7564d6 commit dd5deca

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

caddytest/integration/caddyfile_adapt/acme_server_sign_with_root.caddyfiletest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
root_cn "Internal Root Cert"
66
intermediate_cn "Internal Intermediate Cert"
77
}
8-
}
8+
}
99
}
10-
1110
acme.example.com {
1211
acme_server {
1312
ca internal
1413
sign_with_root
1514
}
1615
}
16+
1717
----------
1818
{
1919
"apps": {

caddytest/integration/caddyfile_adapt/heredoc.caddyfiletest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
example.com {
2-
respond <<EOF
2+
respond <<EOF
33
<html>
44
<head><title>Foo</title>
55
<body>Foo</body>
66
</html>
77
EOF 200
88
}
9+
910
----------
1011
{
1112
"apps": {

caddytest/integration/caddyfile_adapt/map_and_vars_with_raw_types.caddyfiletest

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
example.com
22

3-
map {host} {my_placeholder} {magic_number} {
3+
map {host} {my_placeholder} {magic_number} {
44
# Should output boolean "true" and an integer
5-
example.com true 3
5+
example.com true 3
66

77
# Should output a string and null
8-
foo.example.com "string value"
8+
foo.example.com "string value"
99

1010
# Should output two strings (quoted int)
11-
(.*)\.example.com "${1} subdomain" "5"
11+
(.*)\.example.com "${1} subdomain" "5"
1212

1313
# Should output null and a string (quoted int)
14-
~.*\.net$ - `7`
14+
~.*\.net$ - `7`
1515

1616
# Should output a float and the string "false"
17-
~.*\.xyz$ 123.456 "false"
17+
~.*\.xyz$ 123.456 "false"
1818

1919
# Should output two strings, second being escaped quote
20-
default "unknown domain" \"""
20+
default "unknown domain" \"""
2121
}
2222

2323
vars foo bar
@@ -27,6 +27,7 @@ vars {
2727
ghi 2.3
2828
jkl "mn op"
2929
}
30+
3031
----------
3132
{
3233
"apps": {

0 commit comments

Comments
 (0)