repository-service-tuf / repository-service-tuf

Umbrella Repository Service for TUF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task: Simplify the task result checks in Functional Tests

kairoaraujo opened this issue · comments

What is the task about?

The RSTUF API has improved the Task state result since the release v0.10.0b1

On this release, it is no longer necessary to check the result[status] to verify the final state of the task as the ERRORED state was introduced.

The logic to check can be simplified. I mapped some places where it needs to be simplified:

status = data.get("result", {}).get("status")

if result.get("status", False) is True:

if result.get("status") is True:

Parent feature

No response

References

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct