summaryrefslogtreecommitdiffstats
path: root/test/ral
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Fixing #730 -- mounts now call flush() before trying to mountluke2007-08-051-45/+68
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2745 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #726 -- mounts can now correctly handle mounted but absent filesystems.luke2007-07-201-0/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2723 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding some code in an attempt to fix #728, but it is all commented out ↵luke2007-07-201-1/+17
| | | | | | since I could not get it fixed in time for beaker git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2722 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #725. I was apparently not deleting the alias I was creating to the ↵luke2007-07-191-0/+15
| | | | | | components. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2718 980ebf18-57e1-0310-9a29-db15c13687c0
* Converting mount test to use mount everywhere instead of dfluke2007-07-191-3/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2716 980ebf18-57e1-0310-9a29-db15c13687c0
* The first round of bug-fixes in preparation for beakerluke2007-07-191-0/+12
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2714 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #716 -- the package type was considering anything that was not ↵luke2007-07-191-0/+8
| | | | | | "absent" to be installed, but that included "purged", thus the problem git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2709 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the rest of #705, except for the env stuff, which I was not able to ↵luke2007-07-141-0/+16
| | | | | | reproduce. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2697 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the instances method. It now works when there are already managed ↵luke2007-07-121-5/+17
| | | | | | resources. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2685 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the :check metaparam so it does not try to check unsupported parametersluke2007-07-121-0/+32
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2684 980ebf18-57e1-0310-9a29-db15c13687c0
* removing the test for a method I removed yesterdayluke2007-07-121-48/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2683 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the first half of #705 -- matching no longer fails. I think this ↵luke2007-07-121-12/+60
| | | | | | also fixes #648. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2680 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding support for a "mailalias" type, with /etc/aliases support initially. ↵luke2007-07-103-6/+126
| | | | | | I have not yet figured out how to best rebuild the aliases file when necessary. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2676 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding support in Property for declarating whether a given property type ↵luke2007-07-101-0/+38
| | | | | | will match all @should values or just the first. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2674 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #704 -- Puppet was not failing correctly when schedules were missing, ↵luke2007-07-041-0/+28
| | | | | | I think git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2648 980ebf18-57e1-0310-9a29-db15c13687c0