diff options
| author | Rick Bradley <rick@rickbradley.com> | 2008-04-02 20:45:51 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-11 13:11:29 -0500 |
| commit | a0804ae29a4d2be7b3f15015f87f5b274e95c7bd (patch) | |
| tree | e6f7fa14bca828487db6a0b707361eb0c1a8bce6 /spec | |
| parent | aed13754459e11bcc04a0b14228f5f53b4cd4c4c (diff) | |
| download | puppet-a0804ae29a4d2be7b3f15015f87f5b274e95c7bd.tar.gz puppet-a0804ae29a4d2be7b3f15015f87f5b274e95c7bd.tar.xz puppet-a0804ae29a4d2be7b3f15015f87f5b274e95c7bd.zip | |
adding rest_connection_details helper to Indirector::REST -- will need to be overridden to lookup the real connection details
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/indirector/rest.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/indirector/rest.rb b/spec/unit/indirector/rest.rb index 38ab0d634..dabb928cf 100755 --- a/spec/unit/indirector/rest.rb +++ b/spec/unit/indirector/rest.rb @@ -20,6 +20,18 @@ describe Puppet::Indirector::REST do @searcher = @rest_class.new end + describe "when locating the rest connection" do + it 'should look somewhere meaningful for connection details' + + it "should return a host" do + @searcher.rest_connection_details[:host].should == '127.0.0.1' + end + + it "should return a port" do + @searcher.rest_connection_details[:port].should == 34343 + end + end + describe "when doing a network fetch" do it "should escape the provided path" it "should look up the appropriate remote server" |
