summaryrefslogtreecommitdiffstats
path: root/test/network/handler
Commit message (Collapse)AuthorAgeFilesLines
...
| * Integrating Matt Palmer's patch to provide a 'plugins'Luke Kanies2007-11-241-1/+0
| | | | | | | | | | | | | | | | | | | | mount, fixing #891. The patch was ported to the current code by David Schmitt, I applied the rest of Matt's patches, and I then fixed all of the code so that the tests passed. The primary change I had to make to the patch was reenabling host expansion in paths -- his patch had disabled it.
* | Integrating most of Matt Palmer's fromLuke Kanies2007-11-241-32/+0
|/ | | | | | | 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.
* Merge commit 'davids-bugfixes/tests/fix-test-client-ca'Luke Kanies2007-11-191-0/+1
|\
| * fix failing CA test, when testing with incomplete setup (no ssldir, no DNS)David Schmitt2007-11-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 few test suites that passed when run asLuke Kanies2007-11-191-0/+2
| | | | | | | | | | | | 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.
* | Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-192-14/+10
| | | | | | | | | | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* | Fixed most failing tests, but there are still over thirty failing.Luke Kanies2007-11-182-10/+14
| | | | | | | | | | | | 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.
* | Fixing #800 by refactoring how configurations are retrievedLuke Kanies2007-11-122-117/+23
|/ | | | | | | | | 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.
* Changing the test/ classes so that they work from the mainLuke Kanies2007-10-269-9/+9
| | | | | | test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
* Translating the report handler to an indirected model.Luke Kanies2007-10-131-102/+1
| | | | | | | | | | | I've provided backward compatibility with the old handler. The only terminus type that currently exists for reports is the 'code' terminus, which is used to process reports in the style of the old handler. At some point, we should likely switch at least some of these report types (e.g., 'store') to terminus types.
* Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-093-29/+12
|\
| * All tests should now pass again.Luke Kanies2007-10-082-22/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first real pass towards using caching. The `puppet` executable actually uses the indirection work, instead of handlers and such (and man! is it cleaner). Most of this work was a result of trying to get the client-side story working, with correct yaml caching of configurations, which means this commit also covers converting configurations to yaml, which was a much bigger PITA than it needed to be. I still need to write integration tests, and I also need to cover the server-side story of a normal configuration retrieval.
| * Another round of test-fixing around the changes I madeLuke Kanies2007-10-051-7/+4
| | | | | | | | | | | | | | | | | | to the configuration system. 'puppet' itself still works, even with -e, but I expect that puppetd and puppetmasterd are broken, and there are still quite a few broken tests because the default fact store can't write but that's the default behaviour for a networked configuration master.
* | Moving the webrick/mongrel "servers" over to HTTPServer module instead of ↵Rick Bradley2007-10-051-1/+1
|/ | | | Server. Using Server as the master class for client connections. Server (former RESTServer) will instantiate the appropriate subclass based upon Puppet configurator setting. There are now tests broken in the network section which I can't seem to figure out yet. Not a happy place to be.
* Removing the Id tags from all of the filesLuke Kanies2007-10-038-8/+0
|
* Renaming the 'Puppet::Util::Config' class toLuke Kanies2007-09-221-1/+1
| | | | | | | 'Puppet::Util::Settings'. This is to clear up confusion caused by the fact that we now have a 'Configuration' class to model host configurations, or any set of resources as a "configuration".
* This is basically another intermediate commit. I feel likeLuke Kanies2007-09-171-4/+5
| | | | | | | | | | | | | | | | | | | | I've gone too far down the rabbit hole to turn back now, but the code is clearly getting more centralized around the Configuration class, which is the goal. Things are currently a bit muddy between recursion, dynamic resource generation, transactions, and the configuration, and I don't expect to be able to clear it up much until we rewrite all of the tests for the Transaction class, since that is when we'll actually be setting its behaviour. At this point, Files (which are currently the only resources that generate other resources) are responsible for adding their edges to the relationship graph. This puts them knowing more than I would like about how the relationship graph works, but it'll have to do for now. There are still failing tests, but files seem to work again. Now to go through the rest of the tests and make them work.
* Another intermediate commit. The node and fact classes are now functional ↵Luke Kanies2007-09-123-114/+7
| | | | and are used instead of the network handlers, which have been removed. There are some failing tests as a result, but I want to get this code committed before I massage the rest of the system to make it work again.
* The Node handler is now obsolete. Node searching is handled through the ↵Luke Kanies2007-09-112-660/+2
| | | | indirector. I have not yet added the tests for the node handlers themselves, which is next.
* Multiple environment support now works, and I have even tested it in real ↵Luke Kanies2007-08-262-10/+14
| | | | life. This commit is mostly a bug-fix commit, resulting from the difference between real-life testing and unit testing.
* The fileserver now uses an environment-specific module path. I also made ↵Luke Kanies2007-08-263-7/+8
| | | | various bug fixes around the network tree.
* The last commits before I actually start on the multi-environment support. ↵Luke Kanies2007-08-221-67/+1
| | | | There are still failing tests, but apparently only those that are also failing in trunk.
* Adding the topscope metadata to the configuration being returned to the ↵Luke Kanies2007-08-221-1/+1
| | | | client, just like it expects, and fixing how the resource handler calls the master type.
* A round of bugfixing. Many more tests now pass -- I think we are largely ↵Luke Kanies2007-08-202-104/+29
| | | | down to tests that (yay!) fail in trunk.
* The first pass where at least all of the snippet tests pass. I have ↵Luke Kanies2007-08-201-74/+0
| | | | unfortunately had to stop being so assiduous in my rewriting of tests, but I am in too much of a time crunch to do this "right". The basic structure is definitely in place, though, and from here it is a question of making the rest of the tests work and hopefully writing some sufficient new tests, rather than making the code itself work.
* Adding node caching, so that node sources are not spammed during file ↵Luke Kanies2007-08-151-1/+24
| | | | serving and such
* Keeping the node names in the node object, so that they are available to the ↵Luke Kanies2007-08-151-0/+3
| | | | interpreter
* Refactoring a small part of the interface between the configuration handler ↵Luke Kanies2007-08-151-2/+24
| | | | and the interpreter.
* The new configuration handler looks to be ready for usage. Now I just need ↵Luke Kanies2007-08-151-0/+167
| | | | to convert the interpreter to use SimpleNode objects, then continue with the Configuration object.
* Adding the necessary name/ip fields to the node methodsLuke Kanies2007-08-151-1/+1
|
* Adding a "none" node source, which will be the default node source and will ↵Luke Kanies2007-08-151-0/+18
| | | | just return an empty node.
* Finalizing the node handler. It now correctly uses the different node sourcesLuke Kanies2007-08-141-6/+324
| | | | | and knows how to retrieve data from those sources. Now I just need to fix the language stuff to use this handler instead of the existing node stuff.
* An intermediate commit in the work towards adding multi-environment support.Luke Kanies2007-08-141-0/+341
| | | | | | | | This has required splitting the interpreter up considerably, which is much cleaner but is a large project. There is now a 'nodes' handler, but it is currently non-functional, although all the support structure is there. It just needs to have the individual methods fleshed out, and it needs to be connected to the 'facts' handler.
* Refactor SUIDManager tests to run without root, change SUIDManager's ↵christian2007-08-092-0/+10
| | | | | | behavior to not silently fail when it's not root and fix all other tests that broke as a result. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2759 980ebf18-57e1-0310-9a29-db15c13687c0
* Modified the fileserver to cache file information, so thatluke2007-06-191-0/+2
| | | | | | | | | each file isn't being read on every connection. Also, added londo's patch from #678 to avoid reading entire files into memory. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2629 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing some failing tests.luke2007-06-181-47/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2616 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying the CA server so that it will not send back a cert whose public ↵luke2007-06-181-0/+34
| | | | | | key does not match the csr. We have been getting a lot of instances of this, so this should cut down that problem. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2612 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly reworked the type => provider interface with respect toluke2007-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | listing existing provider instances. The class method on both class heirarchies has been renamed to 'instances', to start. Providers are now expected to return provider instances, instead of creating resources, and the resource's 'instances' method is expected to find the matching resource, if any, and set the resource's provider appropriately. This *significantly* reduces the reliance on effectively global state (resource references in the resource classes). This global state will go away soon. Along with this change, the 'prefetch' class method on providers now accepts the list of resources for prefetching. This again reduces reliance on global state, and makes the execution path much easier to follow. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2551 980ebf18-57e1-0310-9a29-db15c13687c0
* A round of fixes so unit tests pass; most of the failures were from the ↵luke2007-05-151-2/+1
| | | | | | merging of the transaction-refactor branch git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2517 980ebf18-57e1-0310-9a29-db15c13687c0
* Getting rid of the last vestiges of the logger testsluke2007-05-091-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2497 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the ability to fail correctly in the fileserver -- a constant was not ↵luke2007-05-091-0/+22
| | | | | | defined correctly for it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2494 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the obsolete logger network interfaceluke2007-05-071-183/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2478 980ebf18-57e1-0310-9a29-db15c13687c0
* Consolidating all of the configuration parameter declarations into ↵luke2007-05-041-1/+1
| | | | | | configuration, at least partially just because then the docs for each parameter have to be a bit better. Also, I have gotten rid of the "puppet" section, replacing it with "main", and changed, added, or removed a couple of other sections. In general, we should now prefer more sections, rather than fewer. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2463 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a fact handler, along with an abstract interface for fact stores and ↵luke2007-05-031-0/+112
| | | | | | a simple yaml fact store, towards the Node Classification work. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2457 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the fileserver naming tests after the change to allow "-" in ↵luke2007-04-301-15/+5
| | | | | | fileserver module names. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2443 980ebf18-57e1-0310-9a29-db15c13687c0
* Allowing "-" in fileserver module names, #617luke2007-04-301-4/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2434 980ebf18-57e1-0310-9a29-db15c13687c0
* Finalizing the filebucket client, with test code.luke2007-03-241-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2348 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug-fixes, prompted by test logs from David Schmittluke2007-03-192-6/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2316 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #447 - filebuckets now use deeply nested pathsluke2007-03-191-5/+89
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2306 980ebf18-57e1-0310-9a29-db15c13687c0
* The first round of fixes for failing tests.luke2007-03-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2296 980ebf18-57e1-0310-9a29-db15c13687c0