summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/test_code_checks.py
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Server requires Python2.6Alexander Sulfrian2017-03-291-2/+3
| | | | | | | | | | 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.
* testsuite: Do not run code checks on migrationsAlexander Sulfrian2016-08-171-0/+2
| | | | The migration files are autogenerated and do not need code checks.
* Ldap: Run full code style checks agains the pluginAlexander Sulfrian2015-07-241-1/+0
|
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-181-1/+4
| | | | | | | | | | 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.
* Merge branch 'maint'Alexander Sulfrian2014-11-121-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog doc/conf.py doc/releases/index.txt doc/server/database.txt doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/sslca.txt man/bcfg2.conf.5 misc/bcfg2-selinux.spec misc/bcfg2.spec osx/Makefile osx/macports/Portfile schemas/packages.xsd solaris-ips/MANIFEST.bcfg2-server.header solaris-ips/MANIFEST.bcfg2.header solaris-ips/Makefile solaris-ips/pkginfo.bcfg2 solaris-ips/pkginfo.bcfg2-server solaris/Makefile solaris/pkginfo.bcfg2 solaris/pkginfo.bcfg2-server src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Proxy.py src/lib/Bcfg2/Client/Tools/APT.py src/lib/Bcfg2/Client/Tools/Action.py src/lib/Bcfg2/Client/Tools/SYSV.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Reporting/templates/base.html src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Packages/Apt.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/settings.py src/lib/Bcfg2/version.py testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * Client/Tools/APT: fix pylint errors, enable checkAlexander Sulfrian2014-11-101-1/+2
| | | | | | | | | | | | Previously pep8/pylint checks were disable for the APT tool because there were to many errors. This fix the pylint errors and enables the code style checks.
* | First pass at Jinja2 support for Cfg.Gordon Messmer2014-09-111-0/+3
| |
* | Merge branch 'maint'Chris St. Pierre2014-04-251-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: misc/bcfg2.spec src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/APK.py src/lib/Bcfg2/Client/Tools/MacPorts.py src/lib/Bcfg2/Client/Tools/Pacman.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Server/Admin/Minestruct.py src/lib/Bcfg2/Server/Admin/Pull.py src/lib/Bcfg2/Server/Admin/Viz.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgEncryptedGenerator.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-yum-helper testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgEncryptedGenerator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * fixed pylint/pep-8 testsChris St. Pierre2014-04-251-1/+1
| |
| * testsuite: Fixed several pylint 1.0 issuesChris St. Pierre2014-02-211-1/+1
| |
| * testsuite: perform pylint tests against MultiprocessingCore when appropriateChris St. Pierre2013-08-081-1/+1
| |
* | Merge branch 'options-rewrite'Chris St. Pierre2013-08-081-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Init.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/base.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Packages/__init__.py src/lib/Bcfg2/Server/SSLServer.py src/lib/Bcfg2/Utils.py src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt src/sbin/bcfg2-info src/sbin/bcfg2-lint src/sbin/bcfg2-test src/sbin/bcfg2-yum-helper tools/bcfg2-profile-templates.py
* \ \ Merge branch 'maint'Chris St. Pierre2013-08-081-4/+6
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | | | | | Conflicts: doc/appendix/files/mysql.txt doc/getting_started/index.txt doc/server/plugins/structures/bundler/kernel.txt src/lib/Bcfg2/Server/MultiprocessingCore.py src/lib/Bcfg2/Server/Plugin/interfaces.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/Plugins/SSHbase.py
| * testsuite: Fix output for python3Sol Jerome2013-07-311-3/+3
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
| * testsuite: skip pylint checks on MultiprocessingCore on py2.5Chris St. Pierre2013-07-301-1/+3
| |
* | Merge branch '1.4.x'Chris St. Pierre2013-04-231-15/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/bcfg2-server.install doc/server/plugins/grouping/metadata.txt src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Tools/Portage.py src/lib/Bcfg2/Client/Tools/RcUpdate.py src/lib/Bcfg2/Client/Tools/YUM24.py src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Client/Tools/launchd.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/models.py src/lib/Bcfg2/Utils.py src/sbin/bcfg2-info src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py testsuite/Testsrc/test_code_checks.py
| * better Executor class for client toolsChris St. Pierre2013-02-141-6/+3
| |
| * moved some libraries in Bcfg2/ into more specific (Server/ or Client/) placesChris St. Pierre2013-02-051-2/+3
| |
| * removed magic groupsChris St. Pierre2013-01-171-1/+1
| |
| * removed deprecated tools: RPMng, YUM24, YUMngChris St. Pierre2013-01-171-3/+2
| |
| * removed deprecated plugins: TGenshi, TCheetah, Account, Hostbase, Snapshots, ↵Chris St. Pierre2013-01-171-11/+2
| | | | | | | | Statistics, Editor
* | testsuite: fix checks for pylint/pep8 on py3kChris St. Pierre2013-03-211-4/+2
| |
* | Merge branch '1.3.2' into maintChris St. Pierre2013-03-211-101/+159
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/test_code_checks.py
| * | full pylint tests on bcfg2-reportsChris St. Pierre2013-03-111-1/+1
| | |
| * | added PEP-8 style checks to test suiteChris St. Pierre2013-03-111-99/+159
| | |
| * | better Executor class for client toolsChris St. Pierre2013-02-141-5/+1
| |/
* / testsuite: fixed PYTHONPATH in pylint checksChris St. Pierre2013-03-191-5/+7
|/
* testsuite: fixed sys.path in pylint testsChris St. Pierre2012-12-141-1/+1
|
* Revert "remove exception_messages pylint extension to try to fix unit tests"Chris St. Pierre2012-12-141-2/+2
| | | | This reverts commit b71ed4ef2c9d6ad21eb1c8a4a92d902558f38886.
* remove exception_messages pylint extension to try to fix unit testsChris St. Pierre2012-12-131-2/+2
|
* testsuite: fixed PYTHONPATH for pylintChris St. Pierre2012-12-101-1/+4
|
* testsuite: test for exceptions raised without messagesChris St. Pierre2012-12-101-7/+14
|
* expanded pylint coverage to Admin modes, removed some old/broken admin modesChris St. Pierre2012-10-171-15/+3
|
* wrote sphinx docs for base server CoreChris St. Pierre2012-10-151-2/+1
|
* fix pylint unit test errorsChris St. Pierre2012-10-091-2/+3
|
* wrote more detailed unit testing documentationChris St. Pierre2012-10-051-2/+1
|
* prompt for locations of bcfg2 keypair in Init, using sane OS defaultsChris St. Pierre2012-10-031-1/+16
|
* testsuite: fixed some assorted testsChris St. Pierre2012-10-031-1/+1
|
* testsuite: expanded pylint coverageChris St. Pierre2012-10-031-5/+2
|
* testsuite: skip django pylint checks for nowChris St. Pierre2012-10-031-0/+10
|
* fixed contingencies on sbin pylint checksChris St. Pierre2012-09-281-18/+25
|
* fixed contingent pylint code checksChris St. Pierre2012-09-281-10/+27
|
* full pylint checks for bcfg2 (the client script)Chris St. Pierre2012-09-281-1/+1
|
* made YUM driver pass pylintChris St. Pierre2012-09-261-1/+0
|
* made full pylint checks the default, expanded pylint coverage to lots of toolsChris St. Pierre2012-09-261-52/+99
|
* add to path in pylint for testingChris St. Pierre2012-09-251-1/+3
|
* various pylint fixesChris St. Pierre2012-09-251-12/+13
|
* testsuite: fix path in pylint testsChris St. Pierre2012-09-251-0/+8
|
* SELinux: when selinux supports transactions but not adding modules via the ↵Chris St. Pierre2012-09-251-1/+2
| | | | API, defer module installation until after the transaction is complete
* expanded pylint coverageChris St. Pierre2012-09-251-41/+44
|