summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing #524. Functions, both statements and rvalues, now support no ↵luke2007-02-271-0/+11
| | | | | | arguments as long as you use parens. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2225 980ebf18-57e1-0310-9a29-db15c13687c0
* Partially complete #241. Add a 'purged' value for Package.ensure, and add a ↵mpalmer2007-02-2323-0/+1214
| | | | | | handler for all of the Debian providers. Also wrote sensible test cases, and so we've now got Mocha running around in our source tree. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2223 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #472. Apparently this has been broken since I did the parser ↵luke2007-02-225-179/+280
| | | | | | redesign. I had to fix the scope trees so that subclass scopes are subscopes of the parent scopes, which used to be the case but was far more complicated. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2220 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #505, #508, and #513.luke2007-02-221-0/+83
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2219 980ebf18-57e1-0310-9a29-db15c13687c0
* Allow 'key=' to be the only thing on a line (livna uses this)lutter2007-02-211-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2218 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a problem in collecting exported resources. Virtual resources worked ↵luke2007-02-182-7/+29
| | | | | | fine, but exported resources resulted in an essentially infinite loop. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2213 980ebf18-57e1-0310-9a29-db15c13687c0
* Undo the param_names param_values changesshadoi2007-02-172-6/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2207 980ebf18-57e1-0310-9a29-db15c13687c0
* Undo the params & facts stuffshadoi2007-02-172-4/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2206 980ebf18-57e1-0310-9a29-db15c13687c0
* Revamping collections to get what is hopefully more reasonable behaviour ↵luke2007-02-164-33/+152
| | | | | | when they are used in combination with defined resource types. You should now be able to combine them in just about any way and get "correct" behaviour, which in this case means that you can have virtual definitions or definitions wrapping virtual resources and the resources will still all get realized. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2198 980ebf18-57e1-0310-9a29-db15c13687c0
* Merge fact_names & fact_values, and param_names & param_values.shadoi2007-02-156-33/+25
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2191 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #484. Moving unit tests at the same time.luke2007-02-0810-0/+26
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2181 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, last file moves for the night. The test code has been moved to match ↵luke2007-02-0816-19/+19
| | | | | | the lib directory, and I have moved a couple of things into network/ instead of network/server, since they did not belong as much. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2180 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving all of the client and server code into a single network/ directory. ↵luke2007-02-0834-196/+173
| | | | | | In other words, more code structure cleanup. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2179 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving some of the stand-alone classes into the util/ subdirectory, to clean ↵luke2007-02-0743-243/+234
| | | | | | up the top-level namespace a bit. This is a lot of file modifications, but most of them just change class names and file paths. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2178 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a libdir setting for puppet, so you can store your modifications to ↵luke2007-02-072-0/+58
| | | | | | puppet in a separate directory. This probably will still be somewhat limited because it will always depend somewhat on load order. For instance, if you add a new provider, it might not be available when you expect, since providers are all loaded as soon as a type is loaded, which might happen before the libdir is set. It should always work fine if you do not override it, but if you do override it, things might behave a bit strange. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2174 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a parameter to allow you to override how an exec refreshes itself.luke2007-02-071-0/+30
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2173 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing exec so that the checks apply to whether an exec is refreshed.luke2007-02-071-0/+40
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2172 980ebf18-57e1-0310-9a29-db15c13687c0
* Reorganizing some of the tests.luke2007-02-0736-95/+54
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2170 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the state-rename branch. This includes the diff from version 2156 ↵luke2007-02-0735-323/+597
| | | | | | to 2168. All states should now be properties, with backward compatibility for the types that restricted themselves to the methods. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2169 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the default value for :ensure on mounts.luke2007-02-061-2/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2164 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing exec so it actually works when path is specified as an arrayluke2007-02-012-0/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2155 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #470, I think. I basically just threw away the validation and let ↵luke2007-02-011-0/+23
| | | | | | suidmanager do it all when running commands. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2150 980ebf18-57e1-0310-9a29-db15c13687c0
* The resolve functionality in "test" is almost working...luke2007-02-013-41/+118
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2149 980ebf18-57e1-0310-9a29-db15c13687c0
* Oops, that last commit seems to have broken the rakefile. Works again.luke2007-02-013-18/+27
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2147 980ebf18-57e1-0310-9a29-db15c13687c0
* 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