summaryrefslogtreecommitdiffstats
path: root/spec/unit/other
Commit message (Collapse)AuthorAgeFilesLines
* Changed tabs to spaces without interfering with indentation or alignmentIan Taylor2009-06-061-65/+65
|
* Merge branch '0.24.x'Luke Kanies2009-04-021-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/ralsh lib/puppet/executables/client/certhandler.rb lib/puppet/parser/functions/versioncmp.rb lib/puppet/parser/resource/reference.rb lib/puppet/provider/augeas/augeas.rb lib/puppet/provider/nameservice/directoryservice.rb lib/puppet/provider/ssh_authorized_key/parsed.rb lib/puppet/type.rb lib/puppet/type/file/checksum.rb spec/integration/defaults.rb spec/integration/transaction/report.rb spec/unit/executables/client/certhandler.rb spec/unit/indirector/ssl_rsa/file.rb spec/unit/node/catalog.rb spec/unit/provider/augeas/augeas.rb spec/unit/rails.rb spec/unit/type/ssh_authorized_key.rb spec/unit/type/tidy.rb test/executables/filebucket.rb test/executables/puppetbin.rb
| * Fixing every failing test I can find on the build server.Luke Kanies2009-02-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All but one of these tests is fixed by: * Stubbing Puppet.settings.use * Adding /usr/sbin to PATH The only other one was the package integration test, which stupidly assumed a default was specified in the test. The fix here is twofold: Remove that assumption (the test is now 'pending' if no default is available), and add a default for Ubuntu. (The default is in the test, not the default package provider - that is, it's testing the default package provider, thus it can't rely on that information.) Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2009-02-111-33/+0
|\| | | | | | | | | | | Conflicts: CHANGELOG spec/unit/type/file/selinux.rb
| * Moving the transaction specs to the right pathLuke Kanies2009-02-111-33/+0
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating the Puppet::Type.create.Luke Kanies2008-12-182-7/+7
| | | | | | | | | | | | | | This method is no longer necessary; you can use the normal 'new' class method. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating 'Puppet.type'; replacing all instances with Puppet::Type.typeLuke Kanies2008-12-181-3/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | TransObject is nearly deprecated now.Luke Kanies2008-12-182-13/+53
| | | | | | | | | | | | | | | | | | This is all of the plumbing work, the only real thing left to do is to fix the Settings class so that it uses Puppet::Resource instances instead of TransObject and TransBucket. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming the "Catalog#to_type" method to "Catalog#to_ral"Luke Kanies2008-12-182-7/+7
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::Node::Catalog to Puppet::Resource::CatalogLuke Kanies2008-12-182-3/+3
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-021-1/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/puppetca lib/puppet/type/group.rb lib/puppet/type/tidy.rb lib/puppet/util/settings.rb Also edited the following files so tests will pass: lib/puppet/type/component.rb spec/unit/ssl/certificate_request.rb spec/unit/type/computer.rb spec/unit/type/mcx.rb spec/unit/type/resources.rb spec/unit/util/settings.rb spec/unit/util/storage.rb test/ral/type/zone.rb
| * Fixing #1743 - defined types get catalogs too.Luke Kanies2008-11-261-1/+7
| | | | | | | | | | | | | | I wasn't adding the catalog to the defined types when creating the transportable objects. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Add new set of unit tests for selmodule typeJames Turnbull2008-10-081-35/+0
| |
| * Remove old selboolean unit tests and fix permissions on new testsJames Turnbull2008-10-081-30/+0
| |
| * New and improved tests for file type SELinux contextsSean E. Millichamp2008-10-081-27/+0
| |
| * Add new support for :selrange SELinux file propertySean E. Millichamp2008-10-031-1/+5
| |
| * Clean up of SELinux rspec tests so all passSean E. Millichamp2008-10-031-0/+9
| |
| * Merged fsweetser's selinux patch against HEADBrett Lentz2008-10-031-0/+79
| |
| * Revert "Merging fsweetser's selinux patch against 0.24.4"James Turnbull2008-07-201-78/+0
| | | | | | | | This reverts commit f16da4250c16aeab932a81a349df059c69d7ee23.
| * Merging fsweetser's selinux patch against 0.24.4Brett Lentz2008-07-201-0/+78
| |
* | Removing the PGraph class and subsuming it into SimpleGraph.Luke Kanies2008-11-061-210/+0
| | | | | | | | | | | | | | This class is a holdover from when I was using GRATR, and it's obsolete now. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Fixing #1677 - fixing the selinux tests in master.Luke Kanies2008-11-041-0/+6
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merged fsweetser's selinux patch against HEADBrett Lentz2008-09-251-0/+79
| |
* | Merge branch '0.24.x'Luke Kanies2008-07-041-2/+2
|\| | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/util/settings.rb spec/integration/defaults.rb spec/unit/node/catalog.rb spec/unit/type/interface.rb spec/unit/type/ssh_authorized_key.rb
| * Refactoring the Transaction::Event class.Luke Kanies2008-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | The class had a 'transaction' accessor that was assigned but never used, and it is simple enough that it needed direct arguments rather than named arguments. The rest of the code is changing the other classes that use Events. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Renaming Puppet::Event to Puppet::Transaction::EventLuke Kanies2008-07-031-2/+2
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-04-111-189/+0
|\|
| * Fixing #1173 -- classes and definitions can now have the sameLuke Kanies2008-04-101-189/+0
| | | | | | | | name as a directory with no failures.
* | Fixing tests that were failing as a result of the merge,Luke Kanies2008-04-011-4/+0
|/ | | | | including removing some now-obsolete code and tests from the Settings class.
* Refactoring how the catalog creation handles errors.Luke Kanies2008-03-181-15/+22
| | | | | | | | | | | | | | | | | | Previously, if there were an error creating a resource, the error would propagate leaving any previously created resources still in memory. Now, resources are removed by default when an error happens during instantiation, and the error propagates to the caller so that they can log or whatever. This also allows the Settings class to correctly and separately handle the cases where we can't create the catalog (which should never happen in normal usage but was happening because of this error -- later catalogs couldn't be created because earlier catalogs left resources lying around) from those where we can't apply the catalog.
* Fixing #1110 -- transactions now always make sureLuke Kanies2008-02-291-0/+5
| | | | their tags are arrays.
* Somewhat refactored fileserving so that it no longer cachesLuke Kanies2008-02-232-0/+3
| | | | | | | | | | any objects, nor does it use Puppet's RAL resources. In the process, I fixed #894 (you can now copy links) and refactored other classes as necessary. Mostly it was fixing tests. This is a squashed commit of a temporary branch, fwiw, and it also includes any fixes to the tests that were necessary to get all tests passing again.
* Removing the last remaining vestiges of GRATR --Luke Kanies2008-02-111-17/+17
| | | | removing the bangs from 'add_vertex!' and 'add_edge!'.
* Fixing #982 -- I have completely removed the GRATR graph libraryLuke Kanies2008-01-071-36/+0
| | | | from the system, and implemented my own topsort method.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-112-10/+10
|
* Merge branch 'master' of ssh://reductivelabs.com/opt/rl/git/puppetLuke Kanies2007-11-281-1/+11
|\
| * Making a few changes to the transportable class to enhance backward ↵Luke Kanies2007-11-281-1/+11
| | | | | | | | compatibility
* | Another backward compatibility patch, this time helping with a new server ↵Luke Kanies2007-11-281-1/+6
|/ | | | and old client
* Theoretically, this patch is to fix #917 (which it does), butLuke Kanies2007-11-282-3/+17
| | | | | | | | | | | | | | | | | | | there were enough problems fixing it that I decided something more drastic needed to be done. This uses the new Puppet::ResourceReference class to canonize what a resource reference looks like and how to retrieve resources via their references. Specifically, it guarantees that resource types are always capitalized, even when they include '::' in them. While many files are modified in this commit, the majority of changes are quite small, and most of the changes are fixing the tests to use capitalized types. As we look at consolidating some of our resource types, we could consolidate the ResourceReference stuff at the same time, but at least the Puppet::Parser::ResourceReference class subclasses the main Puppet::ResourceReference class.
* Fixing #931 by keeping track in configurations ofLuke Kanies2007-11-271-0/+3
| | | | | | | | | | what transportable resources get converted to, so different names don't throw it off. I also got rid of the Puppet::Type#merge method, which has been deprecated for ages but was still in there. I had to fix a few tests that weren't cleaning up after themselves as a result.
* Fixing #800 by refactoring how configurations are retrievedLuke Kanies2007-11-122-94/+65
| | | | | | | | | from the server. The real problem was getting all of the validation done before any caching, which required a good bit more refactoring than I expected. In actuality, this commit is relatively small even though it covers many files; most of the changes just make the code clearer or shorter.
* Switching the base class for the Relationship class.Luke Kanies2007-11-081-3/+5
| | | | | | | | | | | | | | It was previously using the GRATR::Edge class, which had wonky overrides that dramatically slowed down sorting (its hash mechanism hashed the source and target so that edges with the same source/target got the same hash, which we actually don't want any more). This shouldn't change any functionality, just performance. I didn't retain all functionality from the Edge class, but a lot of that functionality was, um, horrible, like Edge[] being equivalent to Edge.new.
* Switching the graph base class from GRATR::DigraphLuke Kanies2007-11-071-45/+3
| | | | | | to Puppet::SimpleGraph, which should dramatically enhance performance. It should be largely functionally equivalent, with the only difference being that edges are no longer deduplicated.
* Removing the Id tags from all of the filesLuke Kanies2007-10-031-1/+0
|
* Adding more behaviours to the Puppet::Module spec,Luke Kanies2007-10-031-9/+42
| | | | | | | and fixing some bugs in the process. Specifically, modules were no longer correctly handling fully qualified files, and they do so once again.
* Adding my first integration test, verifying thatLuke Kanies2007-09-231-13/+45
| | | | | | | | | | | checksum interaction behaves as I expect when interacting with the file terminus. I've also changed how files and checksums behave a bit. Files now create model instances with the content as the only argument during initialization, and checksums now calculate their checksums rather than having them passed in.
* Adding the first version of checksum support, which willLuke Kanies2007-09-221-0/+60
| | | | acquire the behaviour of FileBuckets.
* Renaming the 'Puppet::Util::Config' class toLuke Kanies2007-09-221-10/+10
| | | | | | | 'Puppet::Util::Settings'. This is to clear up confusion caused by the fact that we now have a 'Configuration' class to model host configurations, or any set of resources as a "configuration".
* All tests now pass in this configuration branch, which meansLuke Kanies2007-09-221-0/+26
| | | | | | | | it's time to merge it back into the indirection branch. Considering that this work was what drove me to create the indirection branch in the first place, i should now be able to merge both back in the master branch.
* An intermediate commit so I can start working on a differentLuke Kanies2007-09-201-2/+2
| | | | | | | | branch. The file recursion code actually works for the first time in a painful while, but there are still some quirks and design issues to resolve, particularly around creating implicit resources that then fail (i.e., the behaviour of the create_implicit_resource method in Configuration).