From a963f9752001e920c4a7e4ac9874d22e6ff62a4d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 29 Jun 2025 16:07:26 -0500 Subject: [PATCH] fixes --- .../components/web_server/test_no_ota.esp32-idf.yaml | 9 +++++++++ tests/components/web_server/test_ota.esp32-idf.yaml | 12 ++++++++++++ .../web_server/test_ota_disabled.esp32-idf.yaml | 12 ++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 tests/components/web_server/test_no_ota.esp32-idf.yaml create mode 100644 tests/components/web_server/test_ota.esp32-idf.yaml create mode 100644 tests/components/web_server/test_ota_disabled.esp32-idf.yaml diff --git a/tests/components/web_server/test_no_ota.esp32-idf.yaml b/tests/components/web_server/test_no_ota.esp32-idf.yaml new file mode 100644 index 0000000000..1f677fb948 --- /dev/null +++ b/tests/components/web_server/test_no_ota.esp32-idf.yaml @@ -0,0 +1,9 @@ +packages: + device_base: !include common.yaml + +# No OTA component defined for this test + +web_server: + port: 8080 + version: 2 + ota: false diff --git a/tests/components/web_server/test_ota.esp32-idf.yaml b/tests/components/web_server/test_ota.esp32-idf.yaml new file mode 100644 index 0000000000..198b826ec6 --- /dev/null +++ b/tests/components/web_server/test_ota.esp32-idf.yaml @@ -0,0 +1,12 @@ +packages: + device_base: !include common.yaml + +# Enable OTA for this test +ota: + - platform: esphome + safe_mode: true + +web_server: + port: 8080 + version: 2 + ota: true diff --git a/tests/components/web_server/test_ota_disabled.esp32-idf.yaml b/tests/components/web_server/test_ota_disabled.esp32-idf.yaml new file mode 100644 index 0000000000..db1a181ddd --- /dev/null +++ b/tests/components/web_server/test_ota_disabled.esp32-idf.yaml @@ -0,0 +1,12 @@ +packages: + device_base: !include common.yaml + +# OTA is configured but web_server OTA is disabled +ota: + - platform: esphome + safe_mode: true + +web_server: + port: 8080 + version: 2 + ota: false