forked from TrueCloudLab/xk6-frostfs
Added delete object after read
Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
parent
a8eab4434b
commit
274d071964
1 changed files with 1 additions and 2 deletions
|
@ -26,7 +26,6 @@ const summary_json = __ENV.SUMMARY_JSON || '/tmp/summary.json';
|
|||
|
||||
const no_verify_ssl = __ENV.NO_VERIFY_SSL || 'true';
|
||||
const delete_after_read = __ENV.DELETE_AFTER_READ || 'true';
|
||||
console.log(`delete_after_readt: ${delete_after_read}`)
|
||||
|
||||
const connection_args = {
|
||||
no_verify_ssl : no_verify_ssl
|
||||
|
@ -227,7 +226,7 @@ export function delete_object(obj) {
|
|||
return;
|
||||
} else {
|
||||
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key})
|
||||
.error(resp.success);
|
||||
.info("deleted successfully");
|
||||
}
|
||||
|
||||
obj_registry.deleteObject(obj.id);
|
||||
|
|
Loading…
Reference in a new issue