-
Notifications
You must be signed in to change notification settings - Fork 34
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
Initial Spec For Credential Management and SQLAlchemy Database Connectors #1420
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we spin up docker instances with pre-installed DB servers and write integration tests such that we can prove that at least some of this works ?
with open(file_path, encoding="utf-8") as f: | ||
return yaml.safe_load(f) | ||
|
||
def get(self, source: str) -> dict[str, str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get what ?
raise KeyError(error_msg) | ||
raise KeyError(error_msg) | ||
|
||
def get_secret_value(self, key: str) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't get_secret
suffice ?
There is infra to test it I will add an integration test using envgetter. |
|
||
|
||
class EnvGetter: | ||
def __init__(self, is_debug: bool = False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not read debug-env.json
when the app starts and set env variables accordingly (using os.environ['my_name'] = 'my_value'
) ?
Add Integration Test
✅ 2/2 passed, 0s total Running from acceptance #53 |
Initial Spec For Credential Management and SQLAlchemy Database Connectors