summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/file_content
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-18 12:24:05 -0500
committerLuke Kanies <luke@madstop.com>2007-10-18 12:24:05 -0500
commit815618568d88daf373fb057333c962e31a4b748b (patch)
treecf794db2fca50d312950abbf79fdbaeb0a649b7f /spec/unit/indirector/file_content
parent2718b638d1df7fe37941952e396d84d1eff1efc9 (diff)
downloadpuppet-815618568d88daf373fb057333c962e31a4b748b.tar.gz
puppet-815618568d88daf373fb057333c962e31a4b748b.tar.xz
puppet-815618568d88daf373fb057333c962e31a4b748b.zip
Renaming the file_serving/{content,metadata} indirections
so that they make more sense in the REST API, and creating stub tests for the indirection termini. Now it's on to create the rest of the tests for them.
Diffstat (limited to 'spec/unit/indirector/file_content')
-rwxr-xr-xspec/unit/indirector/file_content/file.rb15
-rwxr-xr-xspec/unit/indirector/file_content/rest.rb9
2 files changed, 24 insertions, 0 deletions
diff --git a/spec/unit/indirector/file_content/file.rb b/spec/unit/indirector/file_content/file.rb
new file mode 100755
index 000000000..68f8a38d0
--- /dev/null
+++ b/spec/unit/indirector/file_content/file.rb
@@ -0,0 +1,15 @@
+#!/usr/bin/env ruby
+#
+# Created by Luke Kanies on 2007-10-18.
+# Copyright (c) 2007. All rights reserved.
+
+require File.dirname(__FILE__) + '/../../../spec_helper'
+
+require 'puppet/indirector/file_content/file'
+
+describe Puppet::Indirector::FileContent::File do
+ it "should be registered with the file_content indirection" do
+ Puppet::Indirector::Terminus.terminus_class(:file_content, :file).should equal(Puppet::Indirector::FileContent::File)
+ end
+end
+
diff --git a/spec/unit/indirector/file_content/rest.rb b/spec/unit/indirector/file_content/rest.rb
new file mode 100755
index 000000000..725e35075
--- /dev/null
+++ b/spec/unit/indirector/file_content/rest.rb
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+
+require File.dirname(__FILE__) + '/../../../spec_helper'
+
+require 'puppet/indirector/file_content'
+
+describe "Puppet::Indirector::Content::Rest" do
+ it "should add the node's cert name to the arguments"
+end