summaryrefslogtreecommitdiffstats
path: root/testsuite/common.py
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Ignore failing syncdbAlexander Sulfrian2016-08-171-2/+6
| | | | | | Since we have migrations for Bcfg2.Server syncdb fails for every call but the first one with a ImproperlyConfigured exception because it cannot find Bcfg2.Reporting. We simply ignore this and all test are working.
* testsuite: Drop 'syncdb' for newer versions of djangoAlexander Sulfrian2016-08-171-4/+6
| | | | | | With django>=1.7 'syncdb' is not needed anymore, all stuff is handled with 'migrate' now. The django.setup call is not needed there, because the models have to call it before definition.
* testsuite: Newer version of mock require different importsAlexander Sulfrian2016-01-221-1/+4
| | | | | | Be flexible and support the imports required by newer versions of the mock package (>1.1.0). Because this new version is not available on all distributions we are flexible and also support the old style.
* update testsuite for django 1.7Jonas Jochmaring2015-09-231-0/+4
|
* Merge branch 'rules-replace_name' of https://github.com/AlexanderS/bcfg2Sol Jerome2015-09-011-9/+10
|\
| * testsuite: Fix debug messages to handle xml with a '%' insideAlexander Sulfrian2015-08-261-9/+10
| |
* | testsuite/common: Add the new option.Alexander Sulfrian2015-07-231-0/+1
|/
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-181-0/+27
| | | | | | | | | | This removes most blanket except: clauses from all plugins, including the base plugin libraries, and bcfg2-lint. The few that remain should all be necessary. Most of the changes were quite minor, but this did require some restructuring of the CfgPrivateKeyCreator; as a result, the tests for that module were rewritten.
* DBSettings: Fix time_zone option.Alexander Sulfrian2015-01-281-1/+1
| | | | | In the documentation, in the 1.3.x version and in django this option is called time_zone (and not timezone). There is no reason to change this.
* testsuite/common.py: Default to using unittest2Sol Jerome2014-12-191-2/+2
| | | | | | Only fallback to unittest if unittest2 is unavailable. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* testsuite: better debug capturing for options testsChris St. Pierre2014-11-101-0/+6
|
* testsuite: capture stderr by defaultChris St. Pierre2014-11-101-0/+13
| | | | This quiets down a lot of tests, especially for option parsing.
* Merge branch 'maint'Chris St. Pierre2013-12-091-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/guides/fedora.txt misc/bcfg2.spec schemas/types.xsd src/lib/Bcfg2/Encryption.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Client.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Lint/Validate.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgEncryptedGenerator.py src/lib/Bcfg2/Server/Plugins/Probes.py src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgEncryptedGenerator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py testsuite/common.py testsuite/install.sh
| * testsuite: fixed local implementation of assertItemsEqualChris St. Pierre2013-12-051-2/+5
| |
| * Tools: new Augeas driverChris St. Pierre2013-12-051-17/+36
| |
* | Options: made unit test flag publicChris St. Pierre2013-11-121-1/+1
| |
* | Options: added workaround for unit tests that use the parserChris St. Pierre2013-11-121-0/+3
| |
* | DB: fixed how Django settings are loadedChris St. Pierre2013-10-301-7/+5
| |
* | Plugins: refactored out unnecessary datastore constructor argumentChris St. Pierre2013-10-291-5/+6
| |
* | testsuite: removed obsolete can_skip variableChris St. Pierre2013-09-031-3/+0
| | | | | | | | | | | | This was needed when we implemented skipping ourselves in a hackish way; with unittest2, skipping is implemented correctly, so tests can always be skipped
* | testsuite: use unittest2 on py<2.7 instead of writing everything ourselvesChris St. Pierre2013-09-031-169/+9
| |
* | testsuite: rewrote Rules/Defaults tests to be actually usefulChris St. Pierre2013-08-291-17/+25
| |
* | testsuite: fixed unit tests for server pluginsChris St. Pierre2013-08-091-10/+23
| |
* | testsuite: fixed base database test classChris St. Pierre2013-08-091-5/+6
| |
* | testsuite: fixed client testsChris St. Pierre2013-08-091-0/+6
| |
* | testsuite: improved error messages from assertXMLEqualChris St. Pierre2013-02-081-4/+12
|/
* testsuite: fixed assertXMLEqual comparison of XML attribute valuesChris St. Pierre2012-12-031-4/+5
|
* wrote more detailed unit testing documentationChris St. Pierre2012-10-051-21/+124
|
* testsuite: unit tests for Cfg plugin and base handlersChris St. Pierre2012-10-021-0/+7
|
* wrote unit tests for PropertiesChris St. Pierre2012-09-271-6/+2
|
* unittests: define assertNotRegexpMatches separately from assertRegexpMatchesChris St. Pierre2012-09-071-0/+5
|
* unittests: add regex assertions to the Bcfg2TestCase base object as necessaryChris St. Pierre2012-09-071-78/+72
|
* testsuite: fixed patchIf() for intermediate versions of mockChris St. Pierre2012-09-071-32/+19
|
* testsuite: fixed syncdb for Django 1.4Chris St. Pierre2012-09-071-3/+3
|
* fixed some of our unittest convenience methodsChris St. Pierre2012-09-051-2/+8
|
* added assertRegexpMatches to Bcfg2TestCase for compatChris St. Pierre2012-09-041-1/+12
|
* removed or fixed functools importsChris St. Pierre2012-08-231-1/+6
|
* fixed patchIf() (I hope)Chris St. Pierre2012-08-221-18/+59
|
* fixed skip decoratorsChris St. Pierre2012-08-221-22/+9
|
* add an argument, don't remove it in patchIf()Chris St. Pierre2012-08-221-1/+1
|
* remove extra argument in patchIf() the right wayChris St. Pierre2012-08-221-1/+1
|
* patchIf() adds arguments to function callsChris St. Pierre2012-08-221-1/+11
|
* fixed assertItemsEqual for py < 2.7Chris St. Pierre2012-08-221-31/+5
|
* fixed conditional patching of pylibacl/selinux methods for py2.6Chris St. Pierre2012-08-221-0/+15
|
* removed context managers from unit testsChris St. Pierre2012-08-211-2/+2
|
* lots of various py3k fixesChris St. Pierre2012-08-211-36/+129
|
* fixed builtin mocks for py3kChris St. Pierre2012-08-211-0/+10
|
* attempt to get tests working under python 2.6Chris St. Pierre2012-08-211-4/+79
|
* abstracted out some common test stuff into common.pyChris St. Pierre2012-08-131-0/+77