summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestOptions
Commit message (Collapse)AuthorAgeFilesLines
* Options/Types: Fix database OPTIONS parsingAlexander Sulfrian2015-07-231-9/+11
| | | | | | | | This is mostly from 257eb0c17 and 16d3e04cb to allow for setting arbitrary database options since some settings require nested dictionaries, etc. This got lost during merge from maint into master because of the completely different Options parsing.
* Bcfg2/Options/Parser: fix --version option, add testAlexander Sulfrian2014-11-251-0/+7
|
* Options: Fixed non-path database name parsingChris St. Pierre2014-11-101-4/+12
| | | | | | | | | | | | The database name is sometimes a path (SQLite) and sometimes not (MySQL, PostgreSQL). This introduces a new Option type, RepositoryMacroOption, that expands <repository> macros without canonicalizing the path, so SQLite users can use <repository> in their settings but MySQL users' database name settings will not be destroyed by path canonicalization. The unfortunate downside is that SQLite users can't use ~ in their database name.
* Options: fix path canonicalization and file-like objectsChris St. Pierre2014-11-101-0/+14
| | | | | | This fixes canonicalizing PathOption values when the default value of a config file-only option is used. It also fixes PathOptions that get a file-like object instead of a filename string.
* testsuite: unlink temporary filesChris St. Pierre2014-11-102-5/+10
| | | | | This cleans up the temporary config files created by the option parsing unit tests. Courtesy Alexander Sulfrian.
* Options: ensure <repository> macros are always fixed upChris St. Pierre2014-11-103-6/+34
| | | | | | | This fixes several cases in which <repository> macros would not be properly processed: options that are not added to the parser yet when early options are parsed; and config file options whose default value is used.
* testsuite: better debug capturing for options testsChris St. Pierre2014-11-101-23/+21
|
* testsuite: capture stderr by defaultChris St. Pierre2014-11-101-0/+2
| | | | This quiets down a lot of tests, especially for option parsing.
* Test failure to parse config file when bcfg2.conf existsChris St. Pierre2014-11-102-7/+3
|
* testsuite: skip nested exclusive option group test on py2.6Chris St. Pierre2014-11-101-3/+13
|
* testsuite: Added unit tests for new option parsingChris St. Pierre2014-11-1010-0/+1268