...
 
Commits (3)
......@@ -4,7 +4,7 @@
"author": "Cloudron developers",
"description": "used for unit and e2e tests",
"tagline": "test or be sorry",
"version": "26.3.1",
"version": "26.4.1",
"website": "https://www.cloudron.io",
"contactEmail": "girish@cloudron.io",
"manifestVersion": 2,
......
......@@ -46,7 +46,16 @@ function populateMySql(callback) {
}
function populatePostgresql(callback) {
pg.connect(process.env.CLOUDRON_POSTGRESQL_URL, function (error, client) {
const pool = new pg.Pool({
user: process.env.CLOUDRON_POSTGRESQL_USERNAME,
password: process.env.CLOUDRON_POSTGRESQL_PASSWORD,
host: process.env.CLOUDRON_POSTGRESQL_HOST,
port: process.env.CLOUDRON_POSTGRESQL_PORT,
database: process.env.CLOUDRON_POSTGRESQL_DATABASE,
ssl: false
};
pool.connect(function (error, client) {
if (error) return callback(error);
async.series([
......@@ -136,7 +145,16 @@ function checkMySql(callback) {
function checkPostgresql(callback) {
console.log('Checking postgresql');
pg.connect(process.env.CLOUDRON_POSTGRESQL_URL, function (error, client) {
const pool = new pg.Pool({
user: process.env.CLOUDRON_POSTGRESQL_USERNAME,
password: process.env.CLOUDRON_POSTGRESQL_PASSWORD,
host: process.env.CLOUDRON_POSTGRESQL_HOST,
port: process.env.CLOUDRON_POSTGRESQL_PORT,
database: process.env.CLOUDRON_POSTGRESQL_DATABASE,
ssl: false
};
pool.connect(function (error, client) {
if (error) return callback(error);
client.query('SELECT * FROM test WHERE name = $1', [ 'cloudron' ], function (error, result) {
......