add design test

This commit is contained in:
liyang
2022-04-07 14:33:10 +08:00
parent 0b8768c1d6
commit a03d2d52d2
20 changed files with 612 additions and 4 deletions
+35
View File
@@ -0,0 +1,35 @@
title: table zt_designspec
desc: ""
author: automated export
version: "1.0"
fields:
- field: design
note: ""
range: 1-120
prefix: ""
postfix: ""
format: ""
- field: version
note: ""
range: 1
prefix: ""
postfix: ""
format: ""
- field: name
note: ""
range: 1-10000
prefix: "这是一个设计"
postfix: ""
format: ""
- field: desc
note: ""
range: 1-10000
prefix: "这是设计描述"
postfix: ""
format: ""
- field: files
note: ""
range: ""
prefix: ""
postfix: ""
format: ""
+4 -3
View File
@@ -80,9 +80,10 @@ $builder->doclib = array('rows' => 900, 'extends' => array('doclib'));
$builder->doc = array('rows' => 900, 'extends' => array('doc'));
$builder->doccontent = array('rows' => 900, 'extends' => array('doccontent'));
$builder->build = array('rows' => 20, 'extends' => array('build'));
$builder->release = array('rows' => 10, 'extends' => array('release'));
$builder->design = array('rows' => 120, 'extends' => array('design'));
$builder->build = array('rows' => 20, 'extends' => array('build'));
$builder->release = array('rows' => 10, 'extends' => array('release'));
$builder->design = array('rows' => 120, 'extends' => array('design'));
$builder->designspec = array('rows' => 120, 'extends' => array('designspec'));
$builder->webhook = array('rows' => 7, 'extends' => array('webhook'));
$builder->entry = array('rows' => 1, 'extends' => array('entry'));
+2 -1
View File
@@ -32,6 +32,7 @@ class Processor
{
$this->dao->begin();
$this->initBassicSql();
$this->initDept();
$this->initUser();
$this->initProgram();
@@ -50,7 +51,6 @@ class Processor
$this->initBug();
$this->initTest();
$this->initTodo();
$this->initBassicSql();
$this->dao->commit();
}
@@ -296,6 +296,7 @@ class Processor
{
global $app;
$sqlRoot = $app->getAppRoot();
$this->dao->exec(file_get_contents($sqlRoot . '/data/zt_config.sql'));
$this->dao->exec(file_get_contents($sqlRoot . '/data/zt_lang.sql'));
$this->dao->exec(file_get_contents($sqlRoot . '/data/zt_cron.sql'));
}
+36
View File
@@ -0,0 +1,36 @@
truncate `zt_config`;
INSERT INTO `zt_config` (`id`, `vision`, `owner`, `module`, `section`, `key`, `value`) VALUES
(1, 'rnd', 'system', 'custom', '', 'hourPoint', '0'),
(2, 'rnd', 'system', 'common', '', 'CRProduct', '1'),
(3, 'rnd', 'system', 'common', '', 'CRExecution', '1'),
(4, 'rnd', 'system', 'custom', '', 'URSR', '2'),
(9, 'rnd', 'system', 'common', 'global', 'mode', 'new'),
(6, 'rnd', 'system', 'project', '', 'unitList', 'CNY,USD'),
(7, 'rnd', 'system', 'project', '', 'defaultCurrency', 'CNY'),
(8, 'rnd', 'system', 'story', '', 'reviewRules', 'allpass'),
(10, 'rnd', 'system', 'common', 'global', 'version', '16.5.beta1'),
(11, 'rnd', 'system', 'common', 'global', 'sn', 'c8aa3269e181f2b9258ce96625de1497'),
(12, 'rnd', 'system', 'common', 'global', 'flow', 'full'),
(13, 'rnd', 'system', 'common', 'safe', 'mode', '1'),
(14, 'rnd', 'system', 'common', 'safe', 'changeWeak', '1'),
(15, 'rnd', 'system', 'common', 'global', 'cron', '1'),
(16, 'rnd', 'system', 'common', 'xuanxuan', 'turnon', '1'),
(17, 'rnd', 'system', 'common', 'xuanxuan', 'key', 'd3229cab1d072d31c505a027dbd3cd6e'),
(18, 'rnd', 'system', 'common', 'xuanxuan', 'chatPort', '11444'),
(19, 'rnd', 'system', 'common', 'xuanxuan', 'commonPort', '11443'),
(20, 'rnd', 'system', 'common', 'xuanxuan', 'ip', '0.0.0.0'),
(21, 'rnd', 'system', 'common', 'xuanxuan', 'uploadFileSize', '20'),
(22, 'rnd', 'system', 'common', 'xuanxuan', 'https', 'off'),
(23, 'rnd', 'system', 'cron', 'run', 'status', 'running'),
(24, 'rnd', 'system', 'common', 'global', 'latestVersionList', '[]'),
(25, 'rnd', 'admin', 'common', '', 'URSR', '2'),
(26, 'rnd', 'admin', 'common', '', 'programLink', 'program-browse'),
(27, 'rnd', 'admin', 'common', '', 'productLink', 'product-all'),
(28, 'rnd', 'admin', 'common', '', 'projectLink', 'project-browse'),
(29, 'rnd', 'admin', 'common', '', 'executionLink', 'execution-task'),
(30, 'rnd', 'admin', 'common', '', 'preferenceSetted', '1'),
(31, 'rnd', 'admin', 'my', 'common', 'blockInited', '1'),
(32, 'rnd', 'admin', 'my', 'block', 'initVersion', '2'),
(33, 'rnd', 'system', 'common', 'global', 'skipIntroduction', ',admin'),
(34, 'rnd', 'system', 'common', 'global', 'skipTutorial', ',admin'),
(35, 'rnd', 'system', 'common', 'global', 'skipYoungBlueTheme', ',admin');