Deduplicate artifact bytes and deliver files by authenticated hash
This commit is contained in:
@@ -50,7 +50,7 @@ describe('campaign resume API', () => {
|
||||
expect(db().prepare('SELECT restart_state, error, provisioning_id FROM deployment_servers WHERE deployment_id = ?').get(campaign))
|
||||
.toEqual({ restart_state: 'pending', error: null, provisioning_id: null });
|
||||
expect(db().prepare('SELECT finished_at FROM deployments WHERE id = ?').get(campaign)).toEqual({ finished_at: null });
|
||||
expect(db().prepare('SELECT state, content FROM staged_file_changes WHERE source_id = ?').get(campaign))
|
||||
expect(db().prepare('SELECT state, (SELECT content FROM file_blobs WHERE sha256=content_hash) AS content FROM staged_file_changes WHERE source_id = ?').get(campaign))
|
||||
.toEqual({ state: 'pending', content: restored });
|
||||
expect(await readFile(destination())).toEqual(before);
|
||||
expect(kick).toHaveBeenCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user