summaryrefslogtreecommitdiffstats
path: root/test/network/client
Commit message (Collapse)AuthorAgeFilesLines
* Migrating tests to spec and removing an obsolete testLuke Kanies2009-08-021-70/+0
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing all tests that were apparently broken in the 0.24.x merge.Luke Kanies2009-04-021-4/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing tests broken in previous commitsLuke Kanies2009-03-111-12/+3
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Removing or fixing old testsLuke Kanies2009-02-191-28/+6
| | | | | | | | Most of these were just obsolete tests that have been sitting around and broke with recent internal changes. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing tests broken during the #1405 fix.Luke Kanies2009-02-061-126/+1
| | | | | | Most of these were small changes, like moved methods. Signed-off-by: Luke Kanies <luke@madstop.com>
* Renmaing Puppet::Network::Client::Master to Puppet::AgentLuke Kanies2009-02-061-472/+0
| | | | | | | | | Made minor changes, including removing the parent class. The functionality hasn't changed yet -- that comes in later patches -- but all but a couple of the older tests pass. Signed-off-by: Luke Kanies <luke@madstop.com>
* Deprecating the Puppet::Type.create.Luke Kanies2008-12-181-1/+1
| | | | | | | This method is no longer necessary; you can use the normal 'new' class method. Signed-off-by: Luke Kanies <luke@madstop.com>
* Renaming the "Catalog#to_type" method to "Catalog#to_ral"Luke Kanies2008-12-181-2/+2
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing tests broken by fileserving and other refactoring.Luke Kanies2008-11-081-16/+17
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch '0.24.x' Removed the 'after' blocks that call Type.clear,Luke Kanies2008-10-171-6/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | since that method is deprecated. Conflicts: CHANGELOG bin/puppetca lib/puppet/file_serving/fileset.rb lib/puppet/network/xmlrpc/client.rb lib/puppet/type/file/selcontext.rb spec/unit/file_serving/metadata.rb spec/unit/type/file.rb
| * Fixing a test that was failing as a result of the fix to #1491Luke Kanies2008-10-081-4/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Fixed additional environments testsJames Turnbull2008-10-051-2/+1
| |
* | Merge branch '0.24.x'Luke Kanies2008-07-021-6/+10
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/unit/node/catalog.rb spec/unit/type/package.rb spec/unit/type/schedule.rb spec/unit/type/service.rb spec/unit/util/settings.rb
| * Fixed #1114 - Facts in plugin directories should now be autoloaded,Luke Kanies2008-07-011-6/+10
| | | | | | | | as long as you're using Facter 1.5.
* | Merge branch '0.24.x'Luke Kanies2008-06-142-11/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added the fixes to make the certhandler tests pass even when certs exist; I'll deal with the conflict later. Conflicts: CHANGELOG bin/puppetd lib/puppet/network/http/handler.rb lib/puppet/network/http/mongrel/rest.rb spec/integration/indirector/rest.rb spec/integration/network/server/mongrel.rb spec/integration/network/server/webrick.rb spec/unit/network/http/webrick.rb
| * Merge branch 'tickets/1265' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-05-271-0/+1
| |\
| | * Fixing #1265 -- the ca/client tests now all pass again.Luke Kanies2008-05-261-0/+1
| | |
| * | Always using the cert name to store yaml files, which fixes #1178.Luke Kanies2008-05-261-11/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Master handler previously provided the support for the :node_name setting, and that functionality has now been moved into the Node class. At the same time, the names to search through have been changed somewhat: Previously, the certificate name and the hostname were both used for searching, but now, the cert name is always searched first (unless node_name == facter), but only the Facter hostname, domain, and fqdn are used otherwise. We no longer split the cert name, only the hostname/domain/fqdn. In the general case, this provides no behaviour change, because people's hostname is the same as their certname. This only results in a change in behaviour if you specify a certificate name that is a normal node name, and you want to look that node up by something other than the full name in the certificate. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing some broken tests.Luke Kanies2008-05-071-0/+1
| | | | | | | | | | | | | | The HttpPool module now removes its cached ssl_host instance when clearing its cache. This is really only useful for testing, but it correctly causes the pool to use new certificates when they're available.
* | Merge branch '0.24.x'Luke Kanies2008-04-111-110/+0
|\|
| * Removed the code from the client that tries to avoid recompilingLuke Kanies2008-04-101-110/+0
| | | | | | | | | | | | the catalog. The client will now always recompile, assuming it can reach the server. It will still use the cached config if there's a failure.
* | Merge branch 'master' into master_no_global_resourcesLuke Kanies2008-03-312-29/+41
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/node/catalog.rb lib/puppet/type/pfile.rb lib/puppet/type/pfilebucket.rb lib/puppet/util/filetype.rb spec/unit/node/catalog.rb spec/unit/other/transbucket.rb spec/unit/ral/provider/mount/parsed.rb spec/unit/ral/types/file.rb spec/unit/ral/types/interface.rb spec/unit/ral/types/mount.rb spec/unit/ral/types/package.rb spec/unit/ral/types/schedule.rb spec/unit/ral/types/service.rb test/language/compile.rb test/language/lexer.rb test/language/snippets.rb test/lib/puppettest.rb test/ral/types/basic.rb test/ral/types/cron.rb test/ral/types/exec.rb test/ral/types/file.rb test/ral/types/file/target.rb test/ral/types/filebucket.rb test/ral/types/fileignoresource.rb test/ral/types/filesources.rb test/ral/types/group.rb test/ral/types/host.rb test/ral/types/parameter.rb test/ral/types/sshkey.rb test/ral/types/tidy.rb test/ral/types/user.rb test/ral/types/yumrepo.rb
| * Fixing a couple of tests.Luke Kanies2008-03-242-29/+29
| |
| * fixing another failing testLuke Kanies2008-03-191-0/+2
| |
| * Fixing a test that changed the environment for all later tests,Luke Kanies2008-02-291-9/+1
| | | | | | | | thus breaking some of them.
| * Fixes #1078 and includes new testJames Turnbull2008-02-231-0/+18
| |
* | Another round of test-fixes toward eliminating global resourceLuke Kanies2008-01-141-5/+0
| | | | | | | | | | | | references. This should have gotten rid of all of them, and now it's just a question of fixing a few hopefully unrelated failing tests.
* | Lots o' bug-fixes toward getting rid of global resources.Luke Kanies2008-01-081-18/+0
|/ | | | | | We still have about 60 failing tests, but some of them are the failing directory service tests (probably 20 or so), and most are simple fixes to the tests themselves.
* Further fixes toward #965. Turned out that the previous fixLuke Kanies2007-12-211-48/+0
| | | | | | | caused other problems. This whole thing will hopefully get *drastically* easier once we get rid of global resources.
* Fixing #967 -- default resources no longer conflict withLuke Kanies2007-12-191-3/+18
| | | | managed resources.
* Entirely refactoring http keep-alive. There's nowLuke Kanies2007-12-191-30/+0
| | | | | | | | a central module responsible for managing the http pool (Puppet::Network::HttpPool), and it also handles setting certificate information. This gets rid of what were otherwise long chains of method calls, and it makes the code paths much clearer.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-112-6/+6
|
* Fixing #927 -- rewriting the test to actually test what it'sLuke Kanies2007-11-271-4/+9
| | | | | | | | | supposed to be doing and to skip the whole network connect thing. FTR, the reason this is happening is because the keepalive patch causes http instances to start immediately, which wasn't previously the case. I have been noticing that not all failures that should result from this happen consistently.
* Merge branch 'plugins_mount', fixing #891.Luke Kanies2007-11-241-0/+1
|\ | | | | | | | | | | Conflicts: CHANGELOG
| * Integrating Matt Palmer's patch to provide a 'plugins'Luke Kanies2007-11-241-0/+1
| | | | | | | | | | | | | | | | | | | | 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-2/+2
|/ | | | | | | 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.
* Fixing a couple of tests that were failing because of the environment changes.Luke Kanies2007-11-231-0/+1
|
* Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-192-0/+80
| | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* Fixed most failing tests, but there are still over thirty failing.Luke Kanies2007-11-182-80/+0
| | | | | | 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-120/+32
| | | | | | | | | 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-265-5/+5
| | | | | | test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
* All tests should now pass again.Luke Kanies2007-10-082-1/+9
| | | | | | | | | | | | | | 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-052-9/+5
| | | | | | | | | 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.
* 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.