Deduplicate artifact bytes and deliver files by authenticated hash
This commit is contained in:
@@ -41,6 +41,8 @@ describe('persisted launch recipe summaries', () => {
|
||||
expect(recipeSummaryForDeployment('missing')).toBeNull();
|
||||
} finally { parsing.mockRestore(); }
|
||||
expect(recipeForDeployment('legacy')).toEqual({ recipe, blueprintName: 'Old collection' });
|
||||
expect(db().prepare('SELECT recipe FROM server_launch_recipes').get()).toEqual({ recipe: encoded });
|
||||
const stored = db().prepare('SELECT recipe FROM server_launch_recipes').get() as { recipe: string };
|
||||
expect(stored.recipe.length).toBeLessThan(1024);
|
||||
expect(JSON.parse(stored.recipe).files[0]).not.toHaveProperty('content');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user