Keep artifact list and beta queries free of file bytes
This commit is contained in:
@@ -26,7 +26,7 @@ describe('plugin release versions', () => {
|
||||
[3, 'v3.0.4'], [2, 'v3.0.4'], [1, 'v3.1.0']
|
||||
]);
|
||||
expect(older.sha256).not.toBe(rebuild.sha256);
|
||||
expect(getVersion(version.id)!.content).toEqual(plugin.content);
|
||||
expect((await import('../../src/lib/server/fleet/scripts.js')).getVersionContent(version.id)).toEqual(plugin.content);
|
||||
});
|
||||
|
||||
it('allows unlabeled uploads and non-semver release tags', async () => {
|
||||
@@ -53,8 +53,9 @@ describe('plugin release versions', () => {
|
||||
db().exec('ALTER TABLE script_versions DROP COLUMN release_version');
|
||||
closeDb();
|
||||
expect(getVersion(version.id)).toMatchObject({
|
||||
id: version.id, version: 1, release_version: null, sha256: version.sha256, content: plugin.content
|
||||
id: version.id, version: 1, release_version: null, sha256: version.sha256
|
||||
});
|
||||
expect((await import('../../src/lib/server/fleet/scripts.js')).getVersionContent(version.id)).toEqual(plugin.content);
|
||||
closeDb();
|
||||
expect(getVersion(version.id)!.release_version).toBeNull();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user