fix(GOV-009): 完成仅源码部署最终复审
This commit is contained in:
@@ -169,6 +169,16 @@ test('部署文档要求本机外部 Redis 和唯一 Ubuntu 源码生产路径',
|
||||
assert.match(source, /pnpm verify:release/);
|
||||
assert.match(source, /\/opt\/a-share-analysis\/releases\//);
|
||||
assert.match(source, /\/opt\/a-share-analysis\/current/);
|
||||
for (const processName of ['api', 'scheduler', 'worker']) {
|
||||
assert.match(
|
||||
source,
|
||||
new RegExp(
|
||||
`install -m 0644 deploy/systemd/a-share-${processName}\\.service\\.example /etc/systemd/system/a-share-${processName}\\.service`,
|
||||
),
|
||||
);
|
||||
assert.match(source, new RegExp(`systemctl restart a-share-${processName}\\.service`));
|
||||
}
|
||||
assert.doesNotMatch(source, /systemctl (?:restart|status) a-share-\w+\.service\.example/);
|
||||
assert.match(source, /不负责安装/);
|
||||
for (const document of [local, source]) {
|
||||
assert.match(document, /MySQL 5\.7\.42/);
|
||||
|
||||
Reference in New Issue
Block a user