anchore / anchore-engine

A service that analyzes docker images and scans for vulnerabilities
Apache License 2.0
1.58k stars 273 forks source link

Add unit test for taskstate methods #1334

Closed dakaneye closed 2 years ago

dakaneye commented 2 years ago

Signed-off-by: Samuel Dacanay sam.dacanay@anchore.com

What this PR does / why we need it: Adds a unit test for a previously untested part of anchore engine that is called numerous times across the repo

Which issue this PR fixes (optional, in fixes #<issue number>)(, fixes #<issue_number, ...) format, will close the issue when PR is merged: fixes #:

Special notes: There was actually a bug in the next_state method regarding a typo. This fix may have downstream consequences and may require further investigation