summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestMetadata.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove blanket excepts from plugins and lintChris St. Pierre2015-02-181-7/+0
| | | | | | | | | | 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.
* Plugins: refactored out unnecessary datastore constructor argumentChris St. Pierre2013-10-291-1/+2
|
* Merge branch 'maint'Chris St. Pierre2013-10-281-1/+6
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: doc/development/lint.txt misc/bcfg2.spec src/lib/Bcfg2/Reporting/Collector.py src/lib/Bcfg2/Server/Core.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/models.py testsuite/install.sh
| * Tests: Fix tests after 9a6a231Michael Fenn2013-10-041-1/+6
| | | | | | | | | | | | | | | | The addition of the call to load_xml in 9a6a231 causes the test to fail because load_xml() expects to read a clients.xml file. The actual actual open calls in write_xml are dummied out with Mock, so no file is written, and thus cannot be read back. This commit dummies out the load_xml and adds some more asserts for good measure.
* | testsuite: removed obsolete can_skip variableChris St. Pierre2013-09-031-100/+89
| | | | | | | | | | | | This was needed when we implemented skipping ourselves in a hackish way; with unittest2, skipping is implemented correctly, so tests can always be skipped
* | Merge branch 'maint'Sol Jerome2013-09-011-10/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/lib/Bcfg2/Server/BuiltinCore.py src/lib/Bcfg2/Server/Plugins/Metadata.py src/lib/Bcfg2/Server/Plugins/NagiosGen.py src/lib/Bcfg2/Server/Plugins/Probes.py src/lib/Bcfg2/Server/SSLServer.py tools/README
| * Metadata: search groups breadth-first when building metadataChris St. Pierre2013-08-151-10/+7
| | | | | | | | | | This makes category negation consistent, and also makes it work like it did in Bcfg2 1.2
* | Metadata: Clean up FAM monitoring cruftChris St. Pierre2013-08-301-29/+12
| | | | | | | | | | | | | | Removed code that supported an unused watch_clients option that permitted locally disabling FAM monitoring for Metadata; and ensured that XIncludes from clients.xml/groups.xml were always monitored (fixed in 5b66845).
* | testsuite: fixed unit tests for server pluginsChris St. Pierre2013-08-091-9/+20
| |
* | Merge branch 'maint'Chris St. Pierre2013-08-081-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | 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
| * Get profile by building metadata instead of guessingMichael Fenn2013-08-061-0/+3
| | | | | | | | | | | | Rather than doing some ad-hoc lookups of internal data structures stpierre suggested that it'd be better to use the normal metadata build procedures. This implements that and adjusts the tests.
| * Adjust testMichael Fenn2013-08-051-1/+1
| | | | | | | | Don't need to check write() because update_client() calls it
* | Merge branch 'maint'Sol Jerome2013-07-081-25/+25
|\| | | | | | | | | | | Conflicts: src/lib/Bcfg2/settings.py src/sbin/bcfg2-crypt
| * TestMetadata: Update tests for resolve_clientSol Jerome2013-06-271-25/+25
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Merge branch 'maint'Chris St. Pierre2013-04-241-3/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Handle FAM monitor failures more gracefully:Chris St. Pierre2013-03-251-3/+17
| | | | | | | | | | | | | | | | | | * Where possible, create the file or directory that is about to be monitored. This ensures that content can be added later without need to restart Bcfg2. (Otherwise, adding the monitor would fail, and so when you did create the file in question, bcfg2-server would never be notified of it.) * When not possible, give better error messages.
| * Metadata: process default client bootstrap mode properlyChris St. Pierre2013-02-141-8/+11
| |
| * moved common file locking code into Bcfg2.UtilsChris St. Pierre2013-02-141-1/+1
| |
| * added support for wildcard XInclude in XMLFileBackedChris St. Pierre2013-02-141-0/+1
| |
* | Metadata: process default client bootstrap mode properlyChris St. Pierre2013-02-141-8/+11
| |
* | moved common file locking code into Bcfg2.UtilsChris St. Pierre2013-02-141-1/+1
| |
* | added support for wildcard XInclude in XMLFileBackedChris St. Pierre2013-02-141-0/+1
| |
* | fixed unit testsChris St. Pierre2013-01-171-32/+39
| |
* | added a module-level FAM object to avoid passing it as an argument a billion ↵Chris St. Pierre2013-01-171-24/+29
|/ | | | times
* generate XML schema docs from XML schemas themselvesChris St. Pierre2012-12-101-3/+0
|
* Fixed inversion of category-group pairs from Connector plugins inChris St. Pierre2012-11-011-5/+12
| | | | ClientMetadata.categories
* fix ClientVersions tests when Django not installedChris St. Pierre2012-10-291-1/+1
|
* fixed unit testsChris St. Pierre2012-10-291-8/+9
|
* remove print statementChris St. Pierre2012-10-261-1/+0
|
* fixed Metadata unit testsChris St. Pierre2012-10-261-9/+55
|
* fixed metadata tests for get_client_names_by_profilesChris St. Pierre2012-10-171-0/+3
|
* wrote sphinx docs for base server CoreChris St. Pierre2012-10-151-4/+5
|
* wrote more detailed unit testing documentationChris St. Pierre2012-10-051-3/+3
|
* expanded pylint coverageChris St. Pierre2012-09-251-7/+7
|
* fixed tests for pylint changesChris St. Pierre2012-09-251-3/+2
|
* added server-side client metadata object cachingChris St. Pierre2012-09-051-1/+2
|
* reorganized testsuite to allow tests on stuff outside of srcChris St. Pierre2012-09-041-0/+1470