mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add OTA support to ESP-IDF webserver (#9264)
This commit is contained in:
9
tests/components/web_server/test_no_ota.esp32-idf.yaml
Normal file
9
tests/components/web_server/test_no_ota.esp32-idf.yaml
Normal file
@@ -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
|
32
tests/components/web_server/test_ota.esp32-idf.yaml
Normal file
32
tests/components/web_server/test_ota.esp32-idf.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
# Test configuration for ESP-IDF web server with OTA enabled
|
||||
esphome:
|
||||
name: test-web-server-ota-idf
|
||||
|
||||
# Force ESP-IDF framework
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
packages:
|
||||
device_base: !include common.yaml
|
||||
|
||||
# Enable OTA for multipart upload testing
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "test_ota_password"
|
||||
|
||||
# Web server with OTA enabled
|
||||
web_server:
|
||||
port: 8080
|
||||
version: 2
|
||||
ota: true
|
||||
include_internal: true
|
||||
|
||||
# Enable debug logging for OTA
|
||||
logger:
|
||||
level: DEBUG
|
||||
logs:
|
||||
web_server: VERBOSE
|
||||
web_server_idf: VERBOSE
|
||||
|
11
tests/components/web_server/test_ota_disabled.esp32-idf.yaml
Normal file
11
tests/components/web_server/test_ota_disabled.esp32-idf.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
packages:
|
||||
device_base: !include common.yaml
|
||||
|
||||
# OTA is configured but web_server OTA is disabled
|
||||
ota:
|
||||
- platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 8080
|
||||
version: 2
|
||||
ota: false
|
Reference in New Issue
Block a user