1) Added logic to set the appropriate default binary path if DEFAULT_BINARY_PATH is

set in the config and the user not updated the preferences.
2) Remove 'gpdb' from DEFAULT_BINARY_PATH.
3) Fixed API test cases. 

refs #5370
This commit is contained in:
Akshay Joshi
2021-06-07 20:36:34 +05:30
parent 065a3aa2f5
commit 07eb541806
8 changed files with 112 additions and 38 deletions

View File

@@ -56,3 +56,42 @@ KERBEROS = 'kerberos'
SUPPORTED_AUTH_SOURCES = [INTERNAL,
LDAP,
KERBEROS]
BINARY_PATHS = {
"as_bin_paths": [
{"version": "90600", "next_major_version": "100000",
"serverType": gettext("EDB Advanced Server 9.6"), "binaryPath": None,
"isDefault": False},
{"version": "100000", "next_major_version": "110000",
"serverType": gettext("EDB Advanced Server 10"), "binaryPath": None,
"isDefault": False},
{"version": "110000", "next_major_version": "120000",
"serverType": gettext("EDB Advanced Server 11"), "binaryPath": None,
"isDefault": False},
{"version": "120000", "next_major_version": "130000",
"serverType": gettext("EDB Advanced Server 12"), "binaryPath": None,
"isDefault": False},
{"version": "130000", "next_major_version": "140000",
"serverType": gettext("EDB Advanced Server 13"), "binaryPath": None,
"isDefault": False}
],
"pg_bin_paths": [
{"version": "90600", "next_major_version": "100000",
"serverType": gettext("PostgreSQL 9.6"), "binaryPath": None,
"isDefault": False},
{"version": "100000", "next_major_version": "110000",
"serverType": gettext("PostgreSQL 10"), "binaryPath": None,
"isDefault": False},
{"version": "110000", "next_major_version": "120000",
"serverType": gettext("PostgreSQL 11"), "binaryPath": None,
"isDefault": False},
{"version": "120000", "next_major_version": "130000",
"serverType": gettext("PostgreSQL 12"), "binaryPath": None,
"isDefault": False},
{"version": "130000", "next_major_version": "140000",
"serverType": gettext("PostgreSQL 13"), "binaryPath": None,
"isDefault": False}
]
}
UTILITIES_ARRAY = ['pg_dump', 'pg_dumpall', 'pg_restore', 'psql']