summaryrefslogtreecommitdiffstats
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | Fixed #1232 - the rundir no longer specifies a user/group,Luke Kanies2008-07-031-1/+14
| | |/ | | | | | | | | | | | | | | | and there are now client- and server-specific yaml directories. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Removing all of the code related to the interface type.Luke Kanies2008-07-033-605/+0
| | |
| * | Doing what I can to fix #1128, but just in preparation for removing 'interface'.Luke Kanies2008-07-031-21/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This type needs to be started again from scratch, and I'm not going to do so for 0.24.5. In particular, the model for red hat and sunos need to match -- they should both use the device name as the actual name. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Fixing the "describe" in the redhat interface specsLuke Kanies2008-07-031-10/+10
| |/ | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add a missing test for exercising the last untested line of ↵Francois Deppierraz2008-07-031-0/+10
| | | | | | | | lib/puppet/type/ssh_authorized_key.rb
| * Merge branch 'tickets/0.24.x/1384' of git://github.com/ctrlaltdel/puppet ↵James Turnbull2008-07-031-7/+52
| |\ | | | | | | | | | into 0.24.x
| | * Use generate instead of autorequire in the ssh_authorized_key type based on ↵Francois Deppierraz2008-07-021-8/+19
| | | | | | | | | | | | Luke's comments
| | * ssh_authorized_key: autorequire, default permissions and cleanupFrancois Deppierraz2008-06-271-6/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autorequire the target file and its parent directory as well. Default permissions and owner are now set on the file and its parent directory. Moved target attribute setting code from prefetch() in the provider to the type itself. This seems much cleaner to me.
| * | Fixing the ldap node terminus to merge facts with the right name.Luke Kanies2008-07-021-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, I was merging early and changing the name later. This commit fixes it so that the node is created with the right name in the first place, so the node.fact_merge actually works. Yay for real-world testing. Signed-off-by: Luke Kanies <luke@madstop.com>
| * | Backporting a test that was failing in master, and fixing itLuke Kanies2008-07-021-0/+5
| | | | | | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | | Fixing the new-form version of #1382.Luke Kanies2008-07-021-0/+28
| | | | | | | | | | | | It only works when finding certificates, but that should be sufficient.
* | | Merge branch '0.24.x'Luke Kanies2008-07-0212-984/+1209
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: CHANGELOG spec/unit/node/catalog.rb spec/unit/type/package.rb spec/unit/type/schedule.rb spec/unit/type/service.rb spec/unit/util/settings.rb
| * | Fixing the Node::Ldap.search method to use an indirection request.Luke Kanies2008-07-011-6/+10
| | | | | | | | | | | | | | | | | | I foolishly was just using the old-style api. Added an integration test to catch this in the future.
| * | Switching the ldap terminus to use Util::Ldap::Connection.Luke Kanies2008-07-011-97/+89
| | | | | | | | | | | | | | | This is a simplified class for managing ldap connections, and this work just removes some duplication.
| * | Added a 'search' method to the ldap node terminus.Luke Kanies2008-07-012-231/+226
| | | | | | | | | | | | | | | This makes it easy to find multiple nodes in ldap, and was done so it can be used by puppetrun.
| * | Adding an 'instance' class method to ldap connections.Luke Kanies2008-07-011-0/+42
| | | | | | | | | | | | | | | This just returns a Connection instance with the default ldap configuration information already provided.
| * | Fixing #1374 - Using Puppet::Type.type() in testsLuke Kanies2008-06-174-113/+105
| |/
| * Merge branch 'tickets/0.24.x/1012' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-06-171-2/+11
| |\ | | | | | | | | | | | | | | | Conflicts: CHANGELOG
| | * Fixed #1012 - templates in the templatedir are preferred to module templates.Luke Kanies2008-06-161-2/+11
| | |
| * | Fixed #1221 - aliases to titles now work for resources.Luke Kanies2008-06-161-3/+8
| |/
| * Fixed #1360 -- allowdupe works with groups again.Luke Kanies2008-06-162-0/+62
| | | | | | | | | | | | I've added a couple of tests for this bit of the user and group useradd/groupadd providers, but I haven't migrated the rest of the tests.
| * issue 1183Andrew Shafer2008-06-161-585/+701
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added environment awareness to --configprint Pulled the logic for --configprint --genconfig and --genmanifest out of puppet.rb Put the logic in lib/puppet/util/settings.rb and refactored it a bit Added specs for the behavior Reformated the whole spec file to use nested describe Added the new method to the executables The old behavior should be preserved, except for the env is now used
* | Merge branch '0.24.x'Luke Kanies2008-06-154-81/+45
|\| | | | | | | | | | | | | | | Conflicts: CHANGELOG Finally adding release names to the changelog so we can keep the changes aligned in the right part of the log.
| * Merge branch 'tickets/0.24.x/1201' of git://github.com/lak/puppet into 0.24.xJames Turnbull2008-06-161-0/+6
| |\ | | | | | | | | | | | | | | | Conflicts: CHANGELOG
| | * Fixed #1201 - all external node attributes are converted to strings.Luke Kanies2008-06-151-0/+6
| | |
| * | Removing the Node.find_by_name method.Luke Kanies2008-06-151-15/+7
| | | | | | | | | | | | | | | We just use the regular Node.find method now, since the nodes don't need to do any magical naming.
| * | The LDAP Node terminus now searches for the fqdn, short name, and default.Luke Kanies2008-06-151-1/+19
| | | | | | | | | | | | | | | | | | This provides something like the multiple name scenario previously used by the parser but now implemented in each terminus.
| * | Refactoring the 'find' method a bit in the LDAP Node terminus.Luke Kanies2008-06-151-2/+2
| | | | | | | | | | | | | | | This just splits the method into smaller pieces, so it's a bit easier to maintain.
| * | Converting the Node.node_names class method into an instance method.Luke Kanies2008-06-151-57/+12
| | | | | | | | | | | | | | | | | | | | | | | | This effectively removes the ability to search node termini for multiple names; only the parser will use these names. Temporarily retaining the 'find_by_any_name' method; it will be removed in a later commit.
| * | Removing an obsolete, unimplemented testLuke Kanies2008-06-151-7/+0
| |/
* | 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-1417-160/+518
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Replacing all two-space indents with four-spaceLuke Kanies2008-06-132-33/+33
| | |
| * | Adding ruby interpreter lines to the tests missing them.Luke Kanies2008-06-132-0/+4
| | |
| * | Adding execute bits to every test currently missing them.Luke Kanies2008-06-1310-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>