INTPAK-185 Binds karaf to ODL IP
[integration/packaging/puppet-opendaylight.git] / spec / spec_helper.rb
index 1b4466142ecbef9d1180d0c200ea4383c8bd749f..beaba7f3f8b17ae12e4d8fc42195d13ca5d26c1e 100644 (file)
@@ -178,6 +178,12 @@ def odl_rest_port_tests(options = {})
         'line'    => "org.ops4j.pax.web.listening.addresses = #{odl_bind_ip}",
         'require' => 'File[org.ops4j.pax.web.cfg]'
       )
+      should contain_file_line('set karaf IP').with(
+        'ensure' => 'present',
+        'path'   => '/opt/opendaylight/etc/org.apache.karaf.shell.cfg',
+        'line'   => "sshHost = #{odl_bind_ip}",
+        'match'  => '^sshHost\s*=.*$',
+      )
     }
   else
     it {