summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Tracking down some weird bugs that managed to creep into the parser. I ↵luke2006-08-282-11/+16
| | | | | | expect that the main ones were a result of the If support. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1494 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing some changes to the %h expansion in fileserving. This change ↵luke2006-08-282-15/+112
| | | | | | makes the expansion entirely isolated in the Mount class, which makes it much easier to test. Also, switched the fileserver config to use ParsedFile, which makes it a bit easier to understand and handle reparsing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1493 980ebf18-57e1-0310-9a29-db15c13687c0
* Support for %h and %H replacement in the path of fileserver modules.lutter2006-08-261-0/+115
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1490 980ebf18-57e1-0310-9a29-db15c13687c0
* Certificate revocation through puppetca. Keep a simple text inventory of all ↵lutter2006-08-231-0/+23
| | | | | | certificates ever issued. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1485 980ebf18-57e1-0310-9a29-db15c13687c0
* Committing definition inheritance. I have not yet written tests yet, but my ↵luke2006-08-222-1/+51
| | | | | | last commit pretty seriously broke some things without me realizing it, so I wanted to get this in. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1484 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "if/else" constructs. No operators, no elsif, but it is a good ↵luke2006-08-223-0/+83
| | | | | | start, anyway. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1483 980ebf18-57e1-0310-9a29-db15c13687c0
* Function autoloading now works as requested in #214.luke2006-08-221-0/+27
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1482 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding warnings and error throwing for #218 -- metaparams in prototypes are ↵luke2006-08-211-0/+25
| | | | | | treated specially. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1481 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #225. Normal file copying worked with spaces, but recursive file ↵luke2006-08-211-0/+22
| | | | | | copying did not. I modified one of the support methods so it works now. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1478 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #228. The real problem was that "present" should match any type of ↵luke2006-08-211-0/+41
| | | | | | file existence, whereas it was just matching files. If the file was a directory, as in this case, Puppet considered it to be out of sync. Now, "present" matches files, links, or directories, but still creates an empty file if the path is missing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1477 980ebf18-57e1-0310-9a29-db15c13687c0
* Support for certificate revocation and checking connections on the server ↵lutter2006-08-212-31/+139
| | | | | | against the CRL git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1475 980ebf18-57e1-0310-9a29-db15c13687c0
* Making some of the metaprogramming a bit more explicit and a bit easier to ↵luke2006-08-205-7/+46
| | | | | | | | manage. In the process, I have created multiple Util modules, only one of which is used for this current commit. The main work in this commit is that I created a single, common method for dynamically creating classes and moved all of the Class.new users to using this class. It handles a lot of the complexity for me, and most of the users have just a couple of lines of code, now, instead of tens. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1473 980ebf18-57e1-0310-9a29-db15c13687c0
* Finishing changes to support titles instead of two types of names. This is ↵luke2006-08-177-33/+65
| | | | | | basically a bug-fix commit. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1472 980ebf18-57e1-0310-9a29-db15c13687c0
* A first pass of changing one of the types of names to titles. I still have ↵luke2006-08-163-7/+168
| | | | | | to fix a lot of tests, but the core itself is now working. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1471 980ebf18-57e1-0310-9a29-db15c13687c0
* Merging r1468 from the implementations branch with r1438 from when the ↵luke2006-08-1418-596/+1686
| | | | | | branch was first created. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1469 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing the master server so that it always uses the Facter hostname, not the ↵luke2006-07-311-0/+39
| | | | | | cert or IP hostname. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1433 980ebf18-57e1-0310-9a29-db15c13687c0
* Another batch of bug fixes, this time focused on OS X patches. Looks like I ↵luke2006-07-223-4/+8
| | | | | | did not test on os x last time. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1422 980ebf18-57e1-0310-9a29-db15c13687c0
* First round of bugfixes in preparation for 0.18.4luke2006-07-214-6/+8
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1421 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #77. As I feared, this was a pretty complicated fix; I had to add a ↵luke2006-07-211-0/+110
| | | | | | | | lot of infrastructure to both ParsedFile and Config. All config files now have a timer created for them, and by default they check for file changes every 15 seconds. If there is a change, they get rid of values set by the file (but not set on the cli) and set the new values, then the re-use all of the sections, so that any changed directories or whatever get recreated. This is still not a 100% solution, since things like open files could still be messed with, but I think this is about as close as we are going to get. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1420 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding timeout functionality to the ParsedFile class, in preparation to ↵luke2006-07-212-1/+31
| | | | | | adding config reloading to the Config class. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1419 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #176. You can now do duplicate UIDs (or GIDs on most platforms) with ↵luke2006-07-212-0/+55
| | | | | | :allowdupe. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1416 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #201; users now autorequire extra groupsluke2006-07-211-22/+27
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1412 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #191. I was only testing for parsed cron instances, not for created ↵luke2006-07-181-0/+36
| | | | | | ones. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1402 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing bug in scope/interpreter where nodes found in ldap must have parent ↵luke2006-07-181-15/+41
| | | | | | nodes. The problem was that the the scope was using the presence of a parent node to determine whether a node was found. Instead I added a flag in the arguments to "Scope#evaluate" to mark nodes as found. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1401 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding a unit test for plain "nodesearch"luke2006-07-181-0/+37
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1400 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing filebucket server so that paths are not added multiple timesluke2006-07-111-3/+24
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1392 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding tests for previous config bugfixes, and updating changelogluke2006-07-111-0/+48
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1391 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing reports so that multiple host report directories can be created. ↵luke2006-07-111-0/+16
| | | | | | There was a config conflict before. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1390 980ebf18-57e1-0310-9a29-db15c13687c0
* Accepting the patch from #190.luke2006-07-051-6/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1368 980ebf18-57e1-0310-9a29-db15c13687c0
* Redoing reporting a bit, so that reports are now defined as methods. If ↵luke2006-07-042-6/+7
| | | | | | they are not methods, then they cannot use return, which makes things a bit uglier. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1359 980ebf18-57e1-0310-9a29-db15c13687c0
* fixing some smallish bugs in preparation for 0.18.2luke2006-07-044-8/+17
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1358 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding blastwave packaging, and doing some fixes on gem and sun packagingluke2006-07-041-13/+61
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1356 980ebf18-57e1-0310-9a29-db15c13687c0
* Some updates resulting from trying to track down a segfault introduced when ↵luke2006-07-033-5/+12
| | | | | | I upgraded to 1.8.4-5 in Debian. I never found the segfault and had ot downgrade to 1.8.4-1. I expect it will not be encountered in real life, only in testing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1355 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding Ruby Gem support to packagingluke2006-07-031-0/+80
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1354 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding minimal update checking for templates. It will only check the ↵luke2006-07-031-0/+46
| | | | | | templates that have been parsed in this process, but it is better than nothing. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1353 980ebf18-57e1-0310-9a29-db15c13687c0
* Significantly redoing metrics. There are now no class variables for ↵luke2006-06-303-25/+67
| | | | | | metrics, nor no class methods for it. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1350 980ebf18-57e1-0310-9a29-db15c13687c0
* committing tests for previous changesluke2006-06-303-4/+81
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1349 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #133. Added a "notify" and a "before" metaparam; notify is the ↵luke2006-06-301-0/+48
| | | | | | opposite of subscribe, and before is the opposite of require. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1344 980ebf18-57e1-0310-9a29-db15c13687c0
* Fix a small bug in mount where parsing fails if dump and pass are missing ↵lutter2006-06-305-0/+56
| | | | | | (they are optional on Linux) Revamp the tests slightly so that they parse fstabs provided in svn rather than relying on the fstab on the system the test is running on. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1343 980ebf18-57e1-0310-9a29-db15c13687c0
* Moving the template handling into a simple wrapper object so templates don't ↵luke2006-06-301-0/+26
| | | | | | have full access to the scope object without some real hacking. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1342 980ebf18-57e1-0310-9a29-db15c13687c0
* adding some tests for the template functionluke2006-06-292-1/+83
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1341 980ebf18-57e1-0310-9a29-db15c13687c0
* First commit of complete reporting support. The only existing report at ↵luke2006-06-291-1/+1
| | | | | | this point is the tagmail report. I expect reporting to get significantly modified from here, but it is a good start. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1339 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding reporting client, server, and tests. At this point, the server just ↵luke2006-06-291-0/+74
| | | | | | stores the report in a file as YAML. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1337 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding report collection to both statechange and transaction.luke2006-06-291-0/+29
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1336 980ebf18-57e1-0310-9a29-db15c13687c0
* For each type, adding a "new<type>" method to Puppet::Type, so instead of ↵luke2006-06-281-0/+47
| | | | | | typing Puppet::Type.type(:file).create(...) you can now type Puppet::Type.newfile(...). git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1331 980ebf18-57e1-0310-9a29-db15c13687c0
* Cleaning up plugin handling a bit -- they can now be colon-separated paths, ↵luke2006-06-283-2/+61
| | | | | | and I added a separate "plugindest" setting for determining where plugins are synchronized to. The major feature I added, though, is that Puppet::Type now knows how to load plugins, and treats :pluginpath as a search path for plugins. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1330 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing zone testsluke2006-06-281-3/+4
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1329 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing backgrounding in puppetrun; I had the bit flipped between the client ↵luke2006-06-281-12/+12
| | | | | | and the server, such that setting --foreground caused the clients to go into the background. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1325 980ebf18-57e1-0310-9a29-db15c13687c0
* Making sure fail function converts everything to stringsluke2006-06-271-1/+2
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1323 980ebf18-57e1-0310-9a29-db15c13687c0
* Adding "fail" function, which will raise a ParseError if it is encountered.luke2006-06-271-0/+19
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1322 980ebf18-57e1-0310-9a29-db15c13687c0