core/tests/components/hassio
Sergio Oller 905100a189
Disambiguate Supervisor HTTPUnauthorized on user/password validation (#44940)
* Disambiguate HTTPUnauthorized on user/password validation

The HA core API usually returns 401 when the request does not
have proper authentication tokens or they have expired.

However the user/password validation endpoint may also return
401 when the given user/password is invalid.

The supervisor is currently unable to distinguish both scenarios,
and it needs to.

See https://github.com/home-assistant/supervisor/issues/2408

* Return 404 if user& password are not found/valid

* Fix test for invalid user/password
2021-01-08 17:28:22 +01:00
..
__init__.py Be consistent with Home Assistant and Hass.io spelling (#30500) 2020-01-05 14:09:17 +02:00
conftest.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_addon_panel.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_auth.py Disambiguate Supervisor HTTPUnauthorized on user/password validation (#44940) 2021-01-08 17:28:22 +01:00
test_discovery.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_handler.py Add system health section for the Supervisor (#43074) 2020-11-11 20:12:24 +01:00
test_http.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_ingress.py Black 2019-07-31 12:25:30 -07:00
test_init.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_system_health.py Prefix versions in system health (#44921) 2021-01-08 16:03:06 +01:00