summaryrefslogtreecommitdiffstats
path: root/test/network/handler/resource.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removing tests for code that was removed in the REST refactorLuke Kanies2010-04-121-250/+0
| | | | Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* Fixing all of the test/ tests I broke in previous dev.Luke Kanies2008-12-181-1/+1
| | | | | | | | | Most of these are straightforward changes to the tests, but a couple required small refactorings (e.g., References can now be created with Puppet::Type instances, and they know how to extract the type/title from them). Signed-off-by: Luke Kanies <luke@madstop.com>
* Renaming the "Catalog#to_type" method to "Catalog#to_ral"Luke Kanies2008-12-181-3/+3
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing the tests in test/ that were broken asLuke Kanies2008-04-011-59/+26
| | | | a result of the move to no global resources.
* Another round of test-fixes toward eliminating global resourceLuke Kanies2008-01-141-13/+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.
* Theoretically, this patch is to fix #917 (which it does), butLuke Kanies2007-11-281-0/+1
| | | | | | | | | | | | | | | | | | | 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 a few test suites that passed when run asLuke Kanies2007-11-191-0/+2
| | | | | | 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.
* Reverting the changes I'd made toward removing the globalLuke Kanies2007-11-191-2/+3
| | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* Fixed most failing tests, but there are still over thirty failing.Luke Kanies2007-11-181-3/+2
| | | | | | 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.
* Changing the test/ classes so that they work from the mainLuke Kanies2007-10-261-1/+1
| | | | | | test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
* Removing the Id tags from all of the filesLuke Kanies2007-10-031-1/+0
|
* Adding the topscope metadata to the configuration being returned to the ↵Luke Kanies2007-08-221-1/+1
| | | | client, just like it expects, and fixing how the resource handler calls the master type.
* Significantly reworked the type => provider interface with respect toluke2007-06-041-3/+3
| | | | | | | | | | | | | | | | | | | | listing existing provider instances. The class method on both class heirarchies has been renamed to 'instances', to start. Providers are now expected to return provider instances, instead of creating resources, and the resource's 'instances' method is expected to find the matching resource, if any, and set the resource's provider appropriately. This *significantly* reduces the reliance on effectively global state (resource references in the resource classes). This global state will go away soon. Along with this change, the 'prefetch' class method on providers now accepts the list of resources for prefetching. This again reduces reliance on global state, and makes the execution path much easier to follow. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2551 980ebf18-57e1-0310-9a29-db15c13687c0
* A round of fixes so unit tests pass; most of the failures were from the ↵luke2007-05-151-2/+1
| | | | | | merging of the transaction-refactor branch git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2517 980ebf18-57e1-0310-9a29-db15c13687c0
* The first round of fixes for failing tests.luke2007-03-181-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2296 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging the webserver_portability branch from version 2182 to version 2258.luke2007-03-061-0/+295
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2259 980ebf18-57e1-0310-9a29-db15c13687c0