summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixing #911 and #912 -- there's a default environment (development)Luke Kanies2007-11-194-4/+137
| | | | | | | | and you have to specify the valid environments for your site.
* | Removing the manual ssldir setting by David in ↵Luke Kanies2007-11-191-1/+0
| | | | | | | | 59626cb3907d36e4fd762277daa76f523faf0908
* | Merge commit 'davids-bugfixes/tests/fix-test-client-ca'Luke Kanies2007-11-192-0/+2
|\ \
| * | fix failing CA test, when testing with incomplete setup (no ssldir, no DNS)David Schmitt2007-11-112-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3) Failure: test_webxmlmix(TestBucket) [./network/handler/bucket.rb:222:in `test_webxmlmix' /home/david/Work/puppet/misspiggy/puppet-luke/test/lib/mocha/test_case_adapter.rb:19:in `__send__' /home/david/Work/puppet/misspiggy/puppet-luke/test/lib/mocha/test_case_adapter.rb:19:in `run']: Exception raised: Class: <OpenSSL::SSL::SSLError> Message: <"hostname was not match with the server certificate"> ---Backtrace--- /usr/lib/ruby/1.8/openssl/ssl.rb:91:in `post_connection_check' /usr/lib/ruby/1.8/net/http.rb:588:in `connect' /usr/lib/ruby/1.8/net/http.rb:553:in `do_start' /usr/lib/ruby/1.8/net/http.rb:548:in `start' /home/david/Work/puppet/misspiggy/puppet-luke/lib/puppet/network/xmlrpc/client.rb:141:in `start' /home/david/Work/puppet/misspiggy/puppet-luke/lib/puppet/network/client.rb:95:in `initialize' /home/david/Work/puppet/misspiggy/puppet-luke/lib/puppet/network/client/dipper.rb:16:in `initialize' ./network/handler/bucket.rb:223:in `new' ./network/handler/bucket.rb:223:in `test_webxmlmix' ./network/handler/bucket.rb:222:in `test_webxmlmix' /home/david/Work/puppet/misspiggy/puppet-luke/test/lib/mocha/test_case_adapter.rb:19:in `__send__' /home/david/Work/puppet/misspiggy/puppet-luke/test/lib/mocha/test_case_adapter.rb:19:in `run' ---------------
* | | Fixing a failing test from my fix for #446 -- I had changedLuke Kanies2007-11-192-20/+5
| | | | | | | | | | | | | | | | | | the behaviour of Resource#override_parameter unintentionally. I've corrected the comments so it's clear why the original behaviour was there.
* | | Fixing a few test suites that passed when run asLuke Kanies2007-11-199-0/+18
| | | | | | | | | | | | | | | | | | part of the suite, but failed when run individually. The problem was that I changed lib/puppettest/support/utils to have a separate module and I didn't test the individual files.
* | | Merge commit 'davids-bugfixes/rest/fix-903'Luke Kanies2007-11-192-10/+141
|\ \ \
| * | | Add Exec{ logoutput=> on_failure }David Schmitt2007-11-192-16/+64
| | | | | | | | | | | | | | | | | | | | This option only writes the output of the command to the log if the command failed.
| * | | fix #903: add patch from hrvojehrDavid Schmitt2007-11-171-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | this moves logging of the command in front of failing from unexpected return. This helps very much to debug exec failures. Additionally I removed the unused local variable "loglevel"
| * | | tests for #903: fail when no logoutput is generated on failureDavid Schmitt2007-11-171-0/+84
| |/ /
* | | Fixing #896 by applying DerekW's patches, with slightLuke Kanies2007-11-194-14/+18
| | | | | | | | | | | | modifications to fit coding style.
* | | Fixing #446. I ended up largely not using porridge's patch,Luke Kanies2007-11-193-21/+91
| | | | | | | | | | | | | | | | | | 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.
* | | Merge commit 'davids-bugfixes/tests/fix-cron-tests'Luke Kanies2007-11-192-3/+3
|\ \ \
| * | | fix the underlying dependency on the environment in the cron typeDavid Schmitt2007-11-111-1/+1
| | | |
| * | | fix crontests depending on ENV[USER] by using Etc.getpwuid(Process.uid) insteadDavid Schmitt2007-11-111-2/+2
| |/ /
* | | Merge commit 'davids-bugfixes/tests/fix-HOME-dependency'Luke Kanies2007-11-191-0/+4
|\ \ \
| * | | fix dependency on $HOME, which causes massive failures when running without ↵David Schmitt2007-11-111-0/+4
| |/ / | | | | | | | | | | | | | | | environment lib/puppet/defaults.rb:10:in `expand_path': couldn't find HOME environment -- expanding `~/.puppet' (ArgumentError)
* | | Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-1941-467/+519
| | | | | | | | | | | | | | | | | | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* | | Applying fix by Jeff McCune from #905Luke Kanies2007-11-182-0/+9
| | |
* | | Merge commit 'davids-bugfixes/rest/tests-for-872'Luke Kanies2007-11-182-0/+38
|\ \ \
| * | | fix #872: improve property(:content).insync?David Schmitt2007-11-091-0/+6
| | | | | | | | | | | | | | | | This commit applies ctrlaltdel's patch from trac #872
| * | | 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.
* | | Merge commit 'davids-bugfixes/rest/fix-815-by-using-main-explicitly'Luke Kanies2007-11-186-14/+8
|\ \ \
| * | | fix #815: add :main to all use() for :reporting and :metricsDavid Schmitt2007-11-095-6/+6
| | | |
| * | | remove obsolete runners variableDavid Schmitt2007-11-091-8/+2
| |/ /
* | | 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-1836-427/+326
| | | | | | | | | | | | | | | | | | 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-154-32/+43
| | | | | | | | | | | | | | | 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-1313-94/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 a parser test -- really, just removing testsLuke Kanies2007-11-133-18/+5
| | | | | | | | | | | | | | | | | | | | | | | | that belong with the AST classes rather than in the parser. Yeah, these tests need to be rewritten. Committed on an airplane. :)
* | | Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppet-lukeLuke Kanies2007-11-1261-933/+2599
|\ \ \
| * | | Fixing #800 by refactoring how configurations are retrievedLuke Kanies2007-11-1230-563/+788
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-124-78/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | Changing the 'main' class to no longer be lazy-evaluated.Luke Kanies2007-11-122-5/+10
| | | | | | | | | | | | | | | | | | | | It was getting evaluated after node classes, which caused even stranger ordering issues.
| * | | Adding a memory terminus for facts, which is really only used for testingLuke Kanies2007-11-121-0/+9
| | | |
| * | | Merge branch 'routing' into test_routingLuke Kanies2007-11-0828-290/+1676
| |\ \ \ | | |/ / | |/| |
| | * | This won't be perfect by any stretch, but put in a moderately reasonable ↵Rick Bradley2007-10-261-0/+33
| | | | | | | | | | | | | | | | autotest config file.
| | * | One significant step closer to getting autotest running properly on the ↵Rick Bradley2007-10-2610-17/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-26168-467/+759
| | |\ \
| | * | | Exceptions on requests are now captured, exceptions are serialized, and ↵Rick Bradley2007-10-235-22/+116
| | | | | | | | | | | | | | | | | | | | exception text is passed back via REST.
| | * | | Finish serializing successful results (via calls to to_yaml, etc.) for REST ↵Rick Bradley2007-10-235-135/+177
| | | | | | | | | | | | | | | | | | | | handlers. Refactor request building in REST handler specs.
| | * | | REST handlers now properly returning 200 status on success.Rick Bradley2007-10-234-15/+69
| | | | |
| | * | | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2343-332/+1565
| | |\ \ \
| | * \ \ \ Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-10-2255-82/+2441
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-175-6/+44
| | | | | | |
| | * | | | | 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-165-19/+123
| | | | | | |