File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8484
8585 it { is_expected . to compile . with_all_deps }
8686 it { is_expected . to contain_exec ( 'update_pgpass' ) . with_command ( 'echo node01.example.com:5432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass' ) }
87- it { is_expected . to contain_exec ( 'zabbix_server_create.sql' ) . with_command ( "cd #{ path } && if [ -f #{ sql_server } .gz ]; then gunzip -f #{ sql_server } .gz ; fi && psql -h 'node01.example.com' -U 'zabbix-server' -d 'zabbix-server' -f #{ sql_server } && touch /etc/zabbix/.schema.done" ) }
87+ it { is_expected . to contain_exec ( 'zabbix_server_create.sql' ) . with_command ( "cd #{ path } && if [ -f #{ sql_server } .gz ]; then gunzip -f #{ sql_server } .gz ; fi && psql -h 'node01.example.com' -U 'zabbix-server' -p 5432 - d 'zabbix-server' -f #{ sql_server } && touch /etc/zabbix/.schema.done" ) }
8888 it { is_expected . to contain_exec ( 'zabbix_server_images.sql' ) . with_command ( 'touch /etc/zabbix/.images.done' ) }
8989 it { is_expected . to contain_exec ( 'zabbix_server_data.sql' ) . with_command ( 'touch /etc/zabbix/.data.done' ) }
9090 it { is_expected . to contain_file ( '/root/.pgpass' ) }
153153 it { is_expected . to contain_exec ( 'update_pgpass' ) . with_command ( 'echo node01.example.com:5432:zabbix-proxy:zabbix-proxy:zabbix-proxy >> /root/.pgpass' ) }
154154
155155 if Puppet ::Util ::Package . versioncmp ( zabbix_version , '6.0' ) < 0
156- it { is_expected . to contain_exec ( 'zabbix_proxy_create.sql' ) . with_command ( "cd #{ path } && if [ -f schema.sql.gz ]; then gunzip -f schema.sql.gz ; fi && psql -h 'node01.example.com' -U 'zabbix-proxy' -d 'zabbix-proxy' -f schema.sql && touch /etc/zabbix/.schema.done" ) }
156+ it { is_expected . to contain_exec ( 'zabbix_proxy_create.sql' ) . with_command ( "cd #{ path } && if [ -f schema.sql.gz ]; then gunzip -f schema.sql.gz ; fi && psql -h 'node01.example.com' -U 'zabbix-proxy' -p 5432 - d 'zabbix-proxy' -f schema.sql && touch /etc/zabbix/.schema.done" ) }
157157 else
158- it { is_expected . to contain_exec ( 'zabbix_proxy_create.sql' ) . with_command ( "cd #{ path } && psql -h 'node01.example.com' -U 'zabbix-proxy' -d 'zabbix-proxy' -f proxy.sql && touch /etc/zabbix/.schema.done" ) }
158+ it { is_expected . to contain_exec ( 'zabbix_proxy_create.sql' ) . with_command ( "cd #{ path } && psql -h 'node01.example.com' -U 'zabbix-proxy' -p 5432 - d 'zabbix-proxy' -f proxy.sql && touch /etc/zabbix/.schema.done" ) }
159159 end
160160
161161 it { is_expected . to contain_class ( 'zabbix::params' ) }
You can’t perform that action at this time.
0 commit comments