summaryrefslogtreecommitdiffstats
path: root/test/ral
Commit message (Collapse)AuthorAgeFilesLines
* Added :env parameter for backwards-compatibility, with warning about ↵Paul Lathrop2008-02-051-0/+40
| | | | deprecation. :env parameter sets new :environment parameter. Changed instances of :env to :environment for consistency with other types. Added tests for new parameters. This cimmit fixes ticket 1007.
* Added hostname test for hosts typeJames Turnbull2008-02-061-1/+8
|
* Updated fix for ticket #151 and added a testJames Turnbull2008-02-051-0/+9
|
* 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-211-2/+0
| | | | | | | caused other problems. This whole thing will hopefully get *drastically* easier once we get rid of global resources.
* Entirely refactoring http keep-alive. There's nowLuke Kanies2007-12-191-0/+5
| | | | | | | | 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 some tests that were failing with the recent ruby that hasLuke Kanies2007-12-181-0/+2
| | | | ssl issues.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-1115-66/+66
|
* Applying patch by josb in #884 to provide patternLuke Kanies2007-12-111-0/+52
| | | | matching in the tidy type.
* 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.
* Fixing #931 by keeping track in configurations ofLuke Kanies2007-11-271-0/+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 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
|
* Adding some unit tests for the interface type before i go messing around with itLuke Kanies2007-11-231-39/+0
|
* Fixing a few test suites that passed when run asLuke Kanies2007-11-198-0/+16
| | | | | | 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-1914-134/+178
| | | | | | | | | | | | | | | | resources. These are commits: c19835ce9f8a5138b30a1a32ca741c996b0916d2 9290cc89a2206fb5204578f8e91208857a48b147 ffb4c2dbc7314b364d25e4f7be599ef05b767b44
* | Fixed most failing tests, but there are still over thirty failing.Luke Kanies2007-11-1814-178/+134
| | | | | | | | | | | | 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-126-19/+69
|/ | | | | | | | | 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.
* Fixing the 'mount' tests so that they no longerLuke Kanies2007-11-081-250/+0
| | | | | modify the local system and they run fine as non-root users.
* Changing the test/ classes so that they work from the mainLuke Kanies2007-10-2647-47/+47
| | | | | | test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
* Fixing failing tests, including making the debian serviceLuke Kanies2007-10-131-17/+4
| | | | provider test work on non-Debian platforms.
* Merge branch 'master' of git://michaelobrien.info/puppet into michaelLuke Kanies2007-10-091-0/+71
|\
| * Fixed #822. Applied patch provided by DavidS.Michael V. O'Brien2007-10-081-0/+71
| |
* | Moving the webrick/mongrel "servers" over to HTTPServer module instead of ↵Rick Bradley2007-10-051-2/+2
|/ | | | Server. Using Server as the master class for client connections. Server (former RESTServer) will instantiate the appropriate subclass based upon Puppet configurator setting. There are now tests broken in the network section which I can't seem to figure out yet. Not a happy place to be.
* Fixed #827. Applied a form of the patch provided by porridge andMichael V. O'Brien2007-10-041-1/+2
| | | | wrote a test.
* Attempting to reproduce and fix #829 by applying patch by Paul. I could notLuke Kanies2007-10-041-1/+6
| | | | | | get a test to show the exception, nor could I figure out how the coding bug could have actually had an impact, but it's an innocent-enough fix, so I'm fine applying it.
* Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-10-0344-44/+0
|\ | | | | | | | | | | | | Conflicts: lib/puppet/defaults.rb lib/puppet/dsl.rb
| * Removing the Id tags from all of the filesLuke Kanies2007-10-0344-44/+0
| |
* | I finally tracked down the problem that was causing providersLuke Kanies2007-10-032-14/+9
|/ | | | | | | | | | | | to sometimes suddenly disappear and thus tests to fail -- Kernel.require was not loading the normal ruby path (e.g., 'puppet/type/cron'), so if someone else loaded that then it would replace the in-memory type with a new one, but that new one couldn't load its own providers, because the Kernel would ignore the providers, thinking they were already loaded. This doesn't fix all of the autoloading problems, but at least we won't suddenly break a ton of tests.
* Use external helper script to talk to yum; should avoid any more trouble ↵David Lutterkort2007-10-021-0/+3
| | | | | | with "yum list". Fixes trac #836 Signed-off-by: David Lutterkort <dlutter@redhat.com>
* All tests now pass in this configuration branch, which meansLuke Kanies2007-09-221-70/+0
| | | | | | | | it's time to merge it back into the indirection branch. Considering that this work was what drove me to create the indirection branch in the first place, i should now be able to merge both back in the master branch.
* The structure for handling resource generation is nowLuke Kanies2007-09-222-6/+8
| | | | | | | | | | in place, which means I'm over the hump in developing this branch. I have to fix some design flaws I made in the configurations, particularly that the 'runner' handler needs to be able to specify tags and whether to ignore schedules, but otherwise, I think it's straightforward test- and bug-fixing from here out.
* An intermediate commit so I can start working on a differentLuke Kanies2007-09-201-3/+1
| | | | | | | | branch. The file recursion code actually works for the first time in a painful while, but there are still some quirks and design issues to resolve, particularly around creating implicit resources that then fail (i.e., the behaviour of the create_implicit_resource method in Configuration).
* This is basically another intermediate commit. I feel likeLuke Kanies2007-09-1713-252/+83
| | | | | | | | | | | | | | | | | | | | I've gone too far down the rabbit hole to turn back now, but the code is clearly getting more centralized around the Configuration class, which is the goal. Things are currently a bit muddy between recursion, dynamic resource generation, transactions, and the configuration, and I don't expect to be able to clear it up much until we rewrite all of the tests for the Transaction class, since that is when we'll actually be setting its behaviour. At this point, Files (which are currently the only resources that generate other resources) are responsible for adding their edges to the relationship graph. This puts them knowing more than I would like about how the relationship graph works, but it'll have to do for now. There are still failing tests, but files seem to work again. Now to go through the rest of the tests and make them work.
* Fixing a path test. I have now made the path stuff a lot cleaner, but it ↵Luke Kanies2007-09-071-1/+1
| | | | apparently broke this test.
* Fixing #801 -- resources that have changes when running in noop mode do not ↵Luke Kanies2007-09-071-2/+19
| | | | record that they were checked, so that they will be scheduled on the next run. This is a somewhat murky solution, but considering that no one had submitted this bug before, I expect it will not hit many people.
* Adding support for providing a diff when files are being changed. Currently ↵Luke Kanies2007-08-271-1/+0
| | | | uses a local diff binary, but could easily be changed to use the ruby diff/lcs library. Modified puppet and puppetd to automatically show file diffs when in noop mode, but can otherwise be enabled using --show_diff. This only works when running interactively, because the diffs are printed on stdout.
* Broaden assert_absent so that it thinks that :purged is equivalent to :absent(no author)2007-08-091-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2766 980ebf18-57e1-0310-9a29-db15c13687c0
* Change the service name so that it is less likely to trip on a common word ↵(no author)2007-08-091-2/+2
| | | | | | and spuriously fail git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2765 980ebf18-57e1-0310-9a29-db15c13687c0
* Highlight what I think is a problem in the test suite that I just can't solve(no author)2007-08-091-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2760 980ebf18-57e1-0310-9a29-db15c13687c0
* Refactor SUIDManager tests to run without root, change SUIDManager's ↵christian2007-08-091-0/+2
| | | | | | behavior to not silently fail when it's not root and fix all other tests that broke as a result. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2759 980ebf18-57e1-0310-9a29-db15c13687c0
* The last set of bug-fixes before the next release. This commit just fixes a ↵luke2007-08-071-1/+5
| | | | | | couple of problems that resulted when I changed the Provider#initialize method to not duplicate its argument, which was necessary for ParsedFile. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2753 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #749 -- environment settings no longer accumulate. Significantly ↵luke2007-08-064-90/+236
| | | | | | adding to the cron tests at the same time, such that hopefully we will no longer have these recurring bugs. I now do every combinatorial of multi-line cron jobs, including doing them all in one file. There are, unfortunately, still edge cases, but maybe we will have some peace in cron space for a while, anyway. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2750 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #751 -- the interface providers now have basic tests, at least to ↵luke2007-08-051-0/+40
| | | | | | verify that prefetching and listing works. I think these resource types need to be largely rewritten, though, and they currently have no relationship to ifconfig, which seems strange. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2747 980ebf18-57e1-0310-9a29-db15c13687c0