refactor: cambiadas fixtures, backTest y traducciones
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2022-11-23 10:56:55 +01:00
parent 6a2af344aa
commit f313a53cde
5 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
CREATE TABLE `vn`.`mdbApp` ( CREATE TABLE `vn`.`mdbApp` (
`app` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `app` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
`baselineBranchFk` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `baselineBranchFk` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
`userFk` int(10) unsigned DEFAULT NULL, `userFk` int(10) unsigned DEFAULT NULL,
`locked` datetime DEFAULT NULL, `locked` datetime DEFAULT NULL,
UNIQUE KEY `app_UN` (`app`), PRIMARY KEY (`app`),
KEY `mdbApp_FK` (`userFk`), KEY `mdbApp_FK` (`userFk`),
KEY `mdbApp_FK_1` (`baselineBranchFk`), KEY `mdbApp_FK_1` (`baselineBranchFk`),
CONSTRAINT `mdbApp_FK` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `mdbApp_FK` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT `mdbApp_FK_1` FOREIGN KEY (`baselineBranchFk`) REFERENCES `mdbBranch` (`name`) ON UPDATE CASCADE CONSTRAINT `mdbApp_FK_1` FOREIGN KEY (`baselineBranchFk`) REFERENCES `mdbBranch` (`name`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci

View File

@ -2734,5 +2734,5 @@ INSERT INTO `vn`.`osTicketConfig` (`id`, `host`, `user`, `password`, `oldStatus`
INSERT INTO `vn`.`mdbApp` (`app`, `baselineBranchFk`, `userFk`, `locked`) INSERT INTO `vn`.`mdbApp` (`app`, `baselineBranchFk`, `userFk`, `locked`)
VALUES VALUES
('com', 'master', NULL, NULL), ('foo', 'master', NULL, NULL),
('ent', 'test', 9, util.VN_NOW()); ('bar', 'test', 9, util.VN_NOW());

View File

@ -245,5 +245,5 @@
"Already has this status": "Ya tiene este estado", "Already has this status": "Ya tiene este estado",
"There aren't records for this week": "No existen registros para esta semana", "There aren't records for this week": "No existen registros para esta semana",
"Empty data source": "Origen de datos vacio", "Empty data source": "Origen de datos vacio",
"App locked": "Aplicación bloquada por el usuario {{userId}}" "App locked": "Aplicación bloqueada por el usuario {{userId}}"
} }

View File

@ -7,7 +7,7 @@ describe('MdbApp lock()', () => {
try { try {
const options = {transaction: tx}; const options = {transaction: tx};
const appName = 'ent'; const appName = 'bar';
const developerId = 9; const developerId = 9;
const ctx = { const ctx = {
req: { req: {
@ -35,7 +35,7 @@ describe('MdbApp lock()', () => {
try { try {
const options = {transaction: tx}; const options = {transaction: tx};
const appName = 'com'; const appName = 'foo';
const developerId = 9; const developerId = 9;
const ctx = {req: {accessToken: {userId: developerId}}}; const ctx = {req: {accessToken: {userId: developerId}}};

View File

@ -6,7 +6,7 @@ describe('MdbApp unlock()', () => {
try { try {
const options = {transaction: tx}; const options = {transaction: tx};
const appName = 'com'; const appName = 'bar';
const developerId = 9; const developerId = 9;
const ctx = {req: {accessToken: {userId: developerId}}}; const ctx = {req: {accessToken: {userId: developerId}}};