Skip to content

Commit

Permalink
Fix SA2.0 error: show password in url
Browse files Browse the repository at this point in the history
SA 1.4: str(url) renders connection string with password
SA 2.0: str(url) renders connection string WITHOUT password
Solution: Use render_as_string(hide_password=False)
  • Loading branch information
jdavcs committed Dec 20, 2023
1 parent a62778e commit cb3d43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/unittest_utils/model_testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ def _make_sqlite_db_url(tmpdir: str, database: str) -> DbUrl:
def _make_postgres_db_url(connection_url: DbUrl, database: str) -> DbUrl:
url = make_url(connection_url)
url = url.set(database=database)
return DbUrl(str(url))
return DbUrl(url.render_as_string(hide_password=False))

0 comments on commit cb3d43a

Please sign in to comment.