[2.0] Improve Testing Coverage #519
Annotations
7 errors and 1 warning
Run tests:
tests/test_e2e.py#L63
Test_Normal_Configuration.test_setup_to_publish
assert [+ received] == [- snapshot]
list([
...
URL('https://mock_es_integration:9200/_index_template/metrics-homeassistant'),
- b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"},"float":{"ignore_malformed":true,"type":"float"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":...
+ b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":"geo_point"},"value":{"type":"text","fields":{"ke...
),
...
])
|
Run tests:
tests/test_e2e.py#L110
Test_Normal_Configuration.test_setup_to_publish_ping_error
assert [+ received] == [- snapshot]
list([
...
URL('https://mock_es_integration:9200/_index_template/metrics-homeassistant'),
- b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"},"float":{"ignore_malformed":true,"type":"float"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":...
+ b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":"geo_point"},"value":{"type":"text","fields":{"ke...
),
...
])
|
Run tests:
tests/test_e2e.py#L137
Test_Normal_Configuration.test_setup_to_publish_error[403]
assert [+ received] == [- snapshot]
list([
...
URL('https://mock_es_integration:9200/_index_template/metrics-homeassistant'),
- b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"},"float":{"ignore_malformed":true,"type":"float"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":...
+ b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":"geo_point"},"value":{"type":"text","fields":{"ke...
),
...
])
|
Run tests:
tests/test_e2e.py#L137
Test_Normal_Configuration.test_setup_to_publish_error[404]
assert [+ received] == [- snapshot]
list([
...
URL('https://mock_es_integration:9200/_index_template/metrics-homeassistant'),
- b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"},"float":{"ignore_malformed":true,"type":"float"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":...
+ b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":"geo_point"},"value":{"type":"text","fields":{"ke...
),
...
])
|
Run tests:
tests/test_e2e.py#L137
Test_Normal_Configuration.test_setup_to_publish_error[500]
assert [+ received] == [- snapshot]
list([
...
URL('https://mock_es_integration:9200/_index_template/metrics-homeassistant'),
- b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"},"float":{"ignore_malformed":true,"type":"float"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":...
+ b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":"geo_point"},"value":{"type":"text","fields":{"ke...
),
...
])
|
Run tests:
tests/test_e2e.py#L376
Test_Legacy_To_Current.test_setup_v1_to_publish
assert [- snapshot] == [+ received]
dict({
...
URL('https://mock_es_integration:9200/_index_template/metrics-homeassistant'),
- b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"},"float":{"ignore_malformed":true,"type":"float"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type...
+ b'{"composed_of":"metrics-homeassistant@custom","data_stream":{},"ignore_missing_component_templates":"metrics-homeassistant@custom","index_patterns":["metrics-homeassistant.*-default"],"priority":500,"template":{"mappings":{"dynamic":"false","dynamic_templates":[{"hass_entity_attributes":{"path_match":"hass.entity.attributes.*","mapping":{"type":"text","fields":{"keyword":{"ignore_above":1024,"type":"keyword"}}}}}],"properties":{"data_stream":{"properties":{"type":{"type":"constant_keyword","value":"metrics"},"dataset":{"type":"constant_keyword"},"namespace":{"type":"constant_keyword"}}},"hass":{"type":"object","properties":{"entity":{"type":"object","properties":{"id":{"type":"keyword"},"domain":{"type":"keyword"},"friendly_name":{"type":"keyword"},"name":{"type":"keyword"},"attributes":{"type":"object","dynamic":true},"object":{"type":"object","properties":{"id":{"type":"keyword","time_series_dimension":true}}},"location":{"type":"geo_point"},"value":{"type":"text","fields":{"...
),
...
})
|
Run tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading