summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding apple package support, but it is very limited -- packages can only be ↵luke2006-04-031-0/+38
| | | | | | installed, not upgraded or removed. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1055 980ebf18-57e1-0310-9a29-db15c13687c0
* making a small change to the test, so failures are more informativeluke2006-04-021-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1054 980ebf18-57e1-0310-9a29-db15c13687c0
* Added a test for Type#remove, and fixed the method so it actually works. I ↵luke2006-04-022-17/+39
| | | | | | was missing every other object, because i was iterating over the array being modified. This caused the Config stuff to often fail, because objects were not correctly being removed. All fixed now, though. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1053 980ebf18-57e1-0310-9a29-db15c13687c0
* adding mkdir equivalent of Config#writeluke2006-04-021-0/+30
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1052 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a "write" method to config objects, so that files can be easily ↵luke2006-04-022-0/+39
| | | | | | written with the correct owner, group, and modes git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1051 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing a bug that appeared somehow in port.rb, and adding mount and sshkey ↵luke2006-04-011-0/+1
| | | | | | to the types being autoloaded git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1050 980ebf18-57e1-0310-9a29-db15c13687c0
* renaming filesystem to mountluke2006-04-011-50/+50
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1049 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding filesystem support, and modifying parsedtypes a bit to fix a bug ↵luke2006-04-012-0/+265
| | | | | | where non-instance lines were being duplicated git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1048 980ebf18-57e1-0310-9a29-db15c13687c0
* Accept a single file as a test to run in addition to a directorylutter2006-03-311-15/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1046 980ebf18-57e1-0310-9a29-db15c13687c0
* New yumrepo type for basic management of the yum configuration oflutter2006-03-313-0/+93
| | | | | | | one repo. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1043 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding os x group management supportluke2006-03-221-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1042 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing support for group membership management. Currently only works on ↵luke2006-03-221-0/+108
| | | | | | Linuxes and other OSes that use "useradd" that support -G. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1041 980ebf18-57e1-0310-9a29-db15c13687c0
* commiting package test fix that i thought i committed ages agoluke2006-03-221-0/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1040 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #100. I just added a bit of a hack to configuration parsing -- if a ↵luke2006-03-151-0/+21
| | | | | | group is specified in a section that matches the name of the process, then it is assumed to be the group that the process should run as. The problem is that we are reusing the term "group" here for both the run-group and the file-group. Oh well. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1036 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing service enable/disable on solaris 10, and fixing some problems with ↵luke2006-03-141-2/+4
| | | | | | the tests git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1033 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing small bug in the test code when there are no packages to testluke2006-03-131-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1020 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding upgrade ability to sun packages. Currently it removes the old ↵luke2006-03-131-28/+40
| | | | | | package and installs the new one. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1019 980ebf18-57e1-0310-9a29-db15c13687c0
* adding some extra info to the ldap testluke2006-03-131-2/+7
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1017 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing fileserver tests; apparently they were still broken from when i ↵luke2006-03-121-28/+28
| | | | | | changed the fileserving interface to handle links. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1016 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing small bug in symlink recursionluke2006-03-121-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1015 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #94. When "ensure" is synced, it syncs the "enable" state at the ↵luke2006-03-121-0/+33
| | | | | | same time. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1014 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #98. Filebuckets now work throughout the system, and the ↵luke2006-03-121-14/+3
| | | | | | puppetmasterd creates one by default. I have also updated the :backup docs, adding an example. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1012 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing rpms so they will automatically upgrade when you point Puppet to a ↵luke2006-03-121-0/+50
| | | | | | new package file git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1007 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing broken test from my previous changeluke2006-03-111-1/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1006 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #82. You can now specify comma-separated tags to get run in puppet ↵luke2006-03-111-1/+67
| | | | | | or puppetd: puppetd --onetime --tags "enhost, facter" -v. You cannot specify classes explicitly, but tags map well to classes and have the benefit of being more generic. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1005 980ebf18-57e1-0310-9a29-db15c13687c0
* Using undefined variables is no longer an exception, it just returns an ↵luke2006-03-111-2/+4
| | | | | | empty string. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1003 980ebf18-57e1-0310-9a29-db15c13687c0
* There was a critical design flaw in the link recursion work I did ↵luke2006-03-101-0/+5
| | | | | | previously, and fixing it required a decently large reorganization. Everything is much, much cleaner now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1001 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging symlinks back into files. Symlinks still exist but with a warning ↵luke2006-03-104-5/+149
| | | | | | about deprecation. Fixes #93. Also the first time I have run any tests on OS X, so there are some bug fixes related to that. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1000 980ebf18-57e1-0310-9a29-db15c13687c0
* Parameters and states can now register regexes as allowed values. Also, ↵luke2006-03-093-0/+225
| | | | | | there are (finally) tests associated with params and states, although they should be much more comprehensive. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@999 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #95. I had to redesign how events were triggered; the transaction ↵luke2006-03-091-0/+51
| | | | | | now individually triggers each subscription, so that it has control in how to respond to failures. Eventually, this will lead the way to error handling within puppet, but for now, it just allows us to trigger every appropriate subscription, whether some have failed or not. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@998 980ebf18-57e1-0310-9a29-db15c13687c0
* Creating a single, constistent method for writing files, instead of having ↵luke2006-03-091-0/+19
| | | | | | :ensure, :content, and :source each have a slightly different mechanism. This method also makes sure that the owner, group, and mode are always set on file creation, so extra runs are not necessary to make it work. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@997 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #96. Defaults are now set when the object is passed out by the ↵luke2006-03-092-0/+67
| | | | | | scope, rather than when the object is created. This is nice because it also moves awareness of the scope internals out of the AST object and back into the scope. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@996 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing the last changes, for now, to handling links. You still cannot ↵luke2006-03-064-42/+121
| | | | | | copy remote links, but you can either ignore or follow them. I do not think we will be able to copy remote links until I have merged symlinks and files to be the same object type again. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@984 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "links" parameter to files, and adding support for following or ↵luke2006-03-041-1/+113
| | | | | | ignoring links to all of the states it can matter to. I still need to modify "source" so that it behaves correctly when managing links. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@983 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing logging in the fileserver so it is always obvious where the logs are ↵luke2006-03-031-1/+1
| | | | | | originating, and fixing a bit of debugging elsewhere. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@980 980ebf18-57e1-0310-9a29-db15c13687c0
* Supporting variables as the test value in both case statements and selectors.luke2006-03-031-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@976 980ebf18-57e1-0310-9a29-db15c13687c0
* Definitions now always create their own context, which means that they ↵luke2006-03-032-13/+63
| | | | | | cannot override elements in the containing scopes. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@972 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing tests so they do not chmod /dev/null to 640 (stupid tests).luke2006-03-025-75/+33
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@967 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #68. After tons and tons and tons of work, everything successfully ↵luke2006-03-025-4/+70
| | | | | | configures itself, and the --genmanifest argument should actually work. User and group creation will not necessarily work everywhere (in particular, Puppet uses dependencies to create the group first, but Fedora complains on user creation if the group already exists), but file and directory creation should. The only downside is that there is a decent amount of extra information printed on daemon startup, as the daemon checks its config; this could maybe be seen as a bonus, though, I guess. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@966 980ebf18-57e1-0310-9a29-db15c13687c0
* Okay, Puppet is now almost entirely capable of configuring itself. I have ↵luke2006-03-0214-55/+218
| | | | | | not yet added the extra tests to puppetmasterd to make sure it can start as a normal user, and the executables still fail some simple tests because they are producing output when they start (I will get rid of the output), but overall things look pretty good. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@965 980ebf18-57e1-0310-9a29-db15c13687c0
* Changing the setdefaults input format somewhat. It is always a hash of some ↵luke2006-03-011-22/+50
| | | | | | kind now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@962 980ebf18-57e1-0310-9a29-db15c13687c0
* Intermediate commit; setdefaults now accepts both hashes and arraysluke2006-03-011-0/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@961 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing user and group management in the config handling.luke2006-02-281-1/+25
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@960 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #70. We now have user and group management on FreeBSD.luke2006-02-281-0/+3
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@958 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing bug #60. Converting nodes to use types everywhere instead of names, ↵luke2006-02-283-10/+43
| | | | | | and adding a localobjectable to keep track of what parameters have been defined locally. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@957 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #64; multiple class definitions in the same scope is now an error, ↵luke2006-02-271-1/+19
| | | | | | although using the same class name in different scopes is not an error. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@956 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing bug #73; node names now appear only once in the pathluke2006-02-271-4/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@955 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing bug #75, providing support for unnecessary end commas.luke2006-02-271-0/+13
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@954 980ebf18-57e1-0310-9a29-db15c13687c0
* Mostly, this is a refactoring commit. There is one significant new feature,luke2006-02-278-45/+54
| | | | | | | | | | | | | | | | | though: overrides now only work within a class heirarchy, which is to say that a subclass can override an element in a base class, but a child scope cannot otherwise override an element in a base scope. I've also done a good bit of refactoring, though; notably, AST#evaluate now takes named arguments, and I changed the 'name' parameter to 'type' in all of the Component classes (this was all internal, but was confusing as it was). I also removed the need for the autonaming stuff -- it's now acceptable for components not to have names, and everything behaves correctly. I haven't yet removed the autoname code, though; I'll do that on the next commit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@952 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing scopes and AST so that definitions and classes are looked for in the ↵luke2006-02-273-7/+121
| | | | | | scopes, instead of in a global list git-svn-id: https://reductivelabs.com/svn/puppet/trunk@950 980ebf18-57e1-0310-9a29-db15c13687c0