mirror of
https://git.openapi.site/https://github.com/desirecore/registry.git
synced 2026-12-06 03:39:05 +08:00
test(registry): permit additional fixed app releases (#45)
Co-authored-by: Corona <corona@CoronadeMac-Mini-2.local>
This commit is contained in:
1 parent
7cac37deff
commit
6a4fea60e0
3 files changed
+5
-20
No files matched your search
@@ -198,25 +198,11 @@ function codes(report) {
|
||||
}
|
||||
|
||||
test('当前 v4.2 条目保持可读,原生应用与既有 App/Service 具备 sidecar', () => {
|
||||
const report = validateRegistry(repoRoot)
|
||||
const report = validateRegistry(repoRoot, { requireSidecars: true })
|
||||
assert.equal(report.ok, true, JSON.stringify(report.errors, null, 2))
|
||||
assert.deepEqual({
|
||||
totalEntries: report.counts.totalEntries,
|
||||
dockerApps: report.counts.dockerApps,
|
||||
nativeApps: report.counts.nativeApps,
|
||||
mcpServices: report.counts.mcpServices,
|
||||
httpApis: report.counts.httpApis,
|
||||
externalIntegrations: report.counts.externalIntegrations,
|
||||
}, {
|
||||
totalEntries: 32,
|
||||
dockerApps: 9,
|
||||
nativeApps: 4,
|
||||
mcpServices: 13,
|
||||
httpApis: 5,
|
||||
externalIntegrations: 1,
|
||||
})
|
||||
assert.equal(report.counts.sidecars + report.counts.legacyOnly, report.counts.totalEntries - report.counts.externalIntegrations)
|
||||
assert.equal(report.warnings.filter((item) => item.code === 'missing-sidecar').length, report.counts.legacyOnly)
|
||||
assert.ok(report.counts.totalEntries > 0)
|
||||
assert.equal(report.counts.legacyOnly, 0)
|
||||
assert.equal(report.counts.sidecars, report.counts.totalEntries - report.counts.externalIntegrations)
|
||||
})
|
||||
|
||||
test('合法 listing-only App sidecar 通过', () => {
|
||||
|
||||
Reference in new issue
Block a user