summaryrefslogtreecommitdiffstats
path: root/spec/lib/shared_behaviours
Commit message (Collapse)AuthorAgeFilesLines
* Moving $PUPPET/spec/lib/autotest up to $PUPPET/autotest as something has ↵Rick Bradley2007-12-052-94/+0
| | | | | | | | | | | | changed and it can't be found otherwise. Adding $PUPPET/vendor/gems, with unpacked rspec gem there, introducing to spec_helper.rb LOAD_PATH incantation. Eliminating ad hoc unpacked rspec from spec/lib. Moving monkey_patches and shared_behaviors up under spec/. Adjusting spec_helper.rb accordingly. Nuking spec/lib. Fixing up autotest/puppet_rspec.rb to be able to hunt down our vendor/gems/rspec/bin/spec binary. We can now run rspec without having to have the rspec gem installed.
* Fixing the last failing test relating to the environment changesLuke Kanies2007-11-201-1/+2
|
* File serving should work now, both recursive andLuke Kanies2007-10-241-2/+1
| | | | | | | | | | | | | | single files, across modules, local file system, and the traditional file server. This work revolves around making sure that the termini produce functional file instances, meaning that they know how to find their content or metadata, which largely comes down to setting their paths correctly. I also created a new terminus base class for the local filesystem, since there was so much common code between content and metadata.
* Adding the calls to the authorization hooks in the Indirection.Luke Kanies2007-10-231-0/+2
|
* Renaming the :local termini for metadata and contentLuke Kanies2007-10-221-4/+4
| | | | to :file.
* Link handling is now in the file serving classes.Luke Kanies2007-10-221-1/+1
| | | | | | | | | | This was done by putting all of the functionality in the Content and Metadata class (actually, in a new base class for them). There are still some issues, and there need to be integration tests between the :local (soon to be renamed :file) termini for these classes.
* Adding authorization hooks to the file_server andLuke Kanies2007-10-212-8/+2
| | | | | | | | | | | | | module_files indirection terminus types. Both hooks use the fileserver configuration, but the module_files hook only uses the 'modules' mount. Also moved all responsibility for knowing whether to use the 'modules' terminus type to the terminus selector; it was previously spread between that and the file_server terminus, which made some things annoyingly complicated. This normalizes the deprecation notices and the logic about how we make these decisions.
* Renaming the 'mounts' terminus to 'file_server', and renamingLuke Kanies2007-10-202-7/+5
| | | | tests accordingly.
* File serving now works. I've tested a couple of ways toLuke Kanies2007-10-191-1/+15
| | | | | | | | | | | | | | | | use it, and added integration tests at the most important hook points. This provides the final class structure for all of these classes, but a lot of the class names are pretty bad, so I'm planning on going through all of them (especially the file_server stuff) and renaming. The functionality is all here for finding files, though (finally). Once the classes are renamed, I'll be adding searching ability (which will enable the recursive file copies) and then adding the link management and enabling ignoring files.
* I've now split the file-serving termini into two separate types (inLuke Kanies2007-10-182-0/+86
addition to Rest): A local terminus that just uses direct file paths, and a mounts terminus that uses the file server to figure out what the path should be. It looks like it also makes sense to split the 'mounts' terminus further, so there is a 'modules' terminus used to look files up in the terminus. I've added some integration tests to verify that everything is hooked together correctly. Lastly, I added a directory for shared behaviours. There's a ton of duplication in this setup, because the Content and Metadata classes behave almost but not quite identically across the board.