diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-07-20 20:56:23 +0200 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-07-21 08:05:57 +1000 |
| commit | c65974376700f54548a9412e04889ad54be84ff9 (patch) | |
| tree | d5b649ef74ba9b23b908acf5fc3e7744a976cde3 /spec/unit/indirector/certificate | |
| parent | 17205bb4e5d246f7a47b995826927a38b83fb3d0 (diff) | |
| download | puppet-c65974376700f54548a9412e04889ad54be84ff9.tar.gz puppet-c65974376700f54548a9412e04889ad54be84ff9.tar.xz puppet-c65974376700f54548a9412e04889ad54be84ff9.zip | |
Fix #2425 - make sure client can contact CA server with REST
The various REST SSL terminii were never setup to use the
ca_server/ca_port if one is setup.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/indirector/certificate')
| -rwxr-xr-x | spec/unit/indirector/certificate/rest.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/indirector/certificate/rest.rb b/spec/unit/indirector/certificate/rest.rb index 62b1ef543..d5959c489 100755 --- a/spec/unit/indirector/certificate/rest.rb +++ b/spec/unit/indirector/certificate/rest.rb @@ -12,4 +12,12 @@ describe Puppet::SSL::Certificate::Rest do it "should be a sublcass of Puppet::Indirector::REST" do Puppet::SSL::Certificate::Rest.superclass.should equal(Puppet::Indirector::REST) end + + it "should set server_setting to :ca_server" do + Puppet::SSL::Certificate::Rest.server_setting.should == :ca_server + end + + it "should set port_setting to :ca_port" do + Puppet::SSL::Certificate::Rest.port_setting.should == :ca_port + end end |
