source: TI12-security/trunk/python/ndg.security.test/ndg/security/test/configfileparsers/test.cfg @ 4318

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.test/ndg/security/test/configfileparsers/test.cfg@4318
Revision 4318, 1.5 KB checked in by pjkersha, 12 years ago (diff)

Added ConfigFileParsers? unittests. ConfigFileParsers? validation currently broken.

Line 
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) 2008 STFC & NERC
8#
9# This software may be distributed under the terms of the Q Public License,
10# version 1.0 or later.
11[DEFAULT]
12
13[test1CaseSensitiveConfigParser]
14# The CaseSensitiveConfigParser should read back two distinct options here.
15# Standard SafeConfigParser will retrieve one with option set to the last one
16# read i.e. = False
17CaseSensitiveOption=True
18casesensitiveoption=False
19
20[test2INIPropertyFile]
21# Test prefixing for a given application - an Attribute Authority in this case
22attributeAuthority.useSSL=False
23attributeAuthority.name: Site A
24
25# This entry should log a warning because 'here' is not defined as an option
26# in this file
27location=%(here)s/somewhere
28
29# This should work OK - thisFile is set correctly because thisDir has been
30# defined
31thisDir=$NDGSEC_CONFIGFILEPARSERS_UNITTEST_DIR
32thisFile: %(thisDir)s/test.cfg
33
34[test3ReadAndValidateProperties]
35# Prefixing of options for the Session Manager application
36sessionManager.sslCertFile: sm.crt
37sessionManager.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
41sessionManager.credentialWallet.caCertFilePathList=ca/ndg-test-ca.crt
42
43# Test bool and int type conversions
44sessionManager.credentialWallet.mapFromTrustedHosts=True
45sessionManager.credentialWallet.attCertRefreshElapse=7200
Note: See TracBrowser for help on using the repository browser.