summaryrefslogtreecommitdiffstats
path: root/spec/unit/ral
Commit message (Collapse)AuthorAgeFilesLines
* Moving all tests that are in 'ral' up a level.Luke Kanies2008-05-1517-2486/+0
| | | | | This directory only existed as an organizational method, and the code never matched it, so I'm fixing it.
* Fixing the user test.Luke Kanies2008-05-151-6/+4
| | | | It was causing exceptions when run as part of the whole suite.
* adding execute bits to testsLuke Kanies2008-05-122-0/+0
|
* New native ssh_authorized_key typeFrancois Deppierraz2008-05-072-0/+154
|
* Fixing some tests that were failing because new base typesLuke Kanies2008-04-081-31/+39
| | | | | were added to Naginator, but no new related resource types were added.
* Fixes #1148 - replaces #!/usr/bin/ruby with #!/usr/bin/env ruby.Paul Lathrop2008-03-282-2/+2
|
* Fixing some tests that only failed under certainLuke Kanies2008-03-181-4/+7
| | | | | circumstances (mostly, when loaded with other files, or when loaded from rake or autotest rather than separately).
* Removing explicit requires of types and providers,Luke Kanies2008-03-182-6/+1
| | | | | | because they were conflicting with Puppet's autoloading. This is clearly a sign that our autoloading is silly, if Ruby's own loading easily makes it unhappy.
* Fixing #1118 -- downloading plugins and facts now ignores noop.Luke Kanies2008-03-131-0/+38
| | | | | | Note that this changes the behaviour a bit -- the resource's noop setting always beats the global setting (previously, whichever was true would win).
* renaming ral/types to ral/type in the testsLuke Kanies2008-02-289-0/+0
|
* Adding a 'control' parameter to services, for thoseLuke Kanies2008-02-281-4/+11
| | | | service types that need a control variable to enable/disable.
* Removing the validation on package sources, sinceLuke Kanies2008-02-261-2/+2
| | | | | some platforms (e.g., hpux) do not have a well-formed requirement for the source.
* Somewhat refactored fileserving so that it no longer cachesLuke Kanies2008-02-231-0/+37
| | | | | | | | | | any objects, nor does it use Puppet's RAL resources. In the process, I fixed #894 (you can now copy links) and refactored other classes as necessary. Mostly it was fixing tests. This is a squashed commit of a temporary branch, fwiw, and it also includes any fixes to the tests that were necessary to get all tests passing again.
* Removing a test I never migrated from test/unit.Luke Kanies2008-02-211-119/+0
|
* Quashed commit of my fixes for #1010.Luke Kanies2008-02-211-0/+119
|
* Removing some extraneous debugging from a test.Luke Kanies2008-02-181-3/+0
|
* Merge branch 'my24' into 0.24.xRick Bradley2008-02-185-594/+560
|\
| * converting mount provider specs from setup/teardown to before/afterRick Bradley2008-02-181-88/+84
| |
| * converting parsed mount provider specs from setup/teardown to before/afterRick Bradley2008-02-181-78/+81
| |
| * converting mount type specs from setup/teardown to before/afterRick Bradley2008-02-181-94/+91
| |
| * converting package type specs from setup/teardown to before/afterRick Bradley2008-02-181-91/+94
| |
| * converting ral/types/schedule specs away from setup/teardownRick Bradley2008-02-181-243/+210
| |
* | Fixed #1037 -- remote unreadable files no longer have theLuke Kanies2008-02-181-11/+44
|/ | | | | permission denied exceptions caught, thus forbidding them from being replaced with 'nil'.
* Renaming the 'pfile' and 'pfilebucket' files to plainLuke Kanies2008-02-131-1/+1
| | | | | 'file' and 'filebucket'. This should have been done years ago.
* Removing the last remaining vestiges of GRATR --Luke Kanies2008-02-111-2/+2
| | | | removing the bangs from 'add_vertex!' and 'add_edge!'.
* 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-311-0/+55
| | | | | | | | | | | | | 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.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-112-23/+23
|
* Adding basic unit tests for type/user by DavidS from #948.Luke Kanies2007-12-061-0/+58
|
* Fixing a couple of tests that were failing on a different platform or with a ↵Luke Kanies2007-11-281-1/+1
| | | | 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.
* Theoretically, this patch is to fix #917 (which it does), butLuke Kanies2007-11-281-1/+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 #931 by keeping track in configurations ofLuke Kanies2007-11-272-6/+10
| | | | | | | | | | 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
|
* Adding more tests to the redhat interface provider. It noLuke Kanies2007-11-231-1/+103
| | | | | longer uses the :target parameter (which I'll be removing in the next commit).
* Rewriting the sunos interface provider to manually parse andLuke Kanies2007-11-231-48/+166
| | | | | generate, rather than using ParsedFile. This should fix #777, and has from what I can tell.
* Adding unit tests for the sunos interface provider.Luke Kanies2007-11-231-0/+121
|
* Adding some unit tests for the interface type before i go messing around with itLuke Kanies2007-11-231-0/+95
|
* Removing the bootproto and broadcast attributes from the redhat interface ↵Luke Kanies2007-11-201-18/+0
| | | | provider, since they are not needed
* fixing the path to the spec helper in the exec testLuke Kanies2007-11-201-1/+1
|
* Fixing #762. The main problem was that I accepted the patchLuke Kanies2007-11-201-0/+187
| | | | | | in #744 which broke the templates. In the process, I also added test code for the redhat interface provider and rewrote how parsing worked to make it more testable.
* Moving the exec test into the types/ directoryLuke Kanies2007-11-201-0/+0
|
* Fixing the exec spec so it works when non-root and is a bit cleanerLuke Kanies2007-11-201-42/+12
|
* Using the Environment class to determine the default environment,Luke Kanies2007-11-201-1/+0
| | | | | rather than plenty of different places having the logic of how to determine the default environment.
* Merge commit 'davids-bugfixes/rest/fix-903'Luke Kanies2007-11-191-0/+124
|\