summaryrefslogtreecommitdiffstats
path: root/test/network/client
Commit message (Collapse)AuthorAgeFilesLines
...
* Removing the Id tags from all of the filesLuke Kanies2007-10-034-4/+0
|
* Fixed a failing test where we presumed that non-string Fact values would ↵Rick Bradley2007-10-021-1/+1
| | | | have type preserved across a P::N::Client.master.facts call, which is not true.
* Renaming the 'Puppet::Util::Config' class toLuke Kanies2007-09-223-5/+5
| | | | | | | '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".
* The whole system now uses Configuration objects instead ofLuke Kanies2007-09-151-49/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ever converting the Transportable objects into a tree of components and then converting that into a graph. This is a significant step, and drastically simplifies the model of how to use a configuration. The old code might have looked something like this: file = Puppet::Type.create :path => "/whatever", ... comp = Puppet::Type.create :name => :whatever comp.push file transaction = comp.evaluate transaction.evaluate The new code looks like this: file = Puppet::Type.create :path => "/whatever", ... config = Puppet::Node::Configuration.new config.add_resource file config.apply I did not really intend to do this much refactoring, but I found I could not use a Configuration object to do work without refactoring a lot of the system. The primary problem was that the Client::Master and the Config classes determined how the transactions behaved; when I moved to using a Configuration, this distinction was lost, which meant that configurations were often needing to create other configurations, which resulted in a whole lot of infinite recursion (e.g., Config objects that create directories for Puppet use Configuration objects -- yes, I'm s/Config/Settings/g soon -- and these Configuration objects would need to create directories). Not everything is fixed, but it's very close. I am clearly over the hump, though, so I wanted to get a commit in.
* Fixing some failed tests. Mostly cleanup. Next is to make all of the user ↵Luke Kanies2007-09-071-1/+4
| | | | tests pass again, dammit.
* Fixing some broken tests in the master client, and adding a test for #800 ↵Luke Kanies2007-09-061-23/+30
| | | | but it is unfortunately disabled because we cannot realistically fix it using the current design. It will be easy after the REST refactor, though.
* Adding environment information to the client fact list. The environment is ↵Luke Kanies2007-08-221-0/+10
| | | | retrieved from the normal Puppet configuration, so it is set via puppet.conf or the cli, rather than being a normal fact.
* Adding the topscope metadata to the configuration being returned to the ↵Luke Kanies2007-08-221-6/+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-201-1/+2
| | | | down to tests that (yay!) fail in trunk.
* Refactor SUIDManager tests to run without root, change SUIDManager's ↵christian2007-08-092-0/+3
| | | | | | 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
* Fixing #621 -- plugins are now downloaded directly into the $libdir, and ↵luke2007-07-101-38/+13
| | | | | | autoload looks for them there. You can now easily download any reloadable file to your clients. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2669 980ebf18-57e1-0310-9a29-db15c13687c0
* Hopefully fixing #685 -- I added a wrapper around the call to getconfig(), ↵luke2007-07-081-3/+12
| | | | | | so any timeouts will just throw an error and skip the run, rather than failing and killing the daemon. This is not the best approach, since really, each method should be wrapped, but it is sufficient. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2658 980ebf18-57e1-0310-9a29-db15c13687c0
* Removing the long-obsolete Element base class. The Parameter and Type ↵luke2007-07-041-0/+2
| | | | | | classes no longer have the same base class. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2647 980ebf18-57e1-0310-9a29-db15c13687c0
* Modifying the CA server so that it will not send back a cert whose public ↵luke2007-06-181-0/+2
| | | | | | 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
* Fixing #578 -- Invalid certs are no longer written to disk.luke2007-06-181-0/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2611 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #532 -- reparsing config files no longer throws an exception. The ↵luke2007-05-311-0/+17
| | | | | | | | problem only occurred when reparsing a configuration file that was also being managed (which was common) and only whent the manifest was up to date (the combination was uncommon). Reparsing would find the existing file object and use it to check permissions and such, then it would remove all of the internal data in the object, for cleanup; the problem is, the client still had a reference to the object, so when it went to run its configuration, this broken reference was used. The solution I chose was to remove all objects from memory after every run. It is negligible to reload them from the cache, and it saves ram for the 99% of the time that the client is just sitting there. And it makes this problem go away. :) git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2545 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #501 -- there is now a splay option, disabled by default and when ↵luke2007-05-181-0/+32
| | | | | | running under --test git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2528 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #569 - I have added a dynamic facts option to choose which facts will ↵luke2007-05-151-0/+34
| | | | | | be ignored. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2516 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing some problems with the config timeout -- I am not sure it ever ↵luke2007-05-141-0/+18
| | | | | | actually worked git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2512 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
* 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
* Fixing Client.read_cert so that it automatically adds the certificate ↵luke2007-03-301-6/+41
| | | | | | information to the driver when the certificate is correctly read. This makes sure the Net::Http instance has the cert all set up. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2375 980ebf18-57e1-0310-9a29-db15c13687c0
* Finalizing the filebucket client, with test code.luke2007-03-241-0/+35
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2348 980ebf18-57e1-0310-9a29-db15c13687c0
* Finally fixing #504, I think; I even have tests to prove it. It was a ↵luke2007-03-191-0/+17
| | | | | | little thing, in the end. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2326 980ebf18-57e1-0310-9a29-db15c13687c0
* Another round of bug-fixes, prompted by test logs from David Schmittluke2007-03-191-2/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2316 980ebf18-57e1-0310-9a29-db15c13687c0
* Oops. Fixing the other tests to now past the facts to "fresh?", as required ↵luke2007-03-191-2/+4
| | | | | | by the fact checking. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2305 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the fact caching so that facts are only downloaded and retrieved ↵luke2007-03-191-2/+7
| | | | | | once, rather than once during fresh checking and once during config compile. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2304 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #519. The facts are now cached in the state file and changes to them ↵luke2007-03-191-0/+29
| | | | | | force a recompile. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2303 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #491 -- the client correctly realizes when the cache file is missing ↵luke2007-03-181-0/+22
| | | | | | and only considers the config to be in sync if that is not the case. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2288 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #540. I modified Puppet::Network::Client::Master so that it disables ↵luke2007-03-171-0/+20
| | | | | | noop during its run, so that facts and plugins will always be downloaded. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2285 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
* Merging the webserver_portability branch from version 2182 to version 2258.luke2007-03-065-73/+109
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2259 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, last file moves for the night. The test code has been moved to match ↵luke2007-02-084-0/+835
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