hass-core/tests
Ville Skyttä 2a4ab3d53d
Support HTTPS connections to Huawei LTE devices (#86119)
* Support HTTPS connections to Huawei LTE devices

Not all devices support HTTPS, so we default to plain HTTP still.

Ones that do are very likely to have certificates that do not pass
hostname verification, and are either self signed or issued by an
untrusted CA. Add option to use unverified HTTPS to make it possible to
connect to these, and when in effect, filter urllib3's related warnings
about insecure connections to the hostname in question.

* Use common config key and strings for certificate verification settings

Even though the wording might be slightly suboptimal here, it's better
to be consistent across the codebase than to finetune on this level.

This also switches the default the other way around: verification is
now disabled by default. This is not a good general default, but for
this particular case setups where the verification would succeed would
be so rare and require considerable local setup that it's very
unlikely to happen in practice.

* Add config flow tests

* Mock logout for better test coverage

* Set up custom requests session only when using unverified https

* Add https config flow test case

* Make better use of verify SSL default
2023-11-27 18:03:29 +01:00
..
auth Deprecate legacy api auth provider (#104409) 2023-11-27 14:16:18 +01:00
components Support HTTPS connections to Huawei LTE devices (#86119) 2023-11-27 18:03:29 +01:00
fixtures Improve formatting of package errors (#103976) 2023-11-16 09:08:47 +01:00
hassfest Add type hints to core tests (#88478) 2023-02-20 11:42:56 +01:00
helpers Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
pylint Add pylint plugin to check for calls to base implementation (#100432) 2023-09-18 13:39:36 -05:00
resources
scripts Differentiate between warnings and errors in check_config helper (#102902) 2023-11-05 03:08:04 +01:00
snapshots Small improvement of config tests (#104243) 2023-11-20 14:15:29 +01:00
test_util Extend auth/providers endpoint and add /api/person/list endpoint for local ip requests (#103906) 2023-11-24 17:11:54 +01:00
testing_config Cleanup weather test (#103090) 2023-11-03 05:53:38 +01:00
util Fix including yaml files with scalar values (#103914) 2023-11-13 15:23:50 +01:00
__init__.py
common.py Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
conftest.py Fix zeroconf mocking (#104144) 2023-11-17 16:20:54 -06:00
ignore_uncaught_exceptions.py
patch_time.py Decrease event loop latency by binding time.monotonic to loop.time directly (#98288) 2023-08-13 20:37:45 -04:00
ruff.toml Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
syrupy.py Use cached_property in device registry (#100309) 2023-09-13 15:36:07 -05:00
test_bootstrap.py Do not notify config errors during logging (#104466) 2023-11-24 21:34:09 +01:00
test_config.py Raise and suppress stack trace when reloading yaml fails (#102410) 2023-11-24 17:34:45 +01:00
test_config_entries.py Remove mock_entity_platform test helper (#104073) 2023-11-16 16:55:08 +01:00
test_core.py Avoid looking up the callable type for HassJob when we already know it (#102962) 2023-10-30 12:45:22 +01:00
test_data_entry_flow.py Validate steps in Flowhandler (#102152) 2023-10-19 13:34:10 +02:00
test_exceptions.py Enable Ruff PT006 (#88165) 2023-02-15 14:09:50 +01:00
test_loader.py Rename safe mode to recovery mode (#102580) 2023-10-23 20:33:08 +02:00
test_main.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
test_requirements.py Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
test_runner.py Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
test_setup.py Raise and suppress stack trace when reloading yaml fails (#102410) 2023-11-24 17:34:45 +01:00
test_test_fixtures.py Add type hints to core tests (part 2) (#88492) 2023-02-21 09:27:13 +01:00
typing.py Add MockHAClientWebSocket test helper (#87832) 2023-02-10 10:23:26 -05:00