summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | More fixes to the testing.Luke Kanies2008-01-152-13/+9
| | |
* | | Another round of test-fixes toward eliminating global resourceLuke Kanies2008-01-1417-116/+5
| | | | | | | | | | | | | | | | | | 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.
* | | Fixing automatic relationships. I was previously looking themLuke Kanies2008-01-142-11/+0
| | | | | | | | | | | | | | | up in the relationship graph, which only stores the vertices, not the resource table.
* | | Another round of fixes toward making global resources work.Luke Kanies2008-01-098-212/+81
| | | | | | | | | | | | | | | | | | The only remaining failures are more complicated ones (which I'll need to not be on a plane to debug, for battery reasons) or those related to the broken directory_service providers.
* | | Lots o' bug-fixes toward getting rid of global resources.Luke Kanies2008-01-0814-197/+78
| |/ |/| | | | | | | | | 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.
* | Fixing #982 -- I have completely removed the GRATR graph libraryLuke Kanies2008-01-071-1/+1
| | | | | | | | from the system, and implemented my own topsort method.
* | Fixing the inability to manage '/' directly. It was a resultLuke Kanies2007-12-271-0/+5
|/ | | | of stripping extra and trailing slashes.
* Further fixes toward #965. Turned out that the previous fixLuke Kanies2007-12-212-50/+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-194-70/+12
| | | | | | | | 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.
* Fixing #967 -- relationships now work when running 0.23.x clientsLuke Kanies2007-12-181-5/+5
| | | | against 0.24.0 servers.
* Fixing some tests that were failing with the recent ruby that hasLuke Kanies2007-12-184-0/+10
| | | | ssl issues.
* Fixing the webrick test to provide a correct hostLuke Kanies2007-12-121-1/+1
| | | | name so the stupid ssl checks pass during the test.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-1130-136/+136
|
* Applying patch by josb in #884 to provide patternLuke Kanies2007-12-111-0/+52
| | | | matching in the tidy type.
* Fixing #951 -- external nodes work again, but you have toLuke Kanies2007-12-101-1/+1
| | | | set the 'node_terminus' setting to 'exec'.
* Fixing #923 (again). The host storage method was notLuke Kanies2007-12-101-4/+5
| | | | | | correctly searching for the host, so it was creating a new host on each run, which is what was causing the conflict.
* Updated tests for http_enable_post_connection_check configuration setting.Jeffrey J McCune2007-11-291-5/+0
|
* Better test to match the behavior of the code.Jeffrey J McCune2007-11-291-1/+5
|
* Fixed test case for http_enable_post_connection_checkJeffrey J McCune2007-11-291-1/+1
|
* Fixing another failing test I somehow missed in my last big commitLuke Kanies2007-11-281-1/+1
|
* Fixing #527 (rewrote service tests), #766 (services only restart when theyLuke Kanies2007-11-281-234/+0
| | | | | | | are running), and #918 (service tests fail when hddtemp is not installed). Mostly, I just rewrote the service tests, but I cleaned up the cruft from the Service class, too.
* Theoretically, this patch is to fix #917 (which it does), butLuke Kanies2007-11-2811-27/+29
| | | | | | | | | | | | | | | | | | | there were enough problems fixing it that I decided something more drastic needed to be done. This uses the new Puppet::ResourceReference class to canonize what a resource reference looks like and how to retrieve resources via their references. Specifically, it guarantees that resource types are always capitalized, even when they include '::' in them. While many files are modified in this commit, the majority of changes are quite small, and most of the changes are fixing the tests to use capitalized types. As we look at consolidating some of our resource types, we could consolidate the ResourceReference stuff at the same time, but at least the Puppet::Parser::ResourceReference class subclasses the main Puppet::ResourceReference class.
* Fixing the first half of #917 -- the ResourcReferenceLuke Kanies2007-11-281-0/+12
| | | | | | AST code now correctly finds the resource. It's getting lost in the configuration translation, though, so I need to fix that, too.
* Applying fix to xmlrpc client tests by Matt PalmerLuke Kanies2007-11-271-0/+1
|
* Fixing #796 -- the fileserver can now start with noLuke Kanies2007-11-271-2/+23
| | | | | | configuration file (it creates both default mount points if it does) and puppetmasterd no longer requires the configuration file to exist.
* Fixing the asuser method in Puppet::Util::SUIDManagerLuke Kanies2007-11-271-9/+27
| | | | | | | | so that it correctly just yields if you're not root. It also no longer tries to set :uid or :gid; just :euid and :egid, and it once again sets :egid before it sets :euid, which is important because you usually can't change your group after you've changed your user id.
* Fixing #931 by keeping track in configurations ofLuke Kanies2007-11-272-6/+7
| | | | | | | | | | what transportable resources get converted to, so different names don't throw it off. I also got rid of the Puppet::Type#merge method, which has been deprecated for ages but was still in there. I had to fix a few tests that weren't cleaning up after themselves as a result.
* 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.
* Fixing the persistent and periodic schedule test failuresLuke Kanies2007-11-271-356/+0
| | | | by rewriting the schedule tests entirely.
* Fixing the breakage that I caused when I added the 'declared_feature?'Luke Kanies2007-11-261-3/+9
| | | | method to provider features.
* Fixing #920 -- I have replaced the existing mount test with anLuke Kanies2007-11-261-361/+0
| | | | | rspec version. It's not perfect, in that it only tests the :ensure state, but that's where 90% of the behaviour is.
* Fixing #919 -- installed packages used for testing are just ignored,Luke Kanies2007-11-261-0/+2
| | | | rather than throwing a failure.
* Rewriting the tests for the package resource type, fixing #930.Luke Kanies2007-11-262-159/+1
|
* Fixing #921, mostly by just deleting the existing test. I hadLuke Kanies2007-11-261-240/+0
| | | | | | already migrated all of the tests into rspec but forgot about these tests -- they were only in the rails/ subdir because people kept not running the parser/ tests after modifying the Rails code.
* Merge branch 'plugins_mount', fixing #891.Luke Kanies2007-11-242-1/+1
|\ | | | | | | | | | | Conflicts: CHANGELOG
| * Integrating Matt Palmer's patch to provide a 'plugins'Luke Kanies2007-11-242-1/+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.
* | Incorporating patch ↵Luke Kanies2007-11-241-178/+0
| | | | | | | | | | | | | | | | | | | | 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-243-44/+22
|/ | | | | | | 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-232-0/+2
|
* Adding some unit tests for the interface type before i go messing around with itLuke Kanies2007-11-231-39/+0
|
* 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-191-14/+0
| | | | | | | | | | | | 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/tests/fix-cron-tests'Luke Kanies2007-11-191-2/+2
|\ \
| * | fix crontests depending on ENV[USER] by using Etc.getpwuid(Process.uid) insteadDavid Schmitt2007-11-111-2/+2
| |/
* | Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-1924-203/+328
| | | | | | | | | | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* | Merge commit 'davids-bugfixes/rest/fix-815-by-using-main-explicitly'Luke Kanies2007-11-181-2/+2
|\ \