Fix typo in config options

Some drivers:transport:websocket options had dashes instead of
underscore which caused zaqar to ignore them.

Change-Id: I0a0d0ddf5704415745868d39d763df0e43a21a61
Co-Authored-By: Thomas Hervé <therve@redhat.com>
Related-Bug: #1727406
Closes-Bug: #1730179
This commit is contained in:
Martin André 2017-11-06 09:56:47 +01:00
parent 5ff5693300
commit f68f5e9217
2 changed files with 6 additions and 6 deletions

View File

@ -33,9 +33,9 @@ class zaqar::transport::websocket(
zaqar_config {
'drivers:transport:websocket/bind': value => $bind;
'drivers:transport:websocket/port': value => $port;
'drivers:transport:websocket/external-port': value => $external_port;
'drivers:transport:websocket/notification-bind': value => $notification_bind;
'drivers:transport:websocket/notification-port': value => $notification_port;
'drivers:transport:websocket/external_port': value => $external_port;
'drivers:transport:websocket/notification_bind': value => $notification_bind;
'drivers:transport:websocket/notification_port': value => $notification_port;
}
}

View File

@ -17,9 +17,9 @@ describe 'zaqar::transport::websocket' do
it 'configures custom values' do
is_expected.to contain_zaqar_config('drivers:transport:websocket/bind').with_value('1')
is_expected.to contain_zaqar_config('drivers:transport:websocket/port').with_value('2')
is_expected.to contain_zaqar_config('drivers:transport:websocket/external-port').with_value('3')
is_expected.to contain_zaqar_config('drivers:transport:websocket/notification-bind').with_value('4')
is_expected.to contain_zaqar_config('drivers:transport:websocket/notification-port').with_value('5')
is_expected.to contain_zaqar_config('drivers:transport:websocket/external_port').with_value('3')
is_expected.to contain_zaqar_config('drivers:transport:websocket/notification_bind').with_value('4')
is_expected.to contain_zaqar_config('drivers:transport:websocket/notification_port').with_value('5')
end
end
end