release: dsh-infstarapi 0.2.0
CI / test (push) Canceled after 0s

This commit is contained in:
Coldsmile_7 committed 2026-11-26 08:24:56 +08:00
1 parent a8f689e39c
commit c340aec110
59 files changed
+1108 -1590

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ async function file(t, record, extra = {}) {
const dir = await mkdtemp(join(tmpdir(), 'geek2api-live-key-'))
t.after(() => rm(dir, { recursive: true, force: true }))
const path = join(dir, 'credentials.yaml')
await writeFile(path, stringify({ version: 2, records: { 'geek2api/keys': record }, ...extra }), { mode: 0o600 })
await writeFile(path, stringify({ version: 2, records: { 'infstarapi/keys': record }, ...extra }), { mode: 0o600 })
return path
}
@@ -49,7 +49,7 @@ test('a YAML parse error never returns its secret-bearing source line', async t
const filePath = await file(t, grant(KEYS))
await writeFile(filePath, 'secret: "sk-fixture-private-unclosed\n')
await assert.rejects(() => readStoredKey({ filePath }), error => {
assert.equal(error.message, 'Geek2API plugin credentials could not be read safely')
assert.equal(error.message, 'InfStarAPI plugin credentials could not be read safely')
assert.equal(String(error).includes('sk-fixture'), false)
return true
})