summaryrefslogtreecommitdiff
path: root/caddyconfig/caddyfile/testdata
diff options
context:
space:
mode:
authorMohammed Al Sahaf <msaa1990@gmail.com>2021-04-09 18:06:25 +0000
committerGitHub <noreply@github.com>2021-04-09 12:06:25 -0600
commit3903642aa7cf711cb20f27958e7ee5b15fe2bbb3 (patch)
treee858bd4db5126f5c3ae4f47ce4e7793c88a464e6 /caddyconfig/caddyfile/testdata
parent03b5debd958a324d5c00cc37f887130b0198e747 (diff)
caddyfile: reject cyclic imports (#4022)
* caddyfile: reject recursive self-imports * caddyfile: detect and reject cyclic imports of snippets and files * caddyfile: do not be stickler about connected nodes not being connected already * caddyfile: include missing test artifacts of cyclic imports * address review comments
Diffstat (limited to 'caddyconfig/caddyfile/testdata')
-rw-r--r--caddyconfig/caddyfile/testdata/import_recursive0.txt1
-rw-r--r--caddyconfig/caddyfile/testdata/import_recursive1.txt1
-rw-r--r--caddyconfig/caddyfile/testdata/import_recursive2.txt1
-rw-r--r--caddyconfig/caddyfile/testdata/import_recursive3.txt1
4 files changed, 4 insertions, 0 deletions
diff --git a/caddyconfig/caddyfile/testdata/import_recursive0.txt b/caddyconfig/caddyfile/testdata/import_recursive0.txt
new file mode 100644
index 0000000..4d827b3
--- /dev/null
+++ b/caddyconfig/caddyfile/testdata/import_recursive0.txt
@@ -0,0 +1 @@
+import import_recursive0.txt \ No newline at end of file
diff --git a/caddyconfig/caddyfile/testdata/import_recursive1.txt b/caddyconfig/caddyfile/testdata/import_recursive1.txt
new file mode 100644
index 0000000..9b6102e
--- /dev/null
+++ b/caddyconfig/caddyfile/testdata/import_recursive1.txt
@@ -0,0 +1 @@
+import import_recursive2.txt \ No newline at end of file
diff --git a/caddyconfig/caddyfile/testdata/import_recursive2.txt b/caddyconfig/caddyfile/testdata/import_recursive2.txt
new file mode 100644
index 0000000..5553dea
--- /dev/null
+++ b/caddyconfig/caddyfile/testdata/import_recursive2.txt
@@ -0,0 +1 @@
+import import_recursive3.txt \ No newline at end of file
diff --git a/caddyconfig/caddyfile/testdata/import_recursive3.txt b/caddyconfig/caddyfile/testdata/import_recursive3.txt
new file mode 100644
index 0000000..fcf0237
--- /dev/null
+++ b/caddyconfig/caddyfile/testdata/import_recursive3.txt
@@ -0,0 +1 @@
+import import_recursive1.txt \ No newline at end of file