summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge branch 'feature/authenticated_rest_requests' of ↵James Turnbull2008-06-103-93/+260
| |\ | | | | | | | | | git://github.com/lak/puppet into 0.24.x
| | * The mongrel and webrick REST handlers now extract certificate information.Luke Kanies2008-06-092-93/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All requests should now have an ipaddress add to them, they should always be marked authenticated or not, and they should have the certificate name set as their 'node' if a certificate is present. They both use the same methods they use for xmlrpc, although there's no common code, to facilitate deprecation of xmlrpc.
| | * Adding to the indirection request support for authentication information.Luke Kanies2008-06-091-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | This basically consists of the node name (i.e., the certificate name), the IP, and whether the request is authenticated (which is determined by whether it provided a valid certificate). Now the two REST classes (mongrel and webrick) need to correctly pass this information to the indirection calls they make.
| * | Adding a class for using templates directly within resourcesLuke Kanies2008-06-091-0/+58
| |/ | | | | | | | | | | (i.e., client-side templates). This would really only be used for composite resources that pass the results of the template on to generated resources.
| * Fixing #1242 -- lack of storeconfigs only produces warning, not exception.Luke Kanies2008-05-261-0/+9
| | | | | | | | | | Exporting or collecting resources no longer raises an exception when no storeconfigs is enabled, it just produces a warning.
| * Always using the cert name to store yaml files, which fixes #1178.Luke Kanies2008-05-261-44/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Master handler previously provided the support for the :node_name setting, and that functionality has now been moved into the Node class. At the same time, the names to search through have been changed somewhat: Previously, the certificate name and the hostname were both used for searching, but now, the cert name is always searched first (unless node_name == facter), but only the Facter hostname, domain, and fqdn are used otherwise. We no longer split the cert name, only the hostname/domain/fqdn. In the general case, this provides no behaviour change, because people's hostname is the same as their certname. This only results in a change in behaviour if you specify a certificate name that is a normal node name, and you want to look that node up by something other than the full name in the certificate. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing #1258 -- Removing a Rails idiom.Luke Kanies2008-05-251-2/+2
| | | | | | | | | | | | This idiom is only functional when you have Rails loaded, which is why it was failing for others but not me.
* | Fixing #1256 -- CA tests now work with no ~/.puppet.Luke Kanies2008-05-252-21/+23
| | | | | | | | | | I've set the default cadir and vardir to /dev/null, to hopefully catch this kind of test sooner next time.
* | Fixing another failing test -- the new CA tests correctly clear the cache.Luke Kanies2008-05-251-1/+2
| | | | | | | | | | I was previously not clearing the cache using the Cacher.invalidate method, which caused a test to fail.
* | Fixing #1245 -- ssh_authorized_keys tests work in master.Luke Kanies2008-05-251-2/+0
| | | | | | | | I just had to remove the '.clear' call.
* | Merge branch '0.24.x'Luke Kanies2008-05-2512-35/+148
|\| | | | | | | | | | | | | Conflicts: CHANGELOG lib/puppet/transaction.rb
| * Fixing an inaccurate test so the tests will run correctly in all branches.Paul Lathrop2008-05-231-3/+1
| |
| * Fixing tests that are broken when running as root under OSX 10.5Paul Lathrop2008-05-234-2/+13
| |
| * Added warnings test and cleaning up trailing whitespace.Paul Lathrop2008-05-231-0/+35
| |
| * Fixed a bug in my tests which caused them to fail when run against the ↵Paul Lathrop2008-05-231-0/+4
| | | | | | | | master branch.
| * Fixing the node/catalog so that it can convert from parser catalogs to RAL ↵Luke Kanies2008-05-221-0/+20
| | | | | | | | | | | | | | | | | | | | catalogs. It largely worked previously, except when aliases were set, which require catalogs. This now converts all parser resources to trans_objects then to RAL resources, and sets the catalog in the meantime. This allows aliases to work just fine when converting directly from parser catalogs to RAL catalogs.
| * The ldap user/group providers now work when no users/groups are in ldap yet.Luke Kanies2008-05-212-17/+36
| | | | | | | | | | Previously, they failed if you tried to get them to autogenerate an id, because they assumed that a result would be returned.
| * Adding support for settings within the existing Facter provider confines.Luke Kanies2008-05-203-24/+40
| | | | | | | | | | | | This renames the 'facter' confine to 'variable', and it prefers settings to facts. There shouldn't really be any overlap, so it shouldn't be a problem.
| * Intermediate commit so I can move on to other things.Luke Kanies2008-05-201-0/+10
| |
* | Merge branch '0.24.x'Luke Kanies2008-05-2038-49/+2565
|\| | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/integration/defaults.rb spec/integration/node/catalog.rb spec/unit/rails.rb spec/unit/type/mount.rb
| * Mocking Facter in an integration test, so it works with no networkingLuke Kanies2008-05-191-0/+6
| |
| * Merge commit 'plathrop/fix-1228' into 0.24.xLuke Kanies2008-05-191-0/+237
| |\
| | * Minor cosmetic changes to cleanup some style elements and get rid of some cruft.Paul Lathrop2008-05-181-22/+23
| | |
| | * Another refactor based on feedback from Luke. This includes adding an ↵Paul Lathrop2008-05-181-19/+23
| | | | | | | | | | | | accessor for @@state to make testing a bit cleaner.
| | * Refactored tests based on feedback from Luke.Paul Lathrop2008-05-171-176/+169
| | |
| | * Rewritten tests for Puppet::Util::Storage.Paul Lathrop2008-05-171-44/+211
| | |
| | * Add unit tests for Puppet::Util::StoragePaul Lathrop2008-05-171-0/+72
| | |
| * | Refactoring how the provider confine tests work, again.Luke Kanies2008-05-198-237/+415
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now each of the test types is a separate subclass of Confine, so that they can have all of their own logging and summarizing behaviour. Also, added a 'feature' type, which can test for the availability of Puppet features (and log their absence more usefully).
| * | Modified the 'factpath' setting to automatically configureLuke Kanies2008-05-161-0/+17
| | | | | | | | | | | | | | | Facter to load facts there if a new enough version of Facter is used.
| * | Fixing a mock in the redhat interface test.Luke Kanies2008-05-161-2/+2
| | | | | | | | | | | | | | | It mocked :exists? instead of :exist?, and my provider work changed the method call because :exists? is going away in ruby.
| * | Moving all confine code out of the Provider class, and fixing #1197.Luke Kanies2008-05-153-77/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | I created a Confiner module for the Provider class methods, and then I enhanced the interface between it and the Confine class to make sure binary paths are searched for fresh each time. This fixes #1197, which was a result of binary paths being searched for at startup, rather than at execution.
| * | Moving the 'confine' handling to separate classes.Luke Kanies2008-05-152-0/+288
| | |
| * | Duh, fixing all of the paths being loaded for spec in the moved tests.Luke Kanies2008-05-1518-44/+42
| | |
| * | Moving all tests that are in 'ral' up a level.Luke Kanies2008-05-1518-0/+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.
| * | Added the ability to add arbitrary attributes to ldap.Gunnar Wrobel2008-05-151-0/+91
| |/ | | | | | | This fixes #1179.
| * Correcting whitespace in the templatewrapper code.Luke Kanies2008-05-131-52/+52
| | | | | | | | Also slightly modified the wording of some of the tests.
| * Adding has_variable? support, fixing ticket #1177Adam Jacob2008-05-131-0/+57
| |
| * Merge branch 'authorized_keys' into 0.24.xLuke Kanies2008-05-122-0/+154
| |\
| | * adding execute bits to testsLuke Kanies2008-05-122-0/+0
| | |
| | * New native ssh_authorized_key typeFrancois Deppierraz2008-05-072-0/+154
| | |
| * | Adding ldap providers for the user and group type.Luke Kanies2008-05-126-0/+1388
| | | | | | | | | | | | | | | | | | These providers use posixAccount and posixGroup. This is a collapsed merge, fwiw.
| * | Fixing another test that wrote to ~Luke Kanies2008-05-121-0/+1
| | |
| * | Fixing a test that wrote to ~.Luke Kanies2008-05-121-0/+8
| |/
* | Using the new Cacher class for handling cached data.Luke Kanies2008-05-1320-95/+55
| | | | | | | | | | This provides a single, global bit for determining whether a given piece of cached data is still valid.
* | Adding a module for handling caching information.Luke Kanies2008-05-071-0/+142
| | | | | | | | | | | | | | I keep having issues with integration tests keeping cached values around, and this module should hopefully give us a single place to invalidate all caches, thus making testing this much easier.
* | Fixing some broken tests.Luke Kanies2008-05-071-0/+10
| | | | | | | | | | | | | | The HttpPool module now removes its cached ssl_host instance when clearing its cache. This is really only useful for testing, but it correctly causes the pool to use new certificates when they're available.
* | The CRL is now automatically used or ignored.Luke Kanies2008-05-075-78/+21
| | | | | | | | | | | | | | | | | | Previously, you had to configure whether you wanted the CRL or not, which resulted in errors all the time when it was configured but unavailable. Now, Puppet will always create and try to use it, but you won't get failures if it's unavailable.
* | The master and client now successfully speak xmlrpc using the new system.Luke Kanies2008-05-074-1/+114
| | | | | | | | | | | | The server is actually serving REST, but the client can't use it until we resolve the format and security issues that REST hasn't yet tackled.
* | Adding pidfile management and daemonization to the ServerLuke Kanies2008-05-071-195/+301
| | | | | | | | class.