summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* The template function now tries to first find a template within a modulelutter2007-03-091-0/+17
| | | | | | | | (if the template path looks like it belongs to a module) and only when that fails looks for it in templatedir git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2277 980ebf18-57e1-0310-9a29-db15c13687c0
* The basic plumbing for modules: a modulepath config parameter, and a newlutter2007-03-091-0/+41
| | | | | | | | | | class Puppet::Module that will contain the module-related functionality. The modulepath can be extended by setting the environment variable PUPPETLIB git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2276 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding support for a prefetch hook on individual providers, rather than only ↵luke2007-03-081-0/+22
| | | | | | supporting it for the whole class. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2275 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a bit more testing to the config stuffluke2007-03-081-2/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2273 980ebf18-57e1-0310-9a29-db15c13687c0
* One last try at getting the config and mode stuff working. The tests were ↵luke2007-03-081-0/+32
| | | | | | passing because "mode" is a valid config option in the tests, but not in the real configuration. So, now the Config class correctly only tries to set the meta params if they are valid options, otherwise they get skipped. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2272 980ebf18-57e1-0310-9a29-db15c13687c0
* Oops, forgot a file in the commitluke2007-03-081-0/+363
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2270 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a bug related to link recursion that caused link directoriesluke2007-03-081-326/+0
| | | | | | | to always be considered out of sync. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2269 980ebf18-57e1-0310-9a29-db15c13687c0
* Looks like [2265] was not a complete solution -- it resulted in failures ↵luke2007-03-082-14/+46
| | | | | | when the config set modes via integers. Everything is working now, and tested more completely. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2268 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some more testing on the @should values for :groups on users, and ↵luke2007-03-082-3/+13
| | | | | | fixing a bug that often made :groups think it was out of sync. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2267 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #489. I was unnecessarily converting to octal in config.rbluke2007-03-081-81/+99
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2265 980ebf18-57e1-0310-9a29-db15c13687c0
* Flushing out the ability to have a stand-alone CA server, specified using ↵luke2007-03-081-0/+4
| | | | | | ca_server and ca_port. This is just a final unit test, since the code was done and lutter fixed the rest in [2261]. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2263 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #531 and #414. This includes pretty much a complete redesignluke2007-03-082-116/+356
| | | | | | | | | | of the AuthStore class, with (hopefully) all of the edge cases removed, the code is now much cleaner, the tests are (I think) complete, and everything is just generally better. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2262 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix typo in default config and add simple test to check default config sanitylutter2007-03-071-0/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2261 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the webserver_portability branch from version 2182 to version 2258.luke2007-03-0652-381/+1182
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2259 980ebf18-57e1-0310-9a29-db15c13687c0
* Apparently the include function was not failing when it could not find ↵luke2007-03-011-0/+30
| | | | | | asked-for classes. Now it does. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2250 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #464 and #515.luke2007-02-281-4/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2244 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #467. It is a hackish solution, because I just reordered the ↵luke2007-02-281-0/+31
| | | | | | definition of the params, but it works for now, anyway. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2242 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying a modified form of the patch by cstorey from #523. The ↵luke2007-02-281-20/+33
| | | | | | modifications were mostly around the fact that Strscan does not set $1 and its ilk. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2239 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #526. Implemented as a period of "never", rather than adding a new ↵luke2007-02-281-0/+12
| | | | | | parameter. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2238 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #199 and moving service tests (which are completely atrocious) around.luke2007-02-272-282/+225
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2236 980ebf18-57e1-0310-9a29-db15c13687c0
* Making the package provider tests able to be executed separately, and using ↵luke2007-02-273-6/+9
| | | | | | "clear" instead of resetting @objects in the types. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2234 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #142. As expected, trivial.luke2007-02-271-0/+9
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2232 980ebf18-57e1-0310-9a29-db15c13687c0
* Applying patch by DavidS from #522, along with test code and a small bit of ↵luke2007-02-271-1/+38
| | | | | | code cleanup. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2231 980ebf18-57e1-0310-9a29-db15c13687c0
* Redoing some aspects of the graphing in hopes of helping hte performance a bit.luke2007-02-272-15/+84
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2230 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing file backup defaults to correctly use the puppet filebucket by default.luke2007-02-271-0/+11
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2229 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #517 and more. Classes now support more than one namespace in their ↵luke2007-02-273-2/+100
| | | | | | search path, parent classes automatically have their namespaces added to subclass namespaces, and (huzzah) there is a "search" function that can be used to add new namespaces into their search path. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2226 980ebf18-57e1-0310-9a29-db15c13687c0
* 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