summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-repo-validate
Commit message (Collapse)AuthorAgeFilesLines
* repo-validate: Recreate as a symlink to bcfg2-lintSol Jerome2011-04-201-0/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Rewrote bcfg2-repo-validate as bcfg2-lint, which uses a pluginChris St. Pierre2011-04-201-328/+0
| | | | | | | | | interface to be lots more flexible and extensible. Added several more tests. If bcfg2-lint is run as bcfg2-repo-validate, it roughly emulates the functionality of that program. TODO: Need to figure out correct way to symlink bcfg2-repo-validate to bcfg2-lint on install.
* fixed XInclude magic and determination of whether a file is a client or ↵Chris St. Pierre2011-04-151-19/+49
| | | | group file
* fixed typo from mergeChris St. Pierre2011-04-141-1/+1
|
* resolved bcfg2-repo-validate conflictsChris St. Pierre2011-04-141-4/+5
|\
| * Merge branch 'py3k'Sol Jerome2011-04-131-5/+5
| |\
| | * src/sbin: PY3K + PEP8 fixesSol Jerome2011-04-131-5/+5
| | | | | | | | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* | | only check for multiple default groups if groups.xml is included in validationChris St. Pierre2011-04-141-9/+8
| | |
* | | 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