Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'certbot-apache/tests/testdata/complex_parsing/test_variables.conf')
-rw-r--r--certbot-apache/tests/testdata/complex_parsing/test_variables.conf66
1 files changed, 66 insertions, 0 deletions
diff --git a/certbot-apache/tests/testdata/complex_parsing/test_variables.conf b/certbot-apache/tests/testdata/complex_parsing/test_variables.conf
new file mode 100644
index 000000000..1a9edff74
--- /dev/null
+++ b/certbot-apache/tests/testdata/complex_parsing/test_variables.conf
@@ -0,0 +1,66 @@
+TestVariablePort ${tls_port}
+TestVariablePortStr "${tls_port_str}"
+
+LoadModule status_module modules/mod_status.so
+
+# Basic IfDefine
+<IfDefine COMPLEX>
+ VAR_DIRECTIVE success
+ LoadModule ssl_module modules/mod_ssl.so
+</IfDefine>
+
+<IfDefine !COMPLEX>
+ INVALID_VAR_DIRECTIVE failure
+</IfDefine>
+
+<IfDefine NOT_COMPLEX>
+ INVALID_VAR_DIRECTIVE failure
+</IfDefine>
+
+<IfDefine !NOT_COMPLEX>
+ VAR_DIRECTIVE failure
+</IfDefine>
+
+
+# Basic IfModule
+<IfModule ssl_module>
+ MOD_DIRECTIVE Success
+</IfModule>
+
+<IfModule !ssl_module>
+ INVALID_MOD_DIRECTIVE failure
+</IfModule>
+
+<IfModule fake_module>
+ INVALID_MOD_DIRECTIVE failure
+</IfModule>
+
+<IfModule !fake_module>
+ MOD_DIRECTIVE Success
+</IfModule>
+
+# Nested Tests
+<IfModule status_module>
+ <IfDefine COMPLEX>
+ NESTED_DIRECTIVE success
+
+ <IfModule mod_ssl.c>
+ NESTED_DIRECTIVE success
+ </IfModule>
+
+ <IfModule !mod_ssl.c>
+ INVALID_NESTED_DIRECTIVE failure
+ </IfModule>
+ </IfDefine>
+
+ <IfDefine !COMPLEX>
+ INVALID_NESTED_DIRECTIVE failure
+
+ <IfModule ssl_module>
+ INVALID_NESTED_DIRECTIVE failure
+ </IfModule>
+ </IfDefine>
+
+ NESTED_DIRECTIVE success
+
+</IfModule>