summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Trying to get the functionality I had in previous tests. Mostly I wantluke2007-02-013-1/+116
| | | | | | | | | | | | | | | | | | to be able to load many files but run just a couple of methods, which test/unit supports via -n, selectively enabling -d. I now can do this with the Rakefile, using 'TESTOPTS="-n <method> -d" rake <blah>, although I find that a bit kludgy (certainly more so than 'rake -n <blah> -d <blah>'). However, I also want to be able to automatically determine which test suites conflict (meaning something in one suite causes a failure in another), which too-often happens. So, I'm going to mess around some with 'test' until I get that, and then see if I can move that functionality to the rakefile. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2146 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing executable tests to take new rundir into accountluke2007-02-012-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2145 980ebf18-57e1-0310-9a29-db15c13687c0
* Filenames for test must _end_ with '.rb'lutter2007-02-011-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2144 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix to make running tests work in ruby 1.8.5lutter2007-02-011-3/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2143 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing selector tests to get rid of a lame hash ordering bug in the tests.luke2007-02-011-2/+5
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2142 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing rails test to take into account the fact that resources now do not ↵luke2007-02-011-2/+2
| | | | | | always return arrays git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2141 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing autogen so it passes on non-Darwin systems.luke2007-02-011-2/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2140 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a purging bug introduced by [2138]. I had to move the purge check to ↵luke2007-02-011-8/+8
| | | | | | the recurse method, rather than the localrecurse method, because the purge check needs to happen after sourcerecurse. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2139 980ebf18-57e1-0310-9a29-db15c13687c0
* Deleting the file even if a source is specified, as mentioned by Robert Nickel.luke2007-02-011-0/+26
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2138 980ebf18-57e1-0310-9a29-db15c13687c0
* Renaming "pelement" to "resource". The old name is a holdover from before ↵luke2007-01-312-13/+13
| | | | | | we had settled on "resource" as a term. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2137 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding explicit umasks to these tests.ajax2007-01-313-0/+10
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2135 980ebf18-57e1-0310-9a29-db15c13687c0
* Revert 2125, and instead change the way the 'latest' version is selected ↵mpalmer2007-01-311-1/+1
| | | | | | from the sorted list of versions git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2132 980ebf18-57e1-0310-9a29-db15c13687c0
* Puppet can now read files on stdin. This means you can put "#!/usr/bin/env ↵luke2007-01-301-0/+22
| | | | | | puppet" in the first line of a puppet manifest and then execute the manifest normally. Yay! git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2130 980ebf18-57e1-0310-9a29-db15c13687c0
* Providing a partial fix for #428. Resources can now be deleted as long as ↵luke2007-01-301-2/+10
| | | | | | all of their dependencies are also being deleted. This, combined with the fix to #433, means that you can now explicitly specify the order of deletion, and everything will work as long as all required objects are being removed, too. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2129 980ebf18-57e1-0310-9a29-db15c13687c0
* Partially fixing #460, take 3 -- fully-qualified classes can now be included.luke2007-01-302-2/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2128 980ebf18-57e1-0310-9a29-db15c13687c0
* Partially fixing #460, take 2 -- fully-qualified definitions can now be used.luke2007-01-304-0/+44
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2127 980ebf18-57e1-0310-9a29-db15c13687c0
* Partially fixing #460 -- fully-qualified class names can be used as parent ↵luke2007-01-301-0/+8
| | | | | | classes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2126 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #462. The package sort order was always resulting in the ↵luke2007-01-302-1/+1
| | | | | | lowest-version package being first, rather than highest, so I inverted the sort order. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2125 980ebf18-57e1-0310-9a29-db15c13687c0
* splitting the tagmail report into multiple methods and adding test codeluke2007-01-303-0/+110
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2122 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #433. I basically just added checks to all the places where I add ↵luke2007-01-301-0/+33
| | | | | | edges, to make sure automatic relationships lose out to explicit ones. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2117 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a problem that occurs when puppetd starts with an up-to-date ↵luke2007-01-291-3/+33
| | | | | | configuration -- the default schedules and filebucket were not being created. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2115 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #463. I redid all the autogen stuff so it can handle autogenerating ↵luke2007-01-292-0/+37
| | | | | | string values for stupid os x. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2114 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #438.luke2007-01-291-0/+16
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2112 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #444. I was losing the list of sources when creating new children.luke2007-01-291-0/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2111 980ebf18-57e1-0310-9a29-db15c13687c0
* A couple small bug-fixesluke2007-01-291-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2110 980ebf18-57e1-0310-9a29-db15c13687c0
* Doing more work on #113. Mostly, just making sure remounts do not happen ↵luke2007-01-292-5/+20
| | | | | | spuriously very often. They will still have extra remounts when changing the value of "ensure", but that is not currently avoidable (similar to #199). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2109 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #113. I added support in the transaction for self-refreshing, which ↵luke2007-01-282-4/+49
| | | | | | just creates a special trigger for resources that have self-refreshing enabled. Logging is a bit different for them, so it is clear why they are refreshing. I still need to verify the remount methods work in the providers. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2107 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "self_refresh" option, so resources can refresh themselves if they ↵luke2007-01-281-0/+12
| | | | | | have changed in the current transaction. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2106 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #454.luke2007-01-281-0/+23
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2105 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #441.luke2007-01-281-0/+52
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2104 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #431. Collection was always returning an array, even when only a ↵luke2007-01-281-23/+32
| | | | | | single value was passed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2103 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #455. A simple fix, fortunately.luke2007-01-271-0/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2101 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #442. You can now do: defined(File[...]) to see if a resource is ↵luke2007-01-261-0/+11
| | | | | | defined. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2097 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #434.luke2007-01-261-0/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2096 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #445. Nodes can now inherit from default.luke2007-01-261-2/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2091 980ebf18-57e1-0310-9a29-db15c13687c0
* reworking the selector case-insensitivity testluke2007-01-261-23/+29
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2089 980ebf18-57e1-0310-9a29-db15c13687c0
* Wrapping the resource generation methods in begin/rescue blocks so that ↵luke2007-01-231-0/+17
| | | | | | failures cannot kill the transaction. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2085 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #415. Configuration parsing now removes trailing whitespace.luke2007-01-231-0/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2082 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #424. The configuration compile time is now cached in the yaml cache ↵luke2007-01-232-0/+54
| | | | | | file. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2081 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #437. Transactions now check whether graphs are cyclic, with a ↵luke2007-01-232-0/+36
| | | | | | somewhat-useful error message if they are. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2079 980ebf18-57e1-0310-9a29-db15c13687c0
* Last round of fixes before the next releaseluke2007-01-051-2/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2058 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing puppet test task for older ruby versionsluke2007-01-051-3/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2057 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing rake test so it works with the new puppet loaderluke2007-01-052-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2056 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding #408.luke2007-01-051-1/+75
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2055 980ebf18-57e1-0310-9a29-db15c13687c0
* Messing around a bit with how tests workluke2007-01-055-7/+36
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2054 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a few testing bugs that have crept in, and fixing a self-reference ↵luke2007-01-052-2/+9
| | | | | | problem when configuring, graphing, and setting graphdir manually. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2052 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #411.luke2007-01-051-0/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2051 980ebf18-57e1-0310-9a29-db15c13687c0
* Further work on #407. I forgot to actually connect it to the interpreter ↵luke2007-01-051-11/+28
| | | | | | internals. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2050 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #407. You can use external_node to specify a command to retrieve ↵luke2007-01-051-0/+62
| | | | | | your node information. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2049 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a timeout to execs. This is not really a sufficient solution, since ↵luke2007-01-041-0/+13
| | | | | | it needs to be added throughout the system, but this is a good start. The default timeout is 5 minutes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2047 980ebf18-57e1-0310-9a29-db15c13687c0