Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Simplify the task result checks in Functional Tests #622

Open
1 task done
Tracked by #537
kairoaraujo opened this issue Feb 9, 2024 · 0 comments
Open
1 task done
Tracked by #537

Task: Simplify the task result checks in Functional Tests #622

kairoaraujo opened this issue Feb 9, 2024 · 0 comments

Comments

@kairoaraujo
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant