in source/checksum/lib/validation/index.js [325:347]
async run() {
this.tags = await this.getTags();
const refChecksum = this.expected || await this.bestGuessChecksum();
if (refChecksum) {
this.comparedResult = refChecksum.toLowerCase() === this.computed.toLowerCase() ? 'MATCHED' : 'NOTMATCHED';
}
/* save checksum to object tags if specified and only if the result is MATCHED or SKIPPED */
if (this.storeChecksumOnTagging && this.comparedResult !== 'NOTMATCHED') {
await this.createTags();
}
/* signal base class to record the end time */
this.setElapsed();
this.status = 'COMPLETED';
/* send sns notification and metrics */
/* send metrics */
await Promise.all([
this.sendMessage(),
this.sendMetrics(),
]);
return this.responseData();
}