mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-28 00:36:51 +00:00
test: cypress pg suite corrections to co-exist with mysql/xcdb suite
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -7,6 +7,15 @@ export const defaultDbParams = {
|
||||
databaseName: "sakila",
|
||||
};
|
||||
|
||||
export const defaultPgDbParams = {
|
||||
databaseType: 1, // Postgres
|
||||
hostAddress: "localhost",
|
||||
portNumber: "5432",
|
||||
username: "postgres",
|
||||
password: "password",
|
||||
databaseName: "postgres",
|
||||
};
|
||||
|
||||
// database
|
||||
// validation details
|
||||
// advSettings: left navigation bar (audit, metadata, auth, transient view modes)
|
||||
@@ -103,6 +112,14 @@ export const staticProjects = {
|
||||
basic: { dbType: "external", apiType: "GQL", name: "externalGQL" },
|
||||
config: defaultDbParams,
|
||||
},
|
||||
pgExternalREST: {
|
||||
basic: { dbType: "external", apiType: "REST", name: "pgExternalREST" },
|
||||
config: defaultPgDbParams,
|
||||
},
|
||||
pgExternalGQL: {
|
||||
basic: { dbType: "external", apiType: "GQL", name: "pgExternalGQL" },
|
||||
config: defaultPgDbParams,
|
||||
},
|
||||
};
|
||||
|
||||
// return TRUE if test suite specified is activated from env-variables
|
||||
@@ -128,6 +145,10 @@ export function isXcdb() {
|
||||
return currentTestMode.dbType === "xcdb";
|
||||
}
|
||||
|
||||
export function isPostgres() {
|
||||
return currentTestMode.dbType === "postgres";
|
||||
}
|
||||
|
||||
export function setProjectString(projStr) {
|
||||
xcdbProjectString = projStr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user