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

SecretNotFoundError should be raised when a secret is not found #68

Conversation

juditnovak
Copy link
Contributor

Highly misleading, currently a different exception is raised by scenario than by ops, when a secret doesn't exist.

This is cirtical to testing our code, where we need to perform specific actions when a secret is not found, and continue running actions instead of breaking the execution flow

@juditnovak juditnovak marked this pull request as ready for review October 19, 2023 21:08
Copy link
Collaborator

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!
If you want to trigger a release, please give the version a minor bump in pyproject.toml.

scenario/mocking.py Outdated Show resolved Hide resolved
scenario/mocking.py Outdated Show resolved Hide resolved
@juditnovak juditnovak force-pushed the bugfix/secret_not_found_instead_of_runtime_error branch from 3b114d3 to dcb7ee6 Compare October 20, 2023 07:12
pyproject.toml Outdated Show resolved Hide resolved
@PietroPasotti PietroPasotti merged commit 3a5284d into canonical:main Oct 20, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants