File: test_variables.conf

package info (click to toggle)
python-certbot-apache 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,468 kB
  • sloc: python: 7,517; sh: 44; makefile: 11
file content (66 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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>