summaryrefslogtreecommitdiff
path: root/tests/white-box
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2014-07-15 13:11:54 +0200
committerAzul <azul@riseup.net>2014-07-15 13:11:54 +0200
commited292e8ef362e1c5a638480eda02b2ddfde936a7 (patch)
treec885c80218db6c2e43c88e2a7ae24975157c5382 /tests/white-box
parente97d0195fff2286d35c18866167b74cc37d58130 (diff)
adopt webapp test to new hiera couch clients format
Diffstat (limited to 'tests/white-box')
-rw-r--r--tests/white-box/webapp.rb15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/white-box/webapp.rb b/tests/white-box/webapp.rb
index 05b86a41..7df57fd7 100644
--- a/tests/white-box/webapp.rb
+++ b/tests/white-box/webapp.rb
@@ -14,15 +14,16 @@ class Webapp < LeapTest
# example properties:
#
# stunnel:
- # couch_client:
- # couch1_5984:
- # accept_port: 4000
- # connect: couch1.bitmask.i
- # connect_port: 15984
+ # clients:
+ # couch_client:
+ # couch1_5984:
+ # accept_port: 4000
+ # connect: couch1.bitmask.i
+ # connect_port: 15984
#
def test_01_Can_contact_couchdb?
- assert_property('stunnel.couch_client')
- $node['stunnel']['couch_client'].values.each do |stunnel_conf|
+ assert_property('stunnel.clients.couch_client')
+ $node['stunnel']['clients']['couch_client'].values.each do |stunnel_conf|
assert port = stunnel_conf['accept_port'], 'Field `accept_port` must be present in `stunnel` property.'
local_stunnel_url = "http://localhost:#{port}"
remote_ip_address = TCPSocket.gethostbyname(stunnel_conf['connect']).last