#5926 - Worker/PDA docuware #2482
|
@ -111,18 +111,6 @@ describe('Docuware core', () => {
|
|||
describe('uploadOptions()', () => {
|
||||
it('should return uploadOptions', async() => {
|
||||
spyOn(Docuware, 'getDialog').and.returnValue((new Promise(resolve => resolve(Math.random()))));
|
||||
|
||||
// const dialogs = {
|
||||
// data: {
|
||||
// Dialog: [
|
||||
// {
|
||||
// DisplayName: 'find',
|
||||
// Id: 'getDialogTest'
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// };
|
||||
// spyOn(axios, 'get').and.returnValue(new Promise(resolve => resolve(dialogs)));
|
||||
const {uploadOptions: result} = await Docuware.uploadOptions(1, {
|
||||
'N__DOCUMENTO': {
|
||||
jsegarra marked this conversation as resolved
|
||||
type: 'string',
|
||||
|
|
|
@ -315,6 +315,4 @@ INSERT INTO mysql.roles_mapping (`User`, `Host`, `Role`, `Admin_option`)
|
|||
FROM mysql.roles_mapping
|
||||
WHERE `User` LIKE @prefixedLike AND `Host` = @genRoleHost;
|
||||
|
||||
INSERT INTO vn.docuware (code,fileCabinetName,`action`,dialogName,findById,dmsTypeFk,modelFk)
|
||||
VALUES ('hr','RRHH','store','Archivar','N__DOCUMENTO',3,'worker');
|
||||
FLUSH PRIVILEGES;
|
||||
alexm
commented
En el after? En el after?
Yo diria que tiene que ir en un version
jsegarra
commented
Si lo muevo de aquí a 00-firstScript, al hacer myt run me da error: Error: Cannot add or update a child row: a foreign key constraint fails ( Si lo muevo de aquí a 00-firstScript, al hacer myt run me da error:
Error: Cannot add or update a child row: a foreign key constraint fails (`vn`.`docuware`, CONSTRAINT `docuware_FK` FOREIGN KEY (`dmsTypeFk`) REFERENCES `dmsType` (`id`) ON UPDATE CASCADE)
jsegarra
commented
Tiene que ir en fixtures.after y en version porque sino en local falla Tiene que ir en fixtures.after y en version porque sino en local falla
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
-- Place your SQL code here
|
||||
ALTER TABLE vn.docuware ADD modelFk VARCHAR(45) DEFAULT NULL NULL;
|
||||
ALTER TABLE vn.docuware ADD CONSTRAINT docuware_module_FK FOREIGN KEY (modelFk) REFERENCES salix.module(code);
|
||||
|
||||
ALTER TABLE vn.docuwareTablet ADD fileCabinet varchar(100) NULL;
|
||||
-- Auto-generated SQL script #202405221107
|
||||
|
||||
INSERT IGNORE INTO vn.docuware (code,fileCabinetName,`action`,dialogName,findById,dmsTypeFk,modelFk)
|
||||
jsegarra marked this conversation as resolved
Outdated
alexm
commented
Quitar Quitar
|
||||
VALUES ('hr','RRHH','store','Archivar','N__DOCUMENTO',3,'worker');
|
||||
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
VALUES ('Worker','signPdaPdf','READ','ALLOW','ROLE','hr');
|
||||
|
||||
-- Auto-generated SQL script #202406061008
|
||||
INSERT INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
||||
jsegarra marked this conversation as resolved
alexm
commented
quitar quitar
|
||||
VALUES ('Docuware','upload','WRITE','ALLOW','ROLE','hr');
|
||||
|
|
13
e2e/tests.js
13
e2e/tests.js
|
@ -36,7 +36,20 @@ async function test() {
|
|||
const jasmine = new Jasmine();
|
||||
|
||||
const specFiles = [
|
||||
`./e2e/paths/01*/*[sS]pec.js`,
|
||||
`./e2e/paths/02*/*[sS]pec.js`,
|
||||
`./e2e/paths/03*/*[sS]pec.js`,
|
||||
`./e2e/paths/04*/*[sS]pec.js`,
|
||||
`./e2e/paths/05*/*[sS]pec.js`,
|
||||
jsegarra marked this conversation as resolved
Outdated
alexm
commented
Dejar Dejar
|
||||
`./e2e/paths/06*/*[sS]pec.js`,
|
||||
`./e2e/paths/07*/*[sS]pec.js`,
|
||||
`./e2e/paths/08*/*[sS]pec.js`,
|
||||
`./e2e/paths/09*/*[sS]pec.js`,
|
||||
`./e2e/paths/10*/*[sS]pec.js`,
|
||||
`./e2e/paths/11*/*[sS]pec.js`,
|
||||
`./e2e/paths/12*/*[sS]pec.js`,
|
||||
`./e2e/paths/13*/*[sS]pec.js`,
|
||||
`./e2e/paths/**/*[sS]pec.js`
|
||||
];
|
||||
|
||||
jasmine.loadConfig({
|
||||
|
|
Loading…
Reference in New Issue
Quitar?