summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixing #1168 for REST -- all ssl classes downcase their names.Luke Kanies2008-06-154-0/+21
| | | | | | | | This is a much cleaner fix than the xmlrpc version, thankfully. :)
* | Merge branch '0.24.x'Luke Kanies2008-06-142-47/+73
|\| | | | | | | | | | | | | Conflicts: lib/puppet/executables/client/certhandler.rb spec/unit/executables/client/certhandler.rb
| * Merge branch 'ticket/0.24.x/1215' of git://github.com/littleidea/puppet into ↵James Turnbull2008-06-151-24/+3
| |\ | | | | | | | | | 0.24.x
| | * Issue 1215Andrew Shafer2008-06-131-24/+3
| | | | | | | | | | | | | | | | | | Removed logic to reuse parser and log on server when there is a parsing error. Now we just make a new parser and if there is an error, raise it up, which will result in errors on the client logs.
| * | Fix bug in test, add more specs and small refactorAndrew Shafer2008-06-141-32/+74
| | | | | | | | | | | | | | | | | | | | | The tests were failing when run on a machine with certs on the file system Stub out failure to read where appropriate Worked fine at my desk :(
* | | Merge branch '0.24.x'Luke Kanies2008-06-1422-237/+602
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added the fixes to make the certhandler tests pass even when certs exist; I'll deal with the conflict later. Conflicts: CHANGELOG bin/puppetd lib/puppet/network/http/handler.rb lib/puppet/network/http/mongrel/rest.rb spec/integration/indirector/rest.rb spec/integration/network/server/mongrel.rb spec/integration/network/server/webrick.rb spec/unit/network/http/webrick.rb
| * | Adding another note about the save_object stub.Luke Kanies2008-06-131-0/+3
| | |
| * | Removing a duplicate call left over from debuggingLuke Kanies2008-06-131-1/+0
| | |
| * | Replacing all two-space indents with four-spaceLuke Kanies2008-06-137-538/+538
| | |
| * | Adding ruby interpreter lines to the tests missing them.Luke Kanies2008-06-135-2/+12
| | |
| * | Adding execute bits to every test currently missing them.Luke Kanies2008-06-1313-0/+0
| |/
| * Merge branch 'ticket/0.24.x/1359' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-06-132-4/+12
| |\
| | * Fixing how the Indirector::Request sets its options.Luke Kanies2008-06-111-0/+8
| | | | | | | | | | | | | | | | | | I wasn't testing whether the options where still a hash, and an 'inject' loop wasn't returning correctly, so the options weren't being set correctly.
| | * Fixing how the indirection tests for whether the request has node info.Luke Kanies2008-06-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My request authorization code changed the request to set its 'node' instance variable, rather than using its options, and I apparently didn't change the Indirection class to do this. I have *no* idea how these tests were passing before -- they passed for me yesterday but failed for Andrew, and today they started failing for me. Frightening.
| * | Change description of spec to make baby jesus happyAndrew Shafer2008-06-101-2/+2
| | | | | | | | | | | | FAIL
| * | Try againAndrew Shafer2008-06-101-0/+80
| |/ | | | | | | | | | | Add the class to handle certs, specs and modify puppetd should fix 1190, 1199, 1200
| * 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.