This commit is contained in:
@@ -104,14 +104,12 @@ test("corrupt configuration is recoverable from the migration backup", async (t)
|
||||
assert.equal(JSON.parse(await readFile(harness.paths.config, "utf8")).version, "0.10.0");
|
||||
});
|
||||
|
||||
test("release verification rejects checksum, signer, timestamp, missing asset and drafts", async (t) => {
|
||||
test("release verification rejects checksum failures, missing assets and drafts without requiring paid signing", async (t) => {
|
||||
const harness = await fixture(t);
|
||||
await harness.publishRelease("1.0.0-ok");
|
||||
assert.equal((await harness.verifyRelease("1.0.0-ok")).verified, true);
|
||||
for (const [version, options, error] of [
|
||||
["1.0.0-checksum", { badChecksum: true }, /checksum/],
|
||||
["1.0.0-signer", { signer: "CN=Wrong" }, /signer/],
|
||||
["1.0.0-time", { timestamped: false }, /timestamp/],
|
||||
["1.0.0-missing", { missingAsset: true }, /asset is missing/],
|
||||
["1.0.0-draft", { draft: true }, /draft release/],
|
||||
]) {
|
||||
|
||||
Reference in New Issue
Block a user