summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* These are the same versions from changeset 1837shadoi2006-12-152-26/+33
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1932 980ebf18-57e1-0310-9a29-db15c13687c0
* Some rails modificationsluke2006-12-152-7/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1931 980ebf18-57e1-0310-9a29-db15c13687c0
* Rename some stuff I missed when it was revertedshadoi2006-12-151-3/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1928 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving the mount provider tests into a subdir, and fixing the basedir ↵luke2006-12-143-16/+3
| | | | | | calculation in tests so it does not matter where the test is called from git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1926 980ebf18-57e1-0310-9a29-db15c13687c0
* New rails stuff redux.shadoi2006-12-146-33/+54
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1925 980ebf18-57e1-0310-9a29-db15c13687c0
* Small changes to the test rakefile. This rakefile still is not completely ↵luke2006-12-141-2/+2
| | | | | | satisfactory, as I cannot use it to load all libs but only run on test method, which is often important when trying to track down a bug that only occurs when multiple files are loaded. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1924 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing painfully difficult to find bug in defining exported resourcesluke2006-12-141-7/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1922 980ebf18-57e1-0310-9a29-db15c13687c0
* Reworking the package tests. Now providers are tested individuallyluke2006-12-146-499/+302
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1921 980ebf18-57e1-0310-9a29-db15c13687c0
* Rewriting the test rakefile so test directories can be more than one ↵luke2006-12-143-41/+56
| | | | | | directory deep. This will be particularly useful for providers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1920 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug fixing. Now everything passes except mounts, at least ↵luke2006-12-138-78/+34
| | | | | | on OS X. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1918 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the next round of bugs, mostly little things but I had to modify ↵luke2006-12-135-22/+46
| | | | | | transactions so they are willing to delete implicit resources even if they have dependencies, else we would often not be able to purge files at all. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1917 980ebf18-57e1-0310-9a29-db15c13687c0
* You can now use the "resources" type to purge resources. I still need to ↵luke2006-12-132-2/+32
| | | | | | modify transactions so they do not purge resources that have relationships. Also, apparently the noop metaparam was never actually working; now it is, and there is a test for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1915 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a metatype to manage resources of a specified type. For now, this ↵luke2006-12-125-8/+133
| | | | | | metatype just supports purging unmanaged resources. Also, fixed a few tests here and there git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1912 980ebf18-57e1-0310-9a29-db15c13687c0
* Working some on the export/collect problem. It actually works now, but ↵luke2006-12-122-1/+45
| | | | | | there are not yet sufficient tests for it, so I will leave the bug open until we have got the new work in place. I also added a "rails" feature, so I do not have to keep testing whether ActiveRecord is defined. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1911 980ebf18-57e1-0310-9a29-db15c13687c0
* All tests should now pass, with the possible exception of some tests that ↵luke2006-12-114-90/+42
| | | | | | might fail when all tests are run in one process. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1906 980ebf18-57e1-0310-9a29-db15c13687c0
* Almost all tests now pass. I have basically reached the point where I was ↵luke2006-12-115-13/+116
| | | | | | before I integrated graphing, except that all of the relationship handling is now inside the transaction, and any kind of recursion (including file) is *tons* easier to model and manage. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1905 980ebf18-57e1-0310-9a29-db15c13687c0
* Most tests now pass in the whole system, but there are still about 8 cases ↵luke2006-12-114-2/+51
| | | | | | that do not work. I am working on those now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1904 980ebf18-57e1-0310-9a29-db15c13687c0
* Most of the graph handling is now done, and all of the recursive types ↵luke2006-12-108-302/+102
| | | | | | (basically just file, tidy, and component) now correctly use the generation mechanisms in the transactions, instead of sticking them in their @children array. Now I just need to go through the rest of the tests and make sure everything passes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1901 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the symlink type finally.luke2006-12-101-117/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1900 980ebf18-57e1-0310-9a29-db15c13687c0
* Another intermediate commit. Most of the graphing work itself is now done, ↵luke2006-12-094-94/+728
| | | | | | but I am in the middle of converting files to use the graphs and at the same time am writing some actually decent tests for the file recursion stuff. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1899 980ebf18-57e1-0310-9a29-db15c13687c0
* Most of the graphing work is now done. I have also added the generator work ↵luke2006-12-018-161/+402
| | | | | | in transactions, but I need to migrate files to using it. Until that migration is done, files will not work correctly for many cases. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1896 980ebf18-57e1-0310-9a29-db15c13687c0
* Intermediate commit -- I am ready to start pushing the graph stuff into the ↵luke2006-11-267-32/+224
| | | | | | types and transactions, which will break everything for a little while. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1894 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding GRATR and the beginnings of graph integration.luke2006-11-171-0/+135
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1892 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #342. Classes needed to have their namespaces set to their fully ↵luke2006-11-171-0/+34
| | | | | | qualified names, so that contained code and definitions looked for definitions starting with that fq name. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1890 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing mount tests after fixing the backward compatibilityluke2006-11-171-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1889 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing backwards compatibility in mounts -- they were not correctly copying ↵luke2006-11-161-5/+24
| | | | | | the path over to the name git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1888 980ebf18-57e1-0310-9a29-db15c13687c0
* Another testing fixluke2006-11-131-1/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1877 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing more testsluke2006-11-132-229/+230
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1876 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixes to the test system, and a couple of small fixes to the main code. ↵luke2006-11-134-170/+199
| | | | | | Also, disabled the "port" type, because I cannot seem to model it correctly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1875 980ebf18-57e1-0310-9a29-db15c13687c0
* Temporarily reverting all of the recent rails work so that I can release 0.20.1luke2006-11-134-41/+38
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1873 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #339, and the bigger problem it concealed. Metaparams are now only ↵luke2006-11-132-1/+8
| | | | | | added to resources that do not explicitly set them. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1869 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing some debugging, and trying to track down a bug where symlinks get ↵luke2006-11-131-0/+3
| | | | | | recreated for now reason git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1867 980ebf18-57e1-0310-9a29-db15c13687c0
* Ported sshkey over, yay.luke2006-11-131-0/+62
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1866 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a NetInfo provider for hosts. Yay!luke2006-11-131-0/+58
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1865 980ebf18-57e1-0310-9a29-db15c13687c0
* Hosts now work again, and it should be straightforward to create a netinfo ↵luke2006-11-134-122/+131
| | | | | | provider, too. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1864 980ebf18-57e1-0310-9a29-db15c13687c0
* Ports are still broken, but I need to work on something else while I am ↵luke2006-11-136-56/+12180
| | | | | | thinking about how to fix them. Stupid /etc/services. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1863 980ebf18-57e1-0310-9a29-db15c13687c0
* Trying to get a netinfo provider for mounts working, but i give up. I am ↵luke2006-11-121-0/+80
| | | | | | leaving it in place but marked as highly experimental. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1860 980ebf18-57e1-0310-9a29-db15c13687c0
* Mounts work again, at least with the parsedfile provider. I still need to ↵luke2006-11-125-114/+387
| | | | | | create a netinfo provider, but it should be short and easy. And, painfully, I still need to port the other six or so subclasses to this new provider. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1859 980ebf18-57e1-0310-9a29-db15c13687c0
* Doing some refactoring in how state values are set. The primary motivation ↵luke2006-11-111-13/+129
| | | | | | was to provide the ability for the "newvalue" method to specify whether the provider should still be called, and if so, in what order (e.g., before or after). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1858 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the state class so that blocks are optional for values. This is ↵luke2006-11-111-3/+52
| | | | | | useful for cases where you want to specify values for validation but you want a method called on the provider instead. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1857 980ebf18-57e1-0310-9a29-db15c13687c0
* An intermediate commit. All of the classes that use parsedfile are ↵luke2006-11-113-0/+445
| | | | | | | | assuredly broken, since I have basically completely rewritten it. These classes have been a thorn in my side almost since I created them, yet they have been significantly less functional that I wanted. So, I decided to do the rewrite I have been putting off, just to spend all of the maintenance time now so I do not spend 3 days on them every release. Tomorrow I will be porting all of the existing types (including cron, hopefully) over to this new base. This will also make it possible to add other types of providers to these classes; we should be able to reuse the netinfo provider for os x types, and we should be able to create a cron provider that writes to /etc/crontab instead of user crontabs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1856 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding module for parsing files. This module is only included into the ↵luke2006-11-101-0/+365
| | | | | | parsedfile provider base class, but it is cleaner to have it broken out like this. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1855 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix silly regexp mistake where lines with values containing '=' were parsed ↵lutter2006-11-101-2/+2
| | | | | | improperly. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1854 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some warningsluke2006-11-101-0/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1853 980ebf18-57e1-0310-9a29-db15c13687c0
* Mostly small changes toward 0.20.1luke2006-11-103-9/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1852 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #324. Mkusers was not specifically ignoring the root user, and it is ↵luke2006-11-091-0/+42
| | | | | | now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1851 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing #327; debian packages now correctly register their "latest" statusluke2006-11-091-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1848 980ebf18-57e1-0310-9a29-db15c13687c0
* Small fixes here and there. The rails changes needs to be pushed through ↵luke2006-11-091-2/+2
| | | | | | the collection code, so I am committing so Blake can take a look at that. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1844 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing rrdgraph report (as marked in #334); also, expanding the docs on all ↵luke2006-11-091-1/+17
| | | | | | of the existing reports. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1839 980ebf18-57e1-0310-9a29-db15c13687c0
* Rails stuff part 1shadoi2006-11-094-38/+41
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1837 980ebf18-57e1-0310-9a29-db15c13687c0