summaryrefslogtreecommitdiffstats
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
| * | fix socket argument to AR and add rails specDan Peterson2007-11-231-0/+47
| |/
* | Incorporating patch ↵Luke Kanies2007-11-241-0/+386
| | | | | | | | | | | | | | | | | | | | 20071030034736-6856b-6004090b3968cdbf7d366a03ee1c44e2160a3fe0.patch from womble, and rewriting and significantly enhancing the unit tests for the Puppet::Parser::Collector class; it should have full coverage now. There are no integration tests for it, so there's still no guarantee that it works at all, but hey, we're a lot better off than we were.
* | Integrating most of Matt Palmer's fromLuke Kanies2007-11-241-0/+69
| | | | | | | | | | | | | | http://theshed.hezmatt.org/mattshacks/puppet/_patches/puppet-0.23.2/. There are still a few that haven't made it in, notably those related to the plugins module, which I'm planning on integrating separately.
* | Applying patch ↵Luke Kanies2007-11-231-0/+11
|/ | | | 20070913004017-6856b-cdbbba99de0b33b64874205a27833b5114fcc6b9.patch by womble -- Allow empty config settings
* Adding more tests to the redhat interface provider. It noLuke Kanies2007-11-231-1/+103
| | | | | longer uses the :target parameter (which I'll be removing in the next commit).
* Rewriting the sunos interface provider to manually parse andLuke Kanies2007-11-231-48/+166
| | | | | generate, rather than using ParsedFile. This should fix #777, and has from what I can tell.
* Adding unit tests for the sunos interface provider.Luke Kanies2007-11-231-0/+121
|
* Adding some unit tests for the interface type before i go messing around with itLuke Kanies2007-11-231-0/+95
|
* Fixing the first part of #787. Not all collections wereLuke Kanies2007-11-201-0/+25
| | | | | | | | being evaluated on the first pass because they were being deleted from the collections list during evaluation, which caused some to get skipped. This commit fixes that problem, which helps in the trivial cases where the collections are in the same scope. I expect it's still broken for more complicated usages.
* Removing the bootproto and broadcast attributes from the redhat interface ↵Luke Kanies2007-11-201-18/+0
| | | | provider, since they are not needed
* fixing the path to the spec helper in the exec testLuke Kanies2007-11-201-1/+1
|
* Fixing #762. The main problem was that I accepted the patchLuke Kanies2007-11-201-0/+187
| | | | | | in #744 which broke the templates. In the process, I also added test code for the redhat interface provider and rewrote how parsing worked to make it more testable.
* Moving the exec test into the types/ directoryLuke Kanies2007-11-201-0/+0
|
* Fixing the exec spec so it works when non-root and is a bit cleanerLuke Kanies2007-11-201-42/+12
|
* Using the Environment class to determine the default environment,Luke Kanies2007-11-205-52/+61
| | | | | rather than plenty of different places having the logic of how to determine the default environment.
* The Puppet settings instance now validates environments whenLuke Kanies2007-11-191-0/+5
| | | | you set an environment.
* Fixing #911 and #912 -- there's a default environment (development)Luke Kanies2007-11-191-0/+80
| | | | and you have to specify the valid environments for your site.
* Merge commit 'davids-bugfixes/rest/fix-903'Luke Kanies2007-11-191-0/+124
|\
| * Add Exec{ logoutput=> on_failure }David Schmitt2007-11-191-12/+52
| | | | | | | | | | This option only writes the output of the command to the log if the command failed.
| * tests for #903: fail when no logoutput is generated on failureDavid Schmitt2007-11-171-0/+84
| |
* | Fixing #446. I ended up largely not using porridge's patch,Luke Kanies2007-11-191-0/+50
| | | | | | | | | | | | but only because the code (and my coding style, to some extent) has changed so much in the last few months. Also, added specs.
* | Merge commit 'davids-bugfixes/tests/fix-settings-fail-as-root'Luke Kanies2007-11-191-4/+5
|\ \
| * | fix a testfailure when running spec tests as rootDavid Schmitt2007-11-101-4/+5
| |/ | | | | | | | | when running as root, examples trying to create directories with non-standard users failed. This fix evades this difficulty.
* | Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-192-142/+12
| | | | | | | | | | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* | Merge commit 'davids-bugfixes/rest/tests-for-872'Luke Kanies2007-11-181-0/+32
|\ \
| * | tests for #872: check interaction between "replace" and "content"David Schmitt2007-11-091-0/+32
| |/ | | | | | | | | Currently "Puppet::Type::File when used with replace=>false and content should be insync if the file exists and the content is different" fails.
* | Fixing a SimpleGraph unit test so it doesn't dependLuke Kanies2007-11-181-1/+3
| | | | | | | | on hashing.
* | Fixed most failing tests, but there are still over thirty failing.Luke Kanies2007-11-182-12/+51
| | | | | | | | | | | | At this point, I'm holding the experiment until after the release, so I'm committing this for now and will take it back up after 0.24.0 is out.
* | Modifying how default resources are created; they are nowLuke Kanies2007-11-151-4/+17
| | | | | | | | | | added to the configuration by the master client, rather than by the creating types.
* | This commit is the first run at removing all globalLuke Kanies2007-11-132-1/+79
| | | | | | | | | | | | | | | | | | | | references to resources. It deprecates the class-level [] and []= methods, used for so long to provide closure behaviour but now unnecessary with the node configuration's ability to function as a resource container. All of the spec tests pass, but there is much to do to make the test/ tests pass, I expect.
* | Fixing #800 by refactoring how configurations are retrievedLuke Kanies2007-11-124-98/+460
| | | | | | | | | | | | | | | | | | from the server. The real problem was getting all of the validation done before any caching, which required a good bit more refactoring than I expected. In actuality, this commit is relatively small even though it covers many files; most of the changes just make the code clearer or shorter.
* | Moving some compile tests to the spec/ directory, andLuke Kanies2007-11-121-0/+100
| | | | | | | | | | | | | | | | | | | | | | | | switching the node scope to no longer be lazy evaluation, just like I switched 'main'. When I made all of these classes and nodes lazy evaluated, I should have decoupled my real goal (using resources to evaluate them) from the idea of lazy-evaluating them, and this basically does that. I also changed the scope heirarchy slightly so that scopes will tend to be below the node scope, altho this was already generally the case.
* | Merge branch 'routing' into test_routingLuke Kanies2007-11-0811-226/+1116
|\ \ | |/ |/|
| * One significant step closer to getting autotest running properly on the ↵Rick Bradley2007-10-262-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Puppet specs. Created a spec/lib/monkey_patches/ directory for holding patches to RSpec functionality. Extraced 'confine' and 'runnable?' support from the local copy of RSpec (spec/lib/spec/) and now load them from the monkey_patches/ directory. Fixed a bad include in one of the specs. Made it possible for the gem-installed spec binary (which autotest calls) to be used with Puppet. Imported the Autotest::Rspec class, created a PuppetRspec autotest class, added a discovery.rb file for autotest to pick these up. Autotest still has the following problems: * it needs to be run with the proper include path: % ruby -I spec/lib/ `which autotest` * the patterns in our custom autotest handler (puppet_rspec) aren't yet fully specified (they only recognize changes in our spec files, not changes in the puppet libs which they are testing)
| * Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2612-259/+380
| |\
| * | Exceptions on requests are now captured, exceptions are serialized, and ↵Rick Bradley2007-10-232-17/+105
| | | | | | | | | | | | exception text is passed back via REST.
| * | Finish serializing successful results (via calls to to_yaml, etc.) for REST ↵Rick Bradley2007-10-232-131/+165
| | | | | | | | | | | | handlers. Refactor request building in REST handler specs.
| * | REST handlers now properly returning 200 status on success.Rick Bradley2007-10-232-12/+66
| | |
| * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2318-191/+1103
| |\ \
| * \ \ Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2221-49/+1329
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: spec/unit/indirector/indirection.rb
| * | | | Fix test which is conditional on mongrel installation.Rick Bradley2007-10-171-2/+4
| | | | |
| * | | | More specs, fleshing out the returns from RESTRick Bradley2007-10-172-4/+29
| | | | |
| * | | | getting more fine-grained with the response specs -- the target is always ↵Rick Bradley2007-10-162-6/+18
| | | | | | | | | | | | | | | | | | | | moving.
| * | | | Argument passing now supported on {webrick,mongrel}+REST.Rick Bradley2007-10-162-15/+103
| | | | |
| * | | | Make the actual runtime be more robust when mongrel is not installed.Rick Bradley2007-10-161-1/+6
| | | | |
| * | | | Make it possible to run all tests even if mongrel isn't installed. ↵Rick Bradley2007-10-162-0/+10
| | | | | | | | | | | | | | | | | | | | Shouldn't "confine" produce some output when running spec? Who knows.
| * | | | Refactoring, argument processing for model methods.Rick Bradley2007-10-162-16/+54
| | | | |
| * | | | Tweak to move model lookup functionality into the Handler base class where ↵Rick Bradley2007-10-162-0/+27
| | | | | | | | | | | | | | | | | | | | it belongs. Robustifying the request sanitization a bit more.
| * | | | Refactored to use a Handler base class for server+protocol handlers. ↵Rick Bradley2007-10-162-19/+51
| | | | | | | | | | | | | | | | | | | | Finally eliminated dependency on Puppet.start, etc., from WEBrick HTTP server class. {webrick,mongrel}+REST now support request handling uniformly; need encode/decode next.
| * | | | Inlined the controller, eliminating a class. Mongrel+REST has the right ↵Rick Bradley2007-10-163-52/+54
| | | | | | | | | | | | | | | | | | | | bits for request handling prior to the encode/decode/exception-handling bits. Refactored to make the common logic extractable to a base class.