summaryrefslogtreecommitdiffstats
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch 'routing'Luke Kanies2008-01-011-4/+4
| |\ \
| | * | tweaking spec language; require Puppet::Network::HTTP class since it is ↵Rick Bradley2007-12-071-4/+4
| | | | | | | | | | | | | | | | referenced by Puppet::Network::Server
* | | | Fixing automatic relationships. I was previously looking themLuke Kanies2008-01-141-1/+9
| | | | | | | | | | | | | | | | | | | | 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-099-65/+40
| | | | | | | | | | | | | | | | | | | | | | | | 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-081-12/+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.
* | | Fixing #982 -- I have completely removed the GRATR graph libraryLuke Kanies2008-01-073-37/+41
| | | | | | | | | | | | from the system, and implemented my own topsort method.
* | | Fixing #971 -- classes can once again be included multipleLuke Kanies2008-01-071-1/+14
| | | | | | | | | | | | times.
* | | Fixing the unit tests for nagios_maker; I could swear I'd alreadyLuke Kanies2008-01-071-8/+8
| | | | | | | | | | | | done this but I must not have committed it.
* | | Removing the requirement in the parsed mount providerLuke Kanies2008-01-071-1/+1
| | | | | | | | | | | | that the fstab file exist.
* | | Added builtin support for all Nagios resource types.Luke Kanies2007-12-312-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I use Naginator to parse and generate the files, with ParsedFile to handle record management and the like. Note that each resource type itself is just a call to a Factory method, since everything is just based on Naginator. Given that, all of the tests are in a single unit/ral/types/nagios.rb file, since I used a factory to generate them, too. This is probably either unnecessary or insufficient, but it's as far as I'm willing to go in testing them, and it did actually catch a few bugs.
* | | Adding the metaprogramming to create the Nagios typesLuke Kanies2007-12-311-0/+104
|/ / | | | | | | | | | | and Naginator providers. This is basically all of the code that's necessary to create all of the needed Nagios types.
* | Further fixes toward #965. Turned out that the previous fixLuke Kanies2007-12-211-117/+131
| | | | | | | | | | | | | | caused other problems. This whole thing will hopefully get *drastically* easier once we get rid of global resources.
* | Removing the ability to disable http-keep alive,Luke Kanies2007-12-191-18/+8
| | | | | | | | since it didn't work and is now unnecessary.
* | Entirely refactoring http keep-alive. There's nowLuke Kanies2007-12-192-107/+237
| | | | | | | | | | | | | | | | 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-2/+7
| | | | | | | | against 0.24.0 servers.
* | Fixing #961 -- closing existing, open connections whenLuke Kanies2007-12-171-1/+31
| | | | | | | | | | a new connection is requested, and closing all connections at the end of each run.
* | This should be the last fix for exported resources.Luke Kanies2007-12-111-0/+21
| | | | | | | | | | | | Hosts were keeping the export bit on all resources, even when they'd collected another host's resources, which caused a duplicate copy that was still exported.
* | Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-1115-236/+236
| |
* | Renaming the 'null' terminus type to 'plain', asLuke Kanies2007-12-113-9/+9
| | | | | | | | requested in #960.
* | Copying the fact-loading code from the network client toLuke Kanies2007-12-111-0/+9
| | | | | | | | | | the Facter terminus until I have a better solution. This problem was discovered becomes of #958.
* | Fixing #937 -- I had not ported the dot methods at all,Luke Kanies2007-12-111-5/+7
| | | | | | | | and I had to make a few small changes to make them work.
* | Fixing some further failing tests resulting from the fix forLuke Kanies2007-12-101-13/+11
| |
* | Fixing #951 -- external nodes work again, but you have toLuke Kanies2007-12-104-87/+109
| | | | | | | | set the 'node_terminus' setting to 'exec'.
* | Fixing the rest of #948. My previous work was sufficient,Luke Kanies2007-12-101-0/+14
| | | | | | | | | | | | except that I was not passing the interpolated value in to the hook, which meant the libdir was set to something like $vardir/lib.
* | Fixing part of #948 -- per-setting hooks are now calledLuke Kanies2007-12-101-2/+47
|/ | | | | when the configuration file is parsed. The bug is still there, but I'm getting closer.
* Adding basic unit tests for type/user by DavidS from #948.Luke Kanies2007-12-061-0/+58
|
* Fixing #923. Resources that are collected on the localLuke Kanies2007-12-061-13/+0
| | | | host are no longer marked as not exported.
* Updated tests for http_enable_post_connection_check configuration setting.Jeffrey J McCune2007-11-291-0/+10
|
* Fixing a couple of tests that were failing on a different platform or with a ↵Luke Kanies2007-11-282-2/+2
| | | | different version of ruby
* Fixing #892 -- filesystem mounts are no longer remounted.Luke Kanies2007-11-281-0/+7
|
* Fixing #527 (rewrote service tests), #766 (services only restart when theyLuke Kanies2007-11-282-2/+249
| | | | | | | 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.
* Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-11-281-1/+11
|\
| * Making a few changes to the transportable class to enhance backward ↵Luke Kanies2007-11-281-1/+11
| | | | | | | | compatibility
* | Another backward compatibility patch, this time helping with a new server ↵Luke Kanies2007-11-281-1/+6
|/ | | | and old client
* Theoretically, this patch is to fix #917 (which it does), butLuke Kanies2007-11-287-37/+96
| | | | | | | | | | | | | | | | | | | 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.
* Adding a top-level ResourceReference class that everythingLuke Kanies2007-11-281-0/+43
| | | | else can use to canonize how we refer to resources. Finally.
* Fixing #931 by keeping track in configurations ofLuke Kanies2007-11-274-6/+35
| | | | | | | | | | 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 the persistent and periodic schedule test failuresLuke Kanies2007-11-271-0/+374
| | | | by rewriting the schedule tests entirely.
* Fixing #924 -- clearing the configuration cache before andLuke Kanies2007-11-261-1/+0
| | | | after the test.
* Fixing #920 -- I have replaced the existing mount test with anLuke Kanies2007-11-261-0/+189
| | | | | rspec version. It's not perfect, in that it only tests the :ensure state, but that's where 90% of the behaviour is.
* Fixing a test that was erroneously testing for the wrong featureLuke Kanies2007-11-261-1/+1
|
* Rewriting the tests for the package resource type, fixing #930.Luke Kanies2007-11-261-0/+246
|
* Fixing #921, mostly by just deleting the existing test. I hadLuke Kanies2007-11-261-4/+22
| | | | | | 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-241-0/+13
|\ | | | | | | | | | | Conflicts: CHANGELOG
| * Integrating Matt Palmer's patch to provide a 'plugins'Luke Kanies2007-11-241-0/+13
| | | | | | | | | | | | | | | | | | | | 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.
* | Implementing the test for setting the RailsLuke Kanies2007-11-241-18/+41
| | | | | | | | log level.
* | Merge commit 'danp/rails_socket_and_tests'Luke Kanies2007-11-241-0/+94
|\ \
| * | change up rails specs again with Luke's helpDan Peterson2007-11-241-41/+79
| | |
| * | mock all use of Puppet[] in Puppet::Rails.database_argumentsDan Peterson2007-11-231-26/+35
| | |
| * | fix spacingDan Peterson2007-11-231-3/+3
| | |