summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg
Commit message (Collapse)AuthorAgeFilesLines
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-183-43/+55
| | | | | | | | | | 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.
* Add loader/environment to Jinja2 templates so that files canGordon Messmer2014-11-061-10/+35
| | | | include or extend other files.
* Fix tests to match changes to the Jinja2 code.Gordon Messmer2014-09-112-34/+36
|
* First pass at Jinja2 support for Cfg.Gordon Messmer2014-09-112-0/+91
|
* more unit test fixesChris St. Pierre2014-04-251-0/+4
|
* Merge branch 'maint'Chris St. Pierre2014-04-251-4/+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
| * testsuite: more unit test fixesChris St. Pierre2014-04-251-2/+4
| |
* | Merge branch 'maint'Chris St. Pierre2013-12-091-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Cfg: let EncryptedGenerator load setup object whenever the plugin is importedChris St. Pierre2013-12-091-3/+5
| | | | | | | | | | | | | | Previously, if CfgEncryptedGenerator was imported before the Cfg object was instantiated, it would finalize the Bcfg2.Server.Plugins.Cfg.SETUP object with a value of None, and would be unable to access the options dict.
| * testsuite: Fixed CfgPublicKeyCreator testsChris St. Pierre2013-09-161-6/+5
| | | | | | | | | | | | Instead of mocking get_filename, use its normal functionality. This avoids a messy situation where we have to mock out a **magic call, which py2.5 doesn't like at all.
* | Plugins: Added TemplateDataProvider plugin interfaceChris St. Pierre2013-10-302-13/+40
| | | | | | | | | | | | | | This lets you provide variables to the top-level namespace of templates in a more seamless way than through a Connector plugin. It's mostly useful for TemplateHelper for now, but may find other uses in the future.
* | Merge branch 'maint'Chris St. Pierre2013-09-162-32/+93
|\| | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Plugins/Cfg/CfgPublicKeyCreator.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestCfg/TestCfgPrivateKeyCreator.py
| * CfgPublicKeyCreator: properly handle case where only private key has been ↵Chris St. Pierre2013-09-162-32/+93
| | | | | | | | | | | | | | | | | | created Previously, only two cases were handled properly: both public and private keys had been created; or neither had been created. If the private key had been created (e.g., manually added to the repo), the public key would not be created from it. This fixes that.
* | Merge branch 'maint'Chris St. Pierre2013-09-091-5/+7
|\| | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Server/Plugins/Cfg/CfgAuthorizedKeysGenerator.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py
| * Cfg: Give non-specific handlers a default specificityChris St. Pierre2013-09-091-5/+7
| |
* | testsuite: fixed authorized_keys.xml tests with elimination of <Params>Chris St. Pierre2013-09-051-9/+10
| |
* | testsuite: removed obsolete can_skip variableChris St. Pierre2013-09-034-85/+81
| | | | | | | | | | | | 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: fixed unit tests for new SSLCA stuffChris St. Pierre2013-08-133-57/+37
| |
* | Rewrote SSLCA as Cfg handler.Chris St. Pierre2013-08-132-126/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds encryption support to SSL key creation (much like SSH private keys), and the ability to generate keys and certs that are specific to groups, instead of just to hosts. It also moves the SSLCA data (the XML files describing keys and certs as well as the keys and certs themselves) into the Cfg tree, rather than off in their own separate place. tools/upgrade/1.4/migrate_sslca.py can be used to migrate to the new format. This also adds XMLCfgCreator, a CfgCreator that makes it easier to create data based on XML descriptions of it (which is exactly what the SSH key and SSL CA creators do), including built-in support for host- and group-specific data, encryption, and so on.
* | testsuite: fixed unit tests for server pluginsChris St. Pierre2013-08-098-214/+112
| |
* | Merge branch 'maint'Chris St. Pierre2013-06-271-26/+27
|\| | | | | | | | | | | | | | | | | Conflicts: doc/server/plugins/generators/cfg.txt doc/server/plugins/generators/tcheetah.txt src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Plugins/Cfg/__init__.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
| * Cfg: Fixed and documented .cat and .diff file behavior with host-specific ↵Chris St. Pierre2013-06-141-7/+9
| | | | | | | | base file
| * fixed unit testsChris St. Pierre2013-06-031-19/+18
| |
* | Fixing unit testsChris St. Pierre2013-04-251-4/+2
| |
* | Merge branch 'maint'Chris St. Pierre2013-04-241-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Client.py src/lib/Bcfg2/Client/Frame.py src/lib/Bcfg2/Client/Tools/YUM.py src/lib/Bcfg2/Options.py src/lib/Bcfg2/Server/Admin/Perf.py src/lib/Bcfg2/Server/Admin/Xcmd.py src/lib/Bcfg2/Server/Admin/__init__.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/FileMonitor/Fam.py src/lib/Bcfg2/Server/Lint/RequiredAttrs.py src/lib/Bcfg2/Server/Plugin/helpers.py src/lib/Bcfg2/Server/Plugins/Base.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Cfg/CfgPrivateKeyCreator.py src/lib/Bcfg2/Server/Plugins/Cvs.py src/lib/Bcfg2/Server/Plugins/Darcs.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/FileProbes.py src/lib/Bcfg2/Server/Plugins/Fossil.py src/lib/Bcfg2/Server/Plugins/Git.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Packages/PackagesSources.py src/lib/Bcfg2/Server/Plugins/Packages/Source.py src/lib/Bcfg2/Server/Plugins/Packages/Yum.py src/lib/Bcfg2/Server/Plugins/Properties.py src/lib/Bcfg2/Server/Plugins/__init__.py src/lib/Bcfg2/Server/__init__.py src/sbin/bcfg2-build-reports src/sbin/bcfg2-crypt testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py
| * testsuite: more text fixesChris St. Pierre2013-03-261-0/+1
| |
* | use Executor class for better subprocess calling on serverChris St. Pierre2013-03-142-33/+27
| |
* | Merge branch 'master' into 1.4.xChris St. Pierre2013-02-201-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/appendix/contributors.txt schemas/bundle.xsd src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/Encryption.py src/lib/Bcfg2/Server/Lint/Genshi.py src/lib/Bcfg2/Server/Plugins/Bundler.py src/lib/Bcfg2/Server/Plugins/Decisions.py src/lib/Bcfg2/Server/Plugins/TemplateHelper.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProperties.py tools/bcfg2-profile-templates.py
| * fixed unit testsChris St. Pierre2013-02-131-1/+1
| |
* | converted InfoXML objects from XMLSrc to StructFileChris St. Pierre2013-02-062-72/+23
| |
* | moved some libraries in Bcfg2/ into more specific (Server/ or Client/) placesChris St. Pierre2013-02-051-3/+4
| |
* | made genshi a requirementChris St. Pierre2013-01-222-117/+97
| |
* | abstracted encryption support from Properties/CfgPrivateKeyCreator to StructFileChris St. Pierre2013-01-171-99/+0
| |
* | added module-level OptionParser to avoid passing it as an argument or global ↵Chris St. Pierre2013-01-176-130/+99
|/ | | | all over
* testsuite: fixed tests for decryption in Properties/CfgPrivateKeyCreatorChris St. Pierre2013-01-161-100/+104
|
* Cfg: handle filenames with regex special characters properlyChris St. Pierre2013-01-071-0/+1
|
* fixed unit testsChris St. Pierre2013-01-033-25/+27
|
* Cfg: Added feature to provide generation of SSH keys, authorized_keys fileChris St. Pierre2013-01-034-21/+727
|
* Cfg: added creator handler to perform one-time creation of static dataChris St. Pierre2012-12-201-1/+99
|
* fixed test that was "broken" when assertXMLEqual was fixedChris St. Pierre2012-12-031-4/+4
|
* testsuite: fixed assertXMLEqual comparison of XML attribute valuesChris St. Pierre2012-12-031-2/+2
|
* Templating updates:Chris St. Pierre2012-11-192-13/+28
| | | | | | * Added "repo" variable to all template formats * Made variables available in Genshi and Cheetah template more similar * Improved docs
* Cfg: prevent genshi loader from caching templatesChris St. Pierre2012-11-131-23/+14
|
* assigned Cfg handlers explicit priorities to avoid over-zealous regex matchesChris St. Pierre2012-10-171-5/+0
|
* testsuite: Fix more 'mode' testsSol Jerome2012-10-151-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* wrote more detailed unit testing documentationChris St. Pierre2012-10-058-22/+8
|
* testsuite: tried to fix a broken testChris St. Pierre2012-10-031-5/+2
|
* Cfg: fixed regexes for handling and ignoring files with different Cfg handlersChris St. Pierre2012-10-031-55/+15
|
* testsuite: fixed some assorted testsChris St. Pierre2012-10-032-3/+5
|
* testsuite: added unit tests for Cfg handlersChris St. Pierre2012-10-0210-34/+559
|