[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.5-303-gfcfa26a

Max Martin max at puppetlabs.com
Thu Mar 17 10:47:30 UTC 2011


The following commit has been merged in the upstream branch:
commit bb31c3d82f58ed192efa1bd8b85958ffa50d1d73
Author: Max Martin <max at puppetlabs.com>
Date:   Mon Feb 21 16:40:10 2011 -0800

    (#6376) Add test case for facts find request
    
    Added test case to ensure indirection name is not changed from "facts"
    when making an HTTP GET request.
    
    Reviewed-by:Paul Berry <paul at puppetlabs.com>

diff --git a/spec/unit/network/http/api/v1_spec.rb b/spec/unit/network/http/api/v1_spec.rb
index e734831..9a8780c 100644
--- a/spec/unit/network/http/api/v1_spec.rb
+++ b/spec/unit/network/http/api/v1_spec.rb
@@ -96,7 +96,11 @@ describe Puppet::Network::HTTP::API::V1 do
       @tester.uri2indirection("GET", "/env/facts_search/bar", {}).indirection_name.should == :facts
     end
 
-    it "should change indirection name to 'status' if the http method is a GEt and the indirection name is statuses" do
+    it "should not change indirection name from 'facts' if the http method is a GET and the indirection name is facts" do
+      @tester.uri2indirection("GET", "/env/facts/bar", {}).indirection_name.should == :facts
+    end
+
+    it "should change indirection name to 'status' if the http method is a GET and the indirection name is statuses" do
       @tester.uri2indirection("GET", "/env/statuses/bar", {}).indirection_name.should == :status
     end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list