Merge "Stop hard-coding config file for db sync"

This commit is contained in:
Zuul 2024-03-08 14:35:51 +00:00 committed by Gerrit Code Review
commit ffdd2fba06
4 changed files with 6 additions and 6 deletions

View File

@ -6,10 +6,10 @@
# [*extra_params*]
# (Optional) String of extra command line parameters to append
# to the watcher-db-manage create_schema command.
# Defaults to '--config-file /etc/watcher/watcher.conf'
# Defaults to ''
#
class watcher::db::create_schema(
$extra_params = '--config-file /etc/watcher/watcher.conf',
$extra_params = '',
) {
include watcher::deps

View File

@ -7,10 +7,10 @@
# [*extra_params*]
# (Optional) String of extra command line parameters to append
# to the watcher-db-manage upgrade command.
# Defaults to '--config-file /etc/watcher/watcher.conf'
# Defaults to ''
#
class watcher::db::upgrade(
$extra_params = '--config-file /etc/watcher/watcher.conf',
$extra_params = '',
) {
include watcher::deps

View File

@ -6,7 +6,7 @@ describe 'watcher::db::create_schema' do
it 'runs watcher-db-manage' do
is_expected.to contain_exec('watcher-db-manage-create_schema').with(
:command => 'watcher-db-manage --config-file /etc/watcher/watcher.conf create_schema',
:command => 'watcher-db-manage create_schema',
:path => '/usr/bin',
:user => 'watcher',
:refreshonly => 'true',

View File

@ -6,7 +6,7 @@ describe 'watcher::db::upgrade' do
it 'runs watcher-db-manage' do
is_expected.to contain_exec('watcher-db-manage-upgrade').with(
:command => 'watcher-db-manage --config-file /etc/watcher/watcher.conf upgrade',
:command => 'watcher-db-manage upgrade',
:path => '/usr/bin',
:user => 'watcher',
:refreshonly => 'true',