summaryrefslogtreecommitdiffstats
path: root/spec/unit
Commit message (Collapse)AuthorAgeFilesLines
...
* | All indirections are working, and they have allLuke Kanies2007-09-2211-401/+414
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | been migrated over to the new organization. Where we would have previously had an 'ldap' node terminus at puppet/indirector/node/ldap.rb, we would not have it at puppet/indirector/ldap/node.rb, and it would be a subclass of puppet/indirector/ldap.rb. These are called terminus classes, and there are now three categories of them: The base class itself, abstract classes that provide most of the functionality (e.g., the ldap and yaml classes), and the classes themselves that implement the functionality for a given model like Node or Facts. The base terminus class handles auto-loading any of these classes from disk.
* | It looks like the new indirection setup is complete.Luke Kanies2007-09-216-149/+164
| | | | | | | | I only need to port the node indirection termini over.
* | Adding automatic association between terminus subclasses andLuke Kanies2007-09-211-4/+58
| | | | | | | | | | | | the indirection they're working with. It looks like I'll be moving terminus registration to the indirection rather than the top-level Indirector.
* | Adding the first top-level terminus (yaml). It worksLuke Kanies2007-09-213-10/+166
| | | | | | | | | | | | | | | | | | | | | | and is tested, so now it is time to migrate the Facts YAML Terminus to use the <terminus>/<indirection> file structure instead of <indirection>/<terminus>. In this case, that means that I am moving the functionality in lib/puppet/indirector/facts/yaml.rb to lib/puppet/indirector/yaml/facts.rb, and the class in that new file will subclass Puppet::Indirector::Yaml.
* | Moving the Puppet::Indirector::Terminus class into itsLuke Kanies2007-09-211-0/+39
| | | | | | | | own file and adding a spec for it.
* | Adding a couple more tests to the indirector, talking aboutLuke Kanies2007-09-211-0/+13
| | | | | | | | | | | | terminus registration. I am about to change how loading is handled, so that individual termini are declared as normal Ruby classes.
* | The indirector specs now all pass. I think I needLuke Kanies2007-09-211-45/+52
| | | | | | | | to add a few more specs, though.
* | The unit tests for the newly-resurrected indirection classLuke Kanies2007-09-202-126/+129
| | | | | | | | now work; all we need do is fix the indirector module tests.
* | Fixing all existing spec tests so that they nowLuke Kanies2007-09-208-47/+53
| | | | | | | | | | | | pass given the redesign that Rick implemented. This was mostly a question of fixing the method names and the mocks.
* | Whitespace and comment commit.Rick Bradley2007-09-201-1/+3
| |
* | More spec and indirector updates.Rick Bradley2007-09-201-105/+44
| |
* | Finally, some progress. Closing the loops and delegating registered class ↵Rick Bradley2007-09-191-9/+38
| | | | | | | | calls out to the actual Terminus.
* | Reworking the Indirector code. Continuing to fight the classgen and ↵Rick Bradley2007-09-191-75/+130
| | | | | | | | instance_loader "utilities".
* | Updates to indirection stuffs. Making a better spec and migrating to it.Rick Bradley2007-09-171-3/+80
|/
* Moving the resource container behaviour to the Configuration object, rather ↵Luke Kanies2007-09-122-25/+23
| | | | than the base PGraph class. I expect I will just do away with PGraph, but for now, I am at least going to keep configuration-related code in that class.
* Adding a to_graph method to TransBuckets, so that the buckets can directly ↵Luke Kanies2007-09-123-0/+549
| | | | generate a graph, rather than having to first convert to RAL types and then have them convert to a graph. This allows us to make it so components do not need a @children array at all. This was all done because I am having the "already a parent of" problem again, and I have gotten far enough that it is relatively easy to just make this problem go away once and for all.
* Another intermediate commit. The node and fact classes are now functional ↵Luke Kanies2007-09-1210-159/+530
| | | | and are used instead of the network handlers, which have been removed. There are some failing tests as a result, but I want to get this code committed before I massage the rest of the system to make it work again.
* The Node handler is now obsolete. Node searching is handled through the ↵Luke Kanies2007-09-111-0/+79
| | | | indirector. I have not yet added the tests for the node handlers themselves, which is next.
* Doing an intermediate commit so rick can look at the work I have done so far.Luke Kanies2007-09-114-0/+282
|
* Fixing #807. The exception handling should more closely resemble how it ↵Luke Kanies2007-09-062-4/+16
| | | | used to be done.
* Flipped the switch so that compiles now return a Configuration instance ↵Luke Kanies2007-09-041-8/+12
| | | | instead of pre-extracting the configuration.
* We now have a real configuration object, as a subclass of GRATR::Digraph, ↵Luke Kanies2007-09-041-0/+125
| | | | that has a resource graph including resources for the container objects like classes and nodes. It is apparently functional, but I have not gone through all of the other tests to fix them yet. That is next.
* Doing a small amount of refactoring, toward being able to use Parser ↵Luke Kanies2007-09-032-0/+105
| | | | resources to evaluate classes and nodes, not just definitions. This will hopefully simplify some of the parsing work, and it will enable the use of a Configuration object that more completely models a configuration.
* Deleting old documentation that somehow made it back into the tree in the ↵Luke Kanies2007-09-011-0/+48
| | | | switch to git, and refactoring the evaluate_classes method on the compile object so I can use resources as intermediaries, thus making classes do late-binding evaluation.
* Making a couple of small bugfixes in the configuration subsystemLuke Kanies2007-08-271-0/+13
|
* Multiple environment support now works, and I have even tested it in real ↵Luke Kanies2007-08-262-25/+59
| | | | life. This commit is mostly a bug-fix commit, resulting from the difference between real-life testing and unit testing.
* Adding a bit of testing for node names.Luke Kanies2007-08-261-0/+5
|
* Moving the node tests to rspec, and cleaning up the spec of the node, ↵Luke Kanies2007-08-261-68/+89
| | | | especially WRT the environment.
* Moving the node tests to rspec, and cleaning up the spec of the node, ↵Luke Kanies2007-08-261-0/+75
| | | | especially WRT the environment.
* And we have multiple environment support in the parser. The only remaining ↵Luke Kanies2007-08-251-1/+7
| | | | piece to make this complete is to add multiple environment support to the fileserver. I also renamed Configuration.rb to Compile.rb (that is, I fixed all the classes that used to know it as a configuration).
* Removing this test for now; I do not have time to port it from test/unit to ↵Luke Kanies2007-08-251-755/+0
| | | | rspec
* Renaming the "configuration" object to "compile", because it is only a ↵Luke Kanies2007-08-251-0/+755
| | | | transitional object and I want the real "configuration" object to be the thing that I pass from the server to the client; it will be a subclass of GRATR::Digraph.
* Oops, created a test directory in the main spec dir, rather than in the ↵Luke Kanies2007-08-251-0/+150
| | | | unit/ subdir
* The config class now has support for add an environment to its search path. ↵Luke Kanies2007-08-241-24/+78
| | | | Now I just need to go through the whole system and use the search path in addition to the parameter name itself.
* I have added basic support for a search path, altho not yet with any ability ↵Luke Kanies2007-08-241-20/+100
| | | | to manipulate it. All config tests pass in both the old tests and the new ones, so it is time to add the hooks for manipulating the search path.
* Adding some rspec tests for Config.rb, because I am planning on ↵Luke Kanies2007-08-231-0/+249
| | | | significantly changing its internals and the current tests, I think, will be harder to migrate than just writing rspec tests from scratch.
* Everything up to the parser (and the Modules) is ready to support multiple ↵Luke Kanies2007-08-231-0/+76
| | | | environments, including the parser having an environment setting. I have also created my first spec-based tests, for the interpreter (and deleted the old test/unit tests).
* Building a stand-alone spec directory for creating the new spec-based tests.Luke Kanies2007-08-231-0/+94