Skip to content

Commit

Permalink
Fix path to reporting db schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennart Betz committed Oct 14, 2024
1 parent e6f81b1 commit ace32b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ icingaweb2::module::director::db_host: localhost
icingaweb2::module::director::db_name: director
icingaweb2::module::director::db_username: director

icingaweb2::globals::mysql_reporting_schema: /schema/mysql.sql
icingaweb2::globals::pgsql_reporting_schema: /schema/postgresql.sql
icingaweb2::globals::mysql_reporting_schema: /schema/mysql.schema.sql
icingaweb2::globals::pgsql_reporting_schema: /schema/pgsql.schema.sql
icingaweb2::module::reporting::ensure: present
icingaweb2::module::reporting::install_method: git
icingaweb2::module::reporting::git_repository: https://github.com/Icinga/icingaweb2-module-reporting.git
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/modules/reporting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

it {
is_expected.to contain_exec('import icingaweb2::module::reporting schema')
.with_command(%r{^mysql.*\< '/usr/share/icingaweb2/modules/reporting/schema/mysql.sql'$})
.with_command(%r{^mysql.*\< '/usr/share/icingaweb2/modules/reporting/schema/mysql.schema.sql'$})
.with_unless(%r{^mysql.* -Ns -e 'SELECT \* FROM report'$})
}

Expand Down Expand Up @@ -204,7 +204,7 @@
it {
is_expected.to contain_exec('import icingaweb2::module::reporting schema')
.with_environment(['PGPASSWORD=foo'])
.with_command(%r{^psql.*-w -f /usr/share/icingaweb2/modules/reporting/schema/postgresql.sql$})
.with_command(%r{^psql.*-w -f /usr/share/icingaweb2/modules/reporting/schema/pgsql.schema.sql$})
.with_unless(%r{^psql.*-w -c 'SELECT \* FROM report'$})
}

Expand Down

0 comments on commit ace32b0

Please sign in to comment.