优化
This commit is contained in:
@@ -80,7 +80,6 @@ function verify(path, service, table, file) {
|
||||
}
|
||||
|
||||
const domestic = routes(read('gateway/src/main/resources/application.yml'))
|
||||
const overseas = routes(read('gateway-overseas/src/main/resources/application-overseas.yml'))
|
||||
const modules = [...read('pom.xml').matchAll(/<module>([^<]+)<\/module>/g)].map(m => m[1])
|
||||
|
||||
test('local regression and root CI require route checks before Maven/dispatch', () => {
|
||||
@@ -101,8 +100,7 @@ test('Controller prefixes route to their owning service; internal prefixes stay
|
||||
if (!existsSync(resolve(root, app))) continue
|
||||
const service = read(app).match(/application:\s*\r?\n\s+name:\s*([\w-]+)/)?.[1]
|
||||
assert.ok(service, `Missing application name: ${module}`)
|
||||
const tables = ['lastleg-service', 'warehouse-overseas-service'].includes(module)
|
||||
? [overseas] : ['file', 'print'].includes(module) ? [domestic, overseas] : [domestic]
|
||||
const tables = [domestic]
|
||||
for (const file of javaFiles(resolve(root, module, 'src/main/java'))) {
|
||||
for (const path of controllerPaths(readFileSync(file, 'utf8'), file)) {
|
||||
// PDA release metadata lives in the domestic File control plane. Both
|
||||
|
||||
Reference in New Issue
Block a user