summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* moving cwd existence check into "sync" instead of "validate"luke2006-04-051-0/+34
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1085 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a small bug in type.rb that ignored false values (instead of nil ↵luke2006-04-051-0/+17
| | | | | | values), another small bug in value setting that resulted in the file and line appearing twice in errors, and added validation to all of the checks in :exec (along with testing for all of it). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1084 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding darwinport type.luke2006-04-051-14/+14
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1080 980ebf18-57e1-0310-9a29-db15c13687c0
* differentiating openbsd from freebsd, adding freebsd, and autoloading ↵luke2006-04-053-6/+4
| | | | | | package types instead of manually loading them git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1079 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing Config#mkdir test to not check gid on any BSD, since they appear to ↵luke2006-04-051-5/+16
| | | | | | ignore egid when making directories or files git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1077 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #103. There are now no such things as node scopes; the entire tree ↵luke2006-04-052-26/+131
| | | | | | is evaluated on every node connection, and node facts are set at the top-level scope. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1072 980ebf18-57e1-0310-9a29-db15c13687c0
* getting rid of the parser tree, and moving everything into the language dirluke2006-04-043-0/+0
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1070 980ebf18-57e1-0310-9a29-db15c13687c0
* loading yumrepo in the test, since it is not being loaded in the main codeluke2006-04-041-0/+1
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1069 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing a couple of bugs in preparation for 0.15.2; mostly they were in the ↵luke2006-04-048-31/+35
| | | | | | testing system and resulted from changing :File to :Manifest in server/master git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1068 980ebf18-57e1-0310-9a29-db15c13687c0
* adding -e ability to puppet executableluke2006-04-041-3/+30
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1065 980ebf18-57e1-0310-9a29-db15c13687c0
* Change how names for nodes are specified: the 'node' keyword can be followed ↵lutter2006-04-041-0/+84
| | | | | | by a NAME or by single quoted text, i.e. fully qualified names for nodes must be enclosed in single quotes git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1064 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the class file to actually store class names, not object ids. Also ↵luke2006-04-042-0/+40
| | | | | | added tests to make sure it all stays that way. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1063 980ebf18-57e1-0310-9a29-db15c13687c0
* Finally! We now have mount support in OS X. Ouch.luke2006-04-041-16/+26
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1062 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding netinfo type and some testsluke2006-04-032-160/+96
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1061 980ebf18-57e1-0310-9a29-db15c13687c0
* Bugfixes for OS X. I had to do some shenanigans on type/file/ensure.rb -- ↵luke2006-04-032-2/+11
| | | | | | it was testing whether the parent dir was writeable on object creation, and if not it was not setting ownership and such, so i added some post-creation checks that will fix ownership if it was not set correctly at creation time. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1058 980ebf18-57e1-0310-9a29-db15c13687c0
* 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