summaryrefslogtreecommitdiffstats
path: root/spec/integration/indirector
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-09-18 12:48:12 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-11-20 07:27:20 +1100
commit089ac3e37dd1418751bc4dfe152e09fbacbc5122 (patch)
tree857232720ead186d188cf94c126baf846d509692 /spec/integration/indirector
parent28e1bc6e7b866727adfd16cba5418e08f1dd2fd8 (diff)
downloadpuppet-089ac3e37dd1418751bc4dfe152e09fbacbc5122.tar.gz
puppet-089ac3e37dd1418751bc4dfe152e09fbacbc5122.tar.xz
puppet-089ac3e37dd1418751bc4dfe152e09fbacbc5122.zip
Fixing #2617 - using the searched-for REST name
This allows a separation between the wrapper class and its internals, which is (at least) necessary for the CA cert, which might not be found using the internal name. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/integration/indirector')
-rwxr-xr-xspec/integration/indirector/certificate/rest.rb2
-rwxr-xr-xspec/integration/indirector/rest.rb1
2 files changed, 1 insertions, 2 deletions
diff --git a/spec/integration/indirector/certificate/rest.rb b/spec/integration/indirector/certificate/rest.rb
index 71ef4436e..9131ac0c7 100755
--- a/spec/integration/indirector/certificate/rest.rb
+++ b/spec/integration/indirector/certificate/rest.rb
@@ -64,8 +64,6 @@ describe "Certificate REST Terminus" do
# There's no good '==' method on certs.
result.content.to_s.should == @host.certificate.content.to_s
-
- # also make sure it uses the provided name, rather than the internal one.
result.name.should == "bar"
end
end
diff --git a/spec/integration/indirector/rest.rb b/spec/integration/indirector/rest.rb
index 077a74f1c..287387ee1 100755
--- a/spec/integration/indirector/rest.rb
+++ b/spec/integration/indirector/rest.rb
@@ -11,6 +11,7 @@ class Puppet::TestIndirectedFoo
indirects :test_indirected_foo, :terminus_setting => :test_indirected_foo_terminus
attr_reader :value
+ attr_accessor :name
def initialize(value = 0)
@value = value