Browse Source

test: CY v2 path corrections for PG & XCDB

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3404/head
Raju Udava 2 years ago
parent
commit
43083217ea
  1. 14
      scripts/cypress-v2/integration/test/pg-restMisc.js
  2. 12
      scripts/cypress-v2/integration/test/pg-restRoles.js
  3. 14
      scripts/cypress-v2/integration/test/pg-restTableOps.js
  4. 15
      scripts/cypress-v2/integration/test/pg-restViews.js
  5. 16
      scripts/cypress-v2/integration/test/xcdb-restMisc.js
  6. 9
      scripts/cypress-v2/integration/test/xcdb-restRoles.js
  7. 2
      scripts/cypress-v2/integration/test/xcdb-restTableOps.js
  8. 15
      scripts/cypress-v2/integration/test/xcdb-restViews.js

14
scripts/cypress-v2/integration/test/pg-restMisc.js

@ -12,22 +12,14 @@ const {
} = require("../../support/page_objects/projectConstants");
const t8a = require("../common/8a_webhook");
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
t6b.genTest(apiType, dbType);
// language validation kept common under REST MISC Suite
// t6d.genTest(apiType, dbType);
// ncv2@fixme t6c.genTest(apiType, dbType);
// exclude@ncv2 t6c.genTest(apiType, dbType);
t6f.genTest(apiType, dbType);
t6g.genTest(apiType, dbType);
@ -39,7 +31,7 @@ const nocoTestSuite = (apiType, dbType) => {
// intended to keep this after earlier project deletion
// creates project using excel & deletes it
// ncv2@fixme t7a.genTest(apiType, dbType);
t7a.genTest(apiType, dbType);
};
nocoTestSuite("rest", "postgres");

12
scripts/cypress-v2/integration/test/pg-restRoles.js

@ -6,20 +6,12 @@ const {
setCurrentMode,
} = require("../../support/page_objects/projectConstants");
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
t5a.genTest(apiType, dbType);
t5b.genTest(apiType, dbType);
// t5b.genTest(apiType, dbType);
};
nocoTestSuite("rest", "postgres");

14
scripts/cypress-v2/integration/test/pg-restTableOps.js

@ -16,27 +16,19 @@ const {
setCurrentMode,
} = require("../../support/page_objects/projectConstants");
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
t1a.genTest(apiType, dbType);
t1b.genTest(apiType, dbType);
t1c.genTest(apiType, dbType);
// ncv2@fixme t1d.genTest(apiType, dbType);
// NcGUI v2 t1d.genTest(apiType, dbType);
t1e.genTest(apiType, dbType);
t2a.genTest(apiType, dbType);
t2b.genTest(apiType, dbType);
t3a.genTest(apiType, dbType);
// t3b.genTest(apiType, dbType);
t3b.genTest(apiType, dbType);
t3c.genTest(apiType, dbType);
t3d.genTest(apiType, dbType);
t3e.genTest(apiType, dbType);

15
scripts/cypress-v2/integration/test/pg-restViews.js

@ -10,23 +10,16 @@ const {
setCurrentMode,
} = require("../../support/page_objects/projectConstants");
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
// place plugin related activities at top
t4c.genTest(apiType, dbType);
t4a.genTest(apiType, dbType);
t4b.genTest(apiType, dbType);
t4c.genTest(apiType, dbType);
t4d.genTest(apiType, dbType);
t4e.genTest(apiType, dbType);
// to be fixed t4e.genTest(apiType, dbType);
t4f.genTest(apiType, dbType);
};

16
scripts/cypress-v2/integration/test/xcdb-restMisc.js

@ -13,23 +13,14 @@ const {
setCurrentMode,
} = require("../../support/page_objects/projectConstants");
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
t6b.genTest(apiType, dbType);
// language validation kept common under REST MISC Suite
// t6d.genTest(apiType, dbType);
// ncv2@fixme: swagger disable
// t6c.genTest(apiType, dbType);
// exclude@ncv2 t6c.genTest(apiType, dbType);
t6f.genTest(apiType, dbType);
t6g.genTest(apiType, dbType);
@ -41,8 +32,7 @@ const nocoTestSuite = (apiType, dbType) => {
// intended to keep this after earlier project deletion
// creates project using excel & deletes it
// ncv2@fixme: disable excel import
// t7a.genTest(apiType, dbType);
t7a.genTest(apiType, dbType);
};
nocoTestSuite("rest", "xcdb");

9
scripts/cypress-v2/integration/test/xcdb-restRoles.js

@ -11,15 +11,10 @@ const {
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
t5a.genTest(apiType, dbType);
t5b.genTest(apiType, dbType);
// t5b.genTest(apiType, dbType);
};
nocoTestSuite("rest", "xcdb");

2
scripts/cypress-v2/integration/test/xcdb-restTableOps.js

@ -22,7 +22,7 @@ const nocoTestSuite = (apiType, dbType) => {
t1a.genTest(apiType, dbType);
t1b.genTest(apiType, dbType);
t1c.genTest(apiType, dbType);
// ncv2@fixme t1d.genTest(apiType, dbType);
// NcGUI v2 t1d.genTest(apiType, dbType);
t1e.genTest(apiType, dbType);
t2a.genTest(apiType, dbType);
t2b.genTest(apiType, dbType);

15
scripts/cypress-v2/integration/test/xcdb-restViews.js

@ -10,23 +10,16 @@ const {
setCurrentMode,
} = require("../../support/page_objects/projectConstants");
// use 0 as mode to execute individual files (debug mode, skip pre-configs)
// use 1 mode if noco.db doesnt contain user credentials (full run over GIT)
const executionMode = 1;
const nocoTestSuite = (apiType, dbType) => {
setCurrentMode(apiType, dbType);
if (0 == executionMode) {
t0.genTest(apiType, dbType);
} else {
t01.genTest(apiType, dbType);
}
t01.genTest(apiType, dbType);
// place plugin related activities at top
t4c.genTest(apiType, dbType);
t4a.genTest(apiType, dbType);
t4b.genTest(apiType, dbType);
t4c.genTest(apiType, dbType);
t4d.genTest(apiType, dbType);
t4e.genTest(apiType, dbType);
// to be fixed t4e.genTest(apiType, dbType);
t4f.genTest(apiType, dbType);
};

Loading…
Cancel
Save