mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 16:26:00 +00:00
SYNC: try to fix e2e test
This commit is contained in:
committed by
Diflow
parent
43ffbda1a4
commit
4bd9cc51ee
@@ -4,7 +4,6 @@ const { getSshTunnelProxy } = require('./sshTunnelProxy');
|
|||||||
const platformInfo = require('../utility/platformInfo');
|
const platformInfo = require('../utility/platformInfo');
|
||||||
const connections = require('../controllers/connections');
|
const connections = require('../controllers/connections');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const { getCloudFolderEncryptor } = require('./cloudIntf');
|
|
||||||
|
|
||||||
async function loadConnection(driver, storedConnection, connectionMode) {
|
async function loadConnection(driver, storedConnection, connectionMode) {
|
||||||
const { allowShellConnection, allowConnectionFromEnvVariables } = platformInfo;
|
const { allowShellConnection, allowConnectionFromEnvVariables } = platformInfo;
|
||||||
@@ -90,6 +89,8 @@ async function extractConnectionSslParams(connection) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function decryptCloudConnection(connection) {
|
async function decryptCloudConnection(connection) {
|
||||||
|
const { getCloudFolderEncryptor } = require('./cloudIntf');
|
||||||
|
|
||||||
const m = connection?._id?.match(/^cloud\:\/\/(.+)\/(.+)$/);
|
const m = connection?._id?.match(/^cloud\:\/\/(.+)\/(.+)$/);
|
||||||
if (!m) {
|
if (!m) {
|
||||||
throw new Error('Invalid cloud connection ID format');
|
throw new Error('Invalid cloud connection ID format');
|
||||||
|
|||||||
Reference in New Issue
Block a user