summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-repo-validate
Commit message (Collapse)AuthorAgeFilesLines
* A property file can now have a matching .xsd file (e.g.,Chris St. Pierre2011-04-131-65/+109
| | | | | | | | "Properties/foo.xml" and "Properties/foo.xsd") which specifies a schema for that property file. bcfg2-repo-validate will check the property file against its schema. Updated bcfg2-repo-validate man page with several new options.
* * Made Metadata files validate whether or not XIncludes had been processedChris St. Pierre2011-04-131-24/+25
| | | | | | * bcfg2-repo-validate does not chase XIncludes if --stdin has been specified, but just validates the Metadata files you provide on stdin
* repo-validate: Remove unused prefix optionSol Jerome2011-04-111-1/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* merged upstream changesChris St. Pierre2011-04-111-17/+15
|\
| * repo-validate: Verify genshi bundle listSol Jerome2011-04-081-19/+17
| | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | Added two flags to bcfg2-repo-validate:Chris St. Pierre2011-04-111-37/+66
|/ | | | | | | | | * --schema allows you to specify a custom path to the XML Schema files * --stdin allows you to specify a list of files on stdin and bcfg2-repo-validate will only validate those files. This is particularly useful to speed up validation checks in post-commit hooks (or similar).
* POSIX: Implement recursive attribute for nonexistent PathsSol Jerome2011-02-211-1/+1
| | | | | | | | The POSIX client tool now has the ability to recursively remove the contents of a specified directory provided there are no other managed entries under the directory. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* POSIX: Remove client-side support for old POSIX typesSol Jerome2010-10-181-18/+23
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-repo-validate: Remove non-required attributes (Reported by fearitself ↵Sol Jerome2010-09-261-3/+3
| | | | | | | | on IRC) Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6068 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Patch from Joe Digilio to fix tb in Ticket #939Sol Jerome2010-09-131-1/+2
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6055 ce84e21b-d406-0410-9b95-82705330c041
* repo-validate: Validate two levels of Group nesting (Fixes Ticket #805)Sol Jerome2010-08-271-2/+6
| | | | | | | | | | This change forces the validator to check two levels of group nesting so that we don't assume two packages are the same based only on their parent groups. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6033 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Quick hack to fix #910"Sol Jerome2010-08-141-19/+12
| | | | | | | We can achieve this behavior by setting the prefix in bcfg2.conf under the [server] section. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6019 ce84e21b-d406-0410-9b95-82705330c041
* Quick hack to fix #910Fabian Affolter2010-08-141-12/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6017 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Fix copy/paste error (Resolves Ticket #895)Sol Jerome2010-06-211-1/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5950 ce84e21b-d406-0410-9b95-82705330c041
* repo-validate: Warn when missing attributes for Path entriesSol Jerome2010-06-071-0/+33
| | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* Updated files to match PEP 257Fabian Affolter2010-06-071-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5895 ce84e21b-d406-0410-9b95-82705330c041
* Fixed XPath error with lxml 1.2.1Tim Laszlo2010-05-251-2/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5864 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Warn when multiple default groups defined (Resolves ↵Sol Jerome2010-04-211-0/+8
| | | | | | Ticket #795) Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
* bcfg2-repo-validate: Add check to verify bundle name attributeSol Jerome2010-03-091-1/+11
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5757 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Add check for genshi bundlesSol Jerome2010-02-201-2/+8
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5733 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Use proper English in error messagesSol Jerome2009-08-121-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5404 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Fix traceback when reading empty pkgmgr files (Reported ↵Sol Jerome2009-08-121-1/+4
| | | | | | | | by Joe Digilio) Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5403 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Fix for ticket #699 from Mike McCallisterSol Jerome2009-07-301-6/+5
| | | | | | | | | Only check for info.xml files in directories where they are known to exist. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5394 ce84e21b-d406-0410-9b95-82705330c041
* GroupPatterns plugin: initial implementationNarayan Desai2009-07-151-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5327 ce84e21b-d406-0410-9b95-82705330c041
* Modify bcfg2-repo-validate to warn on xml duplicates (for Ticket #643)Sol Jerome2009-05-121-1/+23
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5220 ce84e21b-d406-0410-9b95-82705330c041
* More python 2to3 updates along with pylint/code cleanupsSol Jerome2009-04-231-8/+8
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5173 ce84e21b-d406-0410-9b95-82705330c041
* Remove hacks for sets in python 2.3Sol Jerome2009-04-231-16/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5169 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement schema verificationNarayan Desai2009-03-221-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5137 ce84e21b-d406-0410-9b95-82705330c041
* Properly handle info.xml validation (Resolves Ticket #620) [bugfix]Sol Jerome2008-12-131-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4994 ce84e21b-d406-0410-9b95-82705330c041
* Add schema support for new Decisions pluginNarayan Desai2008-10-081-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4934 ce84e21b-d406-0410-9b95-82705330c041
* Add discard() method for use with listsSol Jerome2008-09-031-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4900 ce84e21b-d406-0410-9b95-82705330c041
* Perform schema checks for all Xinclude files in groups.xmlSol Jerome2008-08-221-13/+32
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4890 ce84e21b-d406-0410-9b95-82705330c041
* Add warning for missing bundles in bcfg2-repo-validate (Resolves Ticket #579)Sol Jerome2008-08-221-0/+21
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4888 ce84e21b-d406-0410-9b95-82705330c041
* Force schema checks for all info.xml files.Sol Jerome2008-08-041-9/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4847 ce84e21b-d406-0410-9b95-82705330c041
* Fix handling of info.xml files in svn reposNarayan Desai2008-04-161-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4544 ce84e21b-d406-0410-9b95-82705330c041
* Implement xml schema checks for info.xml files (from Sol Jerome) (Resolves ↵Narayan Desai2008-01-211-11/+33
| | | | | | Ticket #514) [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4269 ce84e21b-d406-0410-9b95-82705330c041
* Fix option parsing for bcfg2-repo-validateNarayan Desai2008-01-181-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4264 ce84e21b-d406-0410-9b95-82705330c041
* Switch over to more Options usage and complete tests (everything appears to ↵Narayan Desai2007-12-311-17/+16
| | | | | | work now) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4142 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: use Bcfg2.SettingsRobert Gogolok2007-12-301-16/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4135 ce84e21b-d406-0410-9b95-82705330c041
* Finish validation fixes for xinclude schemasNarayan Desai2007-01-161-7/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2680 ce84e21b-d406-0410-9b95-82705330c041
* Metadata improvementsNarayan Desai2007-01-081-1/+1
| | | | | | | | * XInclude support -- now clients.xml and groups.xml can include secondary files * Schema updates for XInclude and group comments git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2631 ce84e21b-d406-0410-9b95-82705330c041
* Fix report configuration indirectly found by the lxml problems experienced ↵Narayan Desai2007-01-041-1/+1
| | | | | | by DavidI git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2622 ce84e21b-d406-0410-9b95-82705330c041
* Perm fixupNarayan Desai2006-09-151-0/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2271 ce84e21b-d406-0410-9b95-82705330c041
* Add a chdir to work around odd libxml2 bug on freebsdNarayan Desai2006-08-261-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2118 ce84e21b-d406-0410-9b95-82705330c041
* Add -C option to bcfg2-repo-validate (resolves Ticket #97)Narayan Desai2006-08-221-11/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2083 ce84e21b-d406-0410-9b95-82705330c041
* Patch of Jos to add server installation prefix supportNarayan Desai2006-07-141-3/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1953 ce84e21b-d406-0410-9b95-82705330c041
* Fix schema validation of base filesNarayan Desai2006-07-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1947 ce84e21b-d406-0410-9b95-82705330c041
* Add basic dependency processing codeNarayan Desai2006-07-101-1/+2
| | | | | | | | | * To enable, add a Deps directory and enable the Deps plugin * schema validation works * prerequisites are automatically added to configurations git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1924 ce84e21b-d406-0410-9b95-82705330c041
* Fix failure mode if failure count == 256Narayan Desai2006-04-191-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1844 ce84e21b-d406-0410-9b95-82705330c041
* Return non-zero return codes if any errors occurNarayan Desai2006-04-191-0/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1843 ce84e21b-d406-0410-9b95-82705330c041