summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Moving all of the tests for Puppet::Parser::Compile toLuke Kanies2008-02-111-31/+333
| | | | | | | | | | | | | | | | | | rspec, so I can refactor the class to more heavily rely on a Node::Catalog instead of doing its own resource container management.
| | * More AST refactoring -- each of the code wrapping classesLuke Kanies2008-02-082-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just returns a resource from its evaluate() method, and all of the work is done in the evaluate_code method. This makes the code cleaner, because it means 1) evaluate() has the same prototype as all of the other AST classes, 2) evaluate() is no longer called indirectly through the Parser Resource class, and 3) the classes themselves are responsible for creating the resources, rather than it being done in the Compile class.
| | * Refactoring the AST classes just a bit. I realized thatLuke Kanies2008-02-082-6/+6
| | | | | | | | | | | | | | | | | | all of the evaluate() methods only ever accepted a scope, and sometimes one other option, so I switched them all to use named arguments instead of a hash.
| | * Fixing the Settings class so that it correctly handlesLuke Kanies2008-02-071-0/+6
| | | | | | | | | | | | file values that are false.
| | * Fix ticket 974. My original "fix" wasn't. This actually fixes the problem by ↵Paul Lathrop2008-02-051-0/+6
| | | | | | | | | | | | using a regular expression that matches only up to the first square bracket.
| | * Significantly refactoring the lexer, including adding Token and TokenListLuke Kanies2008-01-301-0/+465
| | | | | | | | | | | | | | | | | | classes for managing how the tokens work. I also moved they tests to RSpec, but I didn't rewrite all of them.
| | * I think I've finally fixed #959, by having the SettingsLuke Kanies2008-01-201-0/+10
| | | | | | | | | | | | class skip any resources that are already in memory.
| | * Fixing #976 -- both the full name of qualified classes andLuke Kanies2008-01-192-0/+139
| | | | | | | | | | | | | | | | | | the class parts are now added as tags. I've also created a Tagging module that we should push throughout the rest of the system that uses tags.
| * | Environments are now available as variables in manifests,Luke Kanies2008-01-202-1/+22
| | | | | | | | | | | | and specs can be directly executed again.
| * | Merge branch '0.24.x'Luke Kanies2008-01-197-39/+239
| |\|
| * | Removed remaining elements of old_parse - closing Ticket #990James Turnbull2008-01-191-5/+0
| | |
| * | Merge branch 'routing'Luke Kanies2008-01-0191-6204/+14
| |\ \
| | * | tweaking spec language; require Puppet::Network::HTTP class since it is ↵Rick Bradley2007-12-071-4/+4
| | | | | | | | | | | | | | | | referenced by Puppet::Network::Server
| | * | Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-12-072-13/+58
| | |\ \
| | * \ \ Merge branch 'master' of git://reductivelabs.com/puppet into routingRick Bradley2007-12-061-0/+10
| | |\ \ \
| | * | | | Moving $PUPPET/spec/lib/autotest up to $PUPPET/autotest as something has ↵Rick Bradley2007-12-0583-5969/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changed and it can't be found otherwise. Adding $PUPPET/vendor/gems, with unpacked rspec gem there, introducing to spec_helper.rb LOAD_PATH incantation. Eliminating ad hoc unpacked rspec from spec/lib. Moving monkey_patches and shared_behaviors up under spec/. Adjusting spec_helper.rb accordingly. Nuking spec/lib. Fixing up autotest/puppet_rspec.rb to be able to hunt down our vendor/gems/rspec/bin/spec binary. We can now run rspec without having to have the rspec gem installed.
| | * | | | moving autotest directory to make it possible to run autotest againRick Bradley2007-12-057-231/+0
| | | | | |
* | | | | | 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.