Replace redacted stream recorder credentials with '****' (#48832)

This commit is contained in:
Erik Montnemery 2021-04-08 21:44:17 +02:00 committed by GitHub
parent 2dc46d4516
commit b0aa64d59c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 13 deletions

View file

@ -266,4 +266,4 @@ async def test_recorder_log(hass, caplog):
with patch.object(hass.config, "is_allowed_path", return_value=True):
await stream.async_record("/example/path")
assert "https://abcd:efgh@foo.bar" not in caplog.text
assert "https://foo.bar" in caplog.text
assert "https://****:****@foo.bar" in caplog.text