summaryrefslogtreecommitdiffstats
path: root/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: No doc test is the defaultAlexander Sulfrian2017-03-291-1/+1
| | | | | For the doc test all (optional) dependencies have to be installed, so the doc test is only usefull in a few special test environments.
* testsuite: Support for ancient pylint versionsAlexander Sulfrian2017-03-293-3/+286
| | | | | | | | | | | | | | | | | For Python2.4 and Python2.5 we need very old pylint versions (0.21.x). So we have to work around some bugs: - This adds some ugly monkey patching to backport some bugfixes from newer pylint versions (that does not support Python2.4 anymore). - Another problem is, that pylint-0.24 changed its message IDs. So this translates the new IDs into the older ones, so that the old pylint can match the disabled messages. - The newer version of pylint support more messages and some of the new messages have to be disabled. The old pylint versions have to silently ignore unknown message ids. - The compatible astng version of the old pylint does not support register_transformer, so we need to build out own variant by monkey patching the ASTNGBuilder.
* testsuite: ExceptionMessageChecker support for old pythonAlexander Sulfrian2017-03-291-3/+8
|
* testsuite: Server requires Python2.6Alexander Sulfrian2017-03-292-2/+4
| | | | | | | | | | We do not want to run the test for the Server with Python2.4 and Python2.5 and use the nose-exclude plugin to disable the Server tests based on the directory. We do not even want to import the modules of the Server, as it might not be possible anymore (missing dependencies or invalid syntax). nose-exclude-0.2 breaks compatibility with Python2.5 and below (it is using the "with open(..):" syntax), so we have to stick to the last version below.
* travis-ci: Also run tests with python2.4 and python2.5Alexander Sulfrian2017-03-293-20/+45
|
* travis-ci: Cache wheels for python depsAlexander Sulfrian2017-03-291-6/+12
| | | | | | The python dependencies are only build once to create the wheel and cached using the travis-ci infrastructure. All builds afterwards will be faster because the cached version is used.
* travis-ci: Cache common xml schema filesAlexander Sulfrian2017-03-292-3/+28
|
* travis-ci: Use container-based infrastructureAlexander Sulfrian2017-03-291-6/+0
| | | | | | The new travis infrastructure is container-based and does not allow the use of sudo, but travis allows to install whitelisted apt packages (http://docs.travis-ci.com/user/migrating-from-legacy/).
* Merge pull request #362 from AlexanderS/fix/missing-config-fileAlexander Sulfrian2017-03-101-2/+6
|\ | | | | Options: Missing config file is not a fatal error
| * TestOptions: Do not try to parse the cmd args of the testsAlexander Sulfrian2016-10-041-2/+3
| |
| * testsuite: Missing config file should not raise SystemExit anymoreAlexander Sulfrian2016-09-281-1/+4
| |
* | testsuite: Use python-augeas from PyPI with pipAlexander Sulfrian2017-03-071-2/+1
| | | | | | | | | | | | fedorahosted.org was retired on March 1st, 2017. So we need to pull python-augeas from anywhere else, let's simply install it with pip from PyPI.
* | testsuite: Restrict the sphinx versionAlexander Sulfrian2017-01-101-1/+1
| | | | | | | | | | The current version of sphinx has problems fetching the intersphinx inventory files: https://github.com/sphinx-doc/sphinx/issues/3234
* | testsuite: Fix XMLSyntaxError initializationArach2017-01-101-2/+1
| | | | | | | | lxml-3.7.0 requires integers as arguements for XMLSyntaxError.
* | Merge pull request #345 from AlexanderS/fix/django-1.10Alexander Sulfrian2017-01-101-1/+1
|\ \ | |/ |/| Fixes for django 1.10
| * testsuite: Bump django versionAlexander Sulfrian2016-08-181-1/+1
| | | | | | | | We should be compatible with django-1.10 now.
* | testsuite: Use TestDatabaseBacked for Probes, tooAlexander Sulfrian2016-09-121-3/+3
| |
* | testsuite: Increase verbosity of management commandsAlexander Sulfrian2016-09-121-2/+2
| | | | | | | | This helps debugging on errors.
* | testsuite: Unlink database before syncingAlexander Sulfrian2016-09-121-9/+20
| | | | | | | | | | This prevents false test results with database files staying around in the local development directory.
* | testsuite: Only sync the database once per TestCaseAlexander Sulfrian2016-09-054-11/+13
|/
* testsuite: Add missing optional dependenciesAlexander Sulfrian2016-08-181-2/+3
|
* doc: Add unit test to check for errors/warnings in docAlexander Sulfrian2016-08-181-0/+39
|
* 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: Do not run code checks on migrationsAlexander Sulfrian2016-08-171-0/+2
| | | | The migration files are autogenerated and do not need code checks.
* testsuite: Use django<1.10Alexander Sulfrian2016-08-171-1/+1
| | | | | | | We currently have a problem with django 1.10 because url.patterns is removed and we need to change the format of the url mappings: https://docs.djangoproject.com/en/1.9/ref/urls/#patterns
* 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.
* travis-ci: Use django1.6 for python2.6.Alexander Sulfrian2016-08-171-5/+8
| | | | Python2.6 support was dropped in django-1.7.
* travis-ci: Bump django dependencyAlexander Sulfrian2016-08-171-2/+2
|
* travis-ci: Fix installation of dependenciesAlexander Sulfrian2016-08-171-2/+2
| | | | | | This is just a quick fix: The new version of pip on travis does fail when using the --use-mirrors option (to be fair, the option was deprecated long time ago).
* Merge branch 'fix/mock-patch' of https://github.com/AlexanderS/bcfg2Sol Jerome2016-01-272-5/+8
|\
| * testsuite: Remove legacy CamelCase mock callsAlexander Sulfrian2016-01-221-4/+4
| | | | | | | | Newer versions of mock, does not support the CamelCase calls.
| * 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.
* | Merge branch 'tests-secontext' of https://github.com/gordonmessmer/bcfg2Sol Jerome2016-01-201-2/+24
|\ \ | |/ |/|
| * Set secontext attribute to a full ucontext value, as the bcfg2 server will ↵Gordon Messmer2015-11-191-1/+1
| | | | | | | | generate
| * Mock out selinux.lgetfileconGordon Messmer2015-11-191-1/+23
| |
* | Merge pull request #299 from AlexanderS/fix/cachingChris St. Pierre2015-10-052-5/+17
|\ \ | | | | | | Expire metadata cache in all Connector plugins.
| * | Properties: Expire the metadata cache during reload of the filesAlexander Sulfrian2015-07-271-3/+12
| | |
| * | TemplateHelper: Expire metadata cache on FileMonitor eventAlexander Sulfrian2015-07-271-2/+5
| | |
* | | Merge branch 'fix/django1.7' of https://github.com/AlexanderS/bcfg2Sol Jerome2015-10-011-0/+4
|\ \ \
| * | | update testsuite for django 1.7Jonas Jochmaring2015-09-231-0/+4
| | |/ | |/|
* / | testsuite: metadata.bundles shoud be a set()Alexander Sulfrian2015-09-301-2/+2
|/ /
* | Merge branch 'rules-replace_name' of https://github.com/AlexanderS/bcfg2Sol Jerome2015-09-013-9/+37
|\ \
| * | testsuite: Fix debug messages to handle xml with a '%' insideAlexander Sulfrian2015-08-261-9/+10
| | |
| * | Rules: New options replace_name to replace %{name} in attributesAlexander Sulfrian2015-08-262-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you use the regex feature of Rules/Defaults you may need the real name of the matched entry in an attribute (for example home of POSIXUser). You can now enable replace_name for rules or defaults and %{name} will be replaces in the attribues of the Element before adding them to the target entry. This allows you to write something like that in Defaults to assing a default home directory somewhere else to all users with unset home: <POSIXUser name='.*' home='/somewhere/%{name}'/>
* | | Merge pull request #292 from AlexanderS/fix-options-defaultChris St. Pierre2015-07-282-2/+11
|\ \ \ | | | | | | | | Options: Set default values from config, right after adding a new option
| * | | Options: Add test to use config value for options from loaded componentsAlexander Sulfrian2015-07-222-2/+11
| |/ /
* | | Ldap: Run full code style checks agains the pluginAlexander Sulfrian2015-07-241-1/+0
| | |
* | | Utils: Generalize safe_module_nameAlexander Sulfrian2015-07-241-10/+16
| |/ |/| | | | | | | Other plugins that also import user generated python source code, may want to use safe_module_name from TemplateHelper.
* | Merge branch 'fix-date-format' of https://github.com/AlexanderS/bcfg2Sol Jerome2015-07-232-9/+12
|\ \
| * | testsuite/common: Add the new option.Alexander Sulfrian2015-07-231-0/+1
| | |