2016-09-08 21:19:09 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use lockapi;
|
2017-01-18 07:15:44 +00:00
|
|
|
use tapnet;
|
|
|
|
use utils;
|
2016-09-08 21:19:09 +00:00
|
|
|
|
|
|
|
sub run {
|
2023-02-12 22:59:37 +00:00
|
|
|
my $self = shift;
|
2016-09-08 21:19:09 +00:00
|
|
|
# use compose repo, disable u-t, etc.
|
2017-01-18 07:15:44 +00:00
|
|
|
repo_setup();
|
2016-09-08 21:19:09 +00:00
|
|
|
# install postgresql
|
2017-11-24 00:01:58 +00:00
|
|
|
assert_script_run "dnf -y install postgresql", 160;
|
2016-09-08 21:19:09 +00:00
|
|
|
# wait for the server to be ready
|
|
|
|
mutex_lock "db_ready";
|
|
|
|
mutex_unlock "db_ready";
|
|
|
|
# check we can connect to the database and create a table
|
2020-07-17 20:42:48 +00:00
|
|
|
assert_script_run "PGPASSWORD=correcthorse psql openqa -h 172.16.2.104 -U openqa -c 'CREATE TABLE test2 (testcol int);'";
|
2016-09-08 21:19:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2023-02-12 22:59:37 +00:00
|
|
|
return {fatal => 1};
|
2016-09-08 21:19:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|