summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding a ruby header to all of the tests so that they can now be executed as ↵luke2006-10-1641-13/+69
| | | | | | normal ruby scripts. Using multiple commits because I am having some svn problems. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1791 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a ruby header to all of the tests so that they can now be executed as ↵luke2006-10-1611-0/+22
| | | | | | normal ruby scripts. Using multiple commits because I am having some svn problems. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1790 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a ruby header to all of the tests so that they can now be executed as ↵luke2006-10-164-0/+8
| | | | | | normal ruby scripts. Using multiple commits because I am having some svn problems. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1789 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a ruby header to all of the tests so that they can now be executed as ↵luke2006-10-165-0/+10
| | | | | | normal ruby scripts. Using multiple commits because I am having some svn problems. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1788 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a ruby header to all of the tests so that they can now be executed as ↵luke2006-10-1624-0/+48
| | | | | | normal ruby scripts. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1787 980ebf18-57e1-0310-9a29-db15c13687c0
* Making all test suites executable, adding some tests for handling changing ↵luke2006-10-1635-0/+121
| | | | | | files from one type to another, and fixing #304. The problem with #304 was only occurring when backing up to a filebucket (I can only think the example code was wrong) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1786 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #291 -- the problem was that instead of throwing an error on a ↵luke2006-10-161-0/+2
| | | | | | missing server, puppet was just exiting. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1785 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving all of the configuration parameters out of puppet.rb into ↵luke2006-10-161-0/+15
| | | | | | puppet/configuration.rb, and adding a PATH setting as requested in #307, although it does not include a default. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1784 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding the ability to have hooks for configuration parameters. This will ↵luke2006-10-161-1/+55
| | | | | | simplify things like setting the shell path. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1783 980ebf18-57e1-0310-9a29-db15c13687c0
* I was stupidly creating an error but not raising it.luke2006-10-111-0/+20
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1767 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the problem reported by Adnet Ghislain where facts do not load on ↵luke2006-10-092-2/+19
| | | | | | later runs. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1757 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #298 - refreshonly now correctly deals with specified false valuesluke2006-10-091-1/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1751 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #305 -- logs now reopen when Puppet restarts, and there is also now ↵luke2006-10-091-0/+45
| | | | | | an autoflush mechanism available so logs will flush to disk immediately. I also now trap USR2 and reopen logs when it is sent, so if you just want to reopen logs you do not have to restart the whole process. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1750 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #309 -- files now correctly replace any number of slashes with a ↵luke2006-10-091-0/+15
| | | | | | single slash. Also, trailing slashes are removed, since that is how Puppet expects to find files internally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1749 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #310 -- users no longer autorequire their homedirs, and files now ↵luke2006-10-092-1/+33
| | | | | | autorequire their owner and group. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1747 980ebf18-57e1-0310-9a29-db15c13687c0
* Refactoring reporting. Reports are now modules instead of simple methods.luke2006-10-074-80/+183
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1746 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "genmodule" equivalent to classgen, which we will use for reportingluke2006-10-071-5/+134
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1745 980ebf18-57e1-0310-9a29-db15c13687c0
* Many, many, many performance improvements in the compiler (I hope). I did ↵luke2006-10-067-5/+26
| | | | | | not change functionality anywhere, but I did some profiling and significantly reduced the runtime of many methods, and especially focused on some key methods that run many times. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1739 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing weird case where the default node is in one node source and the real ↵luke2006-10-051-0/+35
| | | | | | node is in a different one git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1734 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing ldap nodes -- they were always returning true because i was returning ↵luke2006-10-051-1/+17
| | | | | | an empty array for missing nodes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1733 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the changes from the override-refactor branch. This is a ↵luke2006-10-0457-1883/+3035
| | | | | | significant rewrite of the parser, but it has little affect on the rest of the code tree. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1726 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing suidmanager so it uses warnonce instead of using a variable that only ↵luke2006-09-291-2/+2
| | | | | | existed in Util git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1705 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing reported problem of crons rewriting every time when the environment ↵luke2006-09-281-0/+4
| | | | | | is set git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1701 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing what I hope are the last batch of problems caused by the addition of ↵luke2006-09-274-35/+39
| | | | | | the suidmanager module. Also fixing a couple of other small issues that somehow cropped up. All tests should now pass again. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1699 980ebf18-57e1-0310-9a29-db15c13687c0
* Just fixed some RCS/CVS id tags.ajax2006-09-271-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1698 980ebf18-57e1-0310-9a29-db15c13687c0
* File types were dying silently on OS X when the group specified in the ↵ajax2006-09-271-2/+6
| | | | | | | | | manifest was not a valid group. The code now generates some errors, but current behavior doesn't raise fatal exceptions git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1695 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing SUIDManager#asuser so that it only resets egid and euid if they were ↵luke2006-09-261-0/+1
| | | | | | changed git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1693 980ebf18-57e1-0310-9a29-db15c13687c0
* ! rename file because rake_test_loader is dumb.erikh2006-09-221-0/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1675 980ebf18-57e1-0310-9a29-db15c13687c0
* + New assertion: assert_uid_gid will check that the UID and GID have been ↵erikh2006-09-223-15/+59
| | | | | | | | | | changed to the proper values. This uses a fork and a FIFO to achieve it's checking. ! nonrootuser and nonrootgroup now only return users/groups that are less than 255, due to the "Darwin debacle" ! many, many, many fixes for suidmanager. This is rather embarassing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1674 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the fix to server/master.rbluke2006-09-221-1/+54
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1673 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some test reportsluke2006-09-222-0/+216
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1667 980ebf18-57e1-0310-9a29-db15c13687c0
* + Puppet::SUIDManager - This replaces all calls to the built-in ruby ↵erikh2006-09-2219-35/+106
| | | | | | | | | | | 'Process' library for uid/gid/euid/egid operations, including (not surprisingly) Puppet::Util#asuser and a method to run commands and capture output. This is due to many inconsistencies (through bugfixes) between ruby versions in the 1.8.x branch. This is included in the core puppet library and can be used by all puppet types and providers. ! Modified Puppet::Util#uid to check (and warn) if passed a nil value. ! Changes to use Puppet::SUIDManager instead of Process and relevant Puppet::Util calls. ! Removed Puppet::Util#asuser. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1666 980ebf18-57e1-0310-9a29-db15c13687c0
* As requested by Christian Warden, triggering an object now results inluke2006-09-223-7/+28
| | | | | | | | an event, which can result in further triggers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1660 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some error handling for when a non-existent report is asked for, and ↵luke2006-09-211-0/+19
| | | | | | adding a bit more testing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1659 980ebf18-57e1-0310-9a29-db15c13687c0
* Switching Autoload#loadall from using "load" to using "require", so it will ↵luke2006-09-211-3/+0
| | | | | | not reload already-loaded files. Also updating the checksum docs a bit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1657 980ebf18-57e1-0310-9a29-db15c13687c0
* Disabling a test on solaris, since apparently sh on solaris is different ↵luke2006-09-211-0/+2
| | | | | | than everywhere else git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1654 980ebf18-57e1-0310-9a29-db15c13687c0
* Small test fixes in preparation for 0.19.2luke2006-09-212-6/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1653 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding class list method to group. Also added a test to verify every type ↵luke2006-09-211-0/+11
| | | | | | responds to "list", but it does not pass right now so it is disabled. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1652 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding an Autoload instance to Type.rb so that I can load all known types ↵luke2006-09-211-1/+9
| | | | | | for documentation purposes. And, of course, loading all types in puppetdoc. Also updating zone.rb to fix markdown's stupidity in trying to interpret the ERB template, and adding some timeouts to puppettest.rb git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1651 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #274. I just set :ensure to be :link when :target is set.luke2006-09-211-0/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1644 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #283, opened by luke.luke2006-09-211-0/+30
| | | | | | | | | I now always set the owner and group to Process.uid and Process.gid, respectively. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1643 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #285, opened by ericb.luke2006-09-211-0/+33
| | | | | | | | | The problem here was that I was not escaping URIs throughout the chain, which I am now doing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1642 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #293, I think. The problem was that the groups state was not ↵luke2006-09-211-1/+9
| | | | | | correctly passing strings in all cases, which caused some very strange problems internally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1640 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #292 (A bug in tagmail that causes any tag other than 'all' to fail)luke2006-09-203-5/+49
| | | | | | | | | | | | | | | and #277 (tagmail report missing To: header). #292 was weird because the messages just didn't have the tags at all. The problem was that states didn't have tags, yet states were the source of nearly all messages. So, I added tags to the states, and included the state name in the tag list. Also, types were not including the type name in the tag list, so I added that. And, of course, a few unit tests to check it all. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1638 980ebf18-57e1-0310-9a29-db15c13687c0
* Rake::TestTasks were running the test suite inadvertantly against the ↵erikh2006-09-201-3/+4
| | | | | | installed tree instead of the development tree due to a botched "libs" setting. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1636 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing provider commands and Util#execute so they always include the command ↵luke2006-09-191-0/+39
| | | | | | output when possible, as mentioned on the list git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1635 980ebf18-57e1-0310-9a29-db15c13687c0
* Small update to the fileserver tests; it was apparently not making some test ↵luke2006-09-191-1/+2
| | | | | | dirs correctly git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1633 980ebf18-57e1-0310-9a29-db15c13687c0
* Converting to using the Rakefile for testing. The old 'test' script isluke2006-09-1997-2170/+263
| | | | | | | | | | | | | now deprecated, and I'll send an email to the dev list and update the docs to reflect that. This still isn't the final solution, because the module structure is a bit weird, but at least it's a starting point, and everything from here on out is small changes, as opposed to large architectural changes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1632 980ebf18-57e1-0310-9a29-db15c13687c0
* Reworking test/lib structure a bit, and renaming all of the files so that ↵luke2006-09-1915-856/+859
| | | | | | their file names match their module names git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1631 980ebf18-57e1-0310-9a29-db15c13687c0
* Small modification so i can make more changesluke2006-09-192-1277/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1629 980ebf18-57e1-0310-9a29-db15c13687c0