diff options
author | Azul <azul@riseup.net> | 2014-07-15 13:11:54 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-07-15 13:11:54 +0200 |
commit | ed292e8ef362e1c5a638480eda02b2ddfde936a7 (patch) | |
tree | c885c80218db6c2e43c88e2a7ae24975157c5382 | |
parent | e97d0195fff2286d35c18866167b74cc37d58130 (diff) |
adopt webapp test to new hiera couch clients format
-rw-r--r-- | tests/white-box/webapp.rb | 15 |
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 |