Fix panel URL authentication for Hass.io (#15024)

* Update http.py

* Update http.py

* fix tests

* Update test_http.py
This commit is contained in:
Pascal Vizeli
2018-06-17 20:34:47 +02:00
parent 1642502a70
commit 86c6b4d8e3
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ NO_TIMEOUT = {
}
NO_AUTH = {
re.compile(r'^app-(es5|latest)/.+$'),
re.compile(r'^app/.*$'),
re.compile(r'^addons/[^/]*/logo$')
}

View File

@@ -47,8 +47,8 @@ def test_auth_required_forward_request(hassio_client):
@asyncio.coroutine
@pytest.mark.parametrize(
'build_type', [
'es5/index.html', 'es5/hassio-app.html', 'latest/index.html',
'latest/hassio-app.html', 'es5/some-chunk.js', 'es5/app.js',
'app/index.html', 'app/hassio-app.html', 'app/index.html',
'app/hassio-app.html', 'app/some-chunk.js', 'app/app.js',
])
def test_forward_request_no_auth_for_panel(hassio_client, build_type):
"""Test no auth needed for ."""