1 | # Test Configuration file for configfileparsers unit tests |
---|
2 | # |
---|
3 | # NERC Data Grid Project |
---|
4 | # |
---|
5 | # P J Kershaw 09/10/08 |
---|
6 | # |
---|
7 | # Copyright (C) 2009 Science and Technology Facilities Council |
---|
8 | # |
---|
9 | # BSD - See LICENCE file for details |
---|
10 | [DEFAULT] |
---|
11 | |
---|
12 | [test1CaseSensitiveConfigParser] |
---|
13 | # The CaseSensitiveConfigParser should read back two distinct options here. |
---|
14 | # Standard SafeConfigParser will retrieve one with option set to the last one |
---|
15 | # read i.e. = False |
---|
16 | CaseSensitiveOption=True |
---|
17 | casesensitiveoption=False |
---|
18 | |
---|
19 | [test2INIPropertyFile] |
---|
20 | # Test prefixing for a given application - an Attribute Authority in this case |
---|
21 | attributeAuthority.useSSL=False |
---|
22 | attributeAuthority.name: Site A |
---|
23 | attributeAuthority.attCertLifetime: 3600.0 |
---|
24 | |
---|
25 | # This entry should log a warning because 'here' is not defined as an option |
---|
26 | # in this file |
---|
27 | location=%(here)s/somewhere |
---|
28 | |
---|
29 | # This should work OK - thisFile is set correctly because thisDir has been |
---|
30 | # defined |
---|
31 | thisDir=$NDGSEC_CONFIGFILEPARSERS_UNITTEST_DIR |
---|
32 | thisFile: %(thisDir)s/test.cfg |
---|
33 | |
---|
34 | [test3ReadAndValidateProperties] |
---|
35 | # Prefixing of options for the Session Manager application |
---|
36 | sessionManager.sslCertFile: sm.crt |
---|
37 | sessionManager.sslKeyFile: sm.key |
---|
38 | |
---|
39 | # Test a 3rd level of nesting - prefixed for the Session Manager but the |
---|
40 | # Session Manager itself has a Credential Wallet subcomponent |
---|
41 | sessionManager.credentialWallet.caCertFilePathList=ca/ndg-test-ca.crt |
---|
42 | |
---|
43 | # Test bool and int type conversions |
---|
44 | sessionManager.credentialWallet.mapFromTrustedHosts=True |
---|
45 | sessionManager.credentialWallet.attCertRefreshElapse=7200 |
---|