[TC-FAN] Update REPL tests to expect CONSTRAINT_ERROR for unsupported FanMode
@FrancoLionti ci sta già lavorando.
Dal 4/5/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Summary Title:
[TC-FAN] Update REPL tests to expect CONSTRAINT_ERROR for unsupported FanMode
Description:
A recent spec-compliance fix in the FanControl server cluster (src/app/clusters/fan-control-server/FanControlCluster.cpp) updated the error returned when setting the FanMode attribute to an unsupported value.
Previously, attempting to set FanMode to kLow when the FanModeSequence was kOffHighAuto or kOffHigh returned Status::InvalidInState. Based on review feedback from @shubhamdp, this was pointed out to return CONSTRAINT_ERROR to align with the specification.
[TC-FAN] Update REPL tests to expect CONSTRAINT_ERROR for unsupported FanMode
However, this change caused existing FanControl REPL tests to fail because they are still hardcoded to expect the old error type (InvalidInState) instead of the newly implemented CONSTRAINT_ERROR. This issue tracks the work to update the REPL test assertions so they pass against the corrected server behavior.
Steps to reproduce:
- Run the FanControl REPL tests that validate writing to the
FanModeattribute. - Trigger the specific test case that attempts to write
FanModeEnum::kLowwhile theFanModeSequenceis set tokOffHighAutoorkOffHigh. - Observe the test failure (the test expects the outdated status code, while the server correctly returns
CONSTRAINT_ERROR). - Update the REPL test assertions to expect
CONSTRAINT_ERROR(or its equivalent status enum in the test framework) to resolve the failure.
Logs:
N/A - Test failure occurs during REPL test execution due to a known assertion mismatch.
Additional Info:
- Target File:
src/app/clusters/fan-control-server/FanControlCluster.cppand associated REPL test scripts. - Reviewer Context:
shubhamdpnoted: "This should be CONSTRAINT_ERROR. If an attempt is made to set this attribute to a value not supported by the server as indicated in the FanModeSequence attribute, the server SHALL respond with CONSTRAINT_ERROR."
- Lingua principale
- Python
- Stelle
- 20
- Fork
- 7
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di project-chip/matter-test-scripts
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
project-chip/matter-test-scripts#794 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
TC-IDM-10.4: Add feature-based event selectionForse già presa @j-ororke l’ha presa 6 giorni fa. Aperta
project-chip/matter-test-scripts#812 · 1 commento · 1 assegnatario ·
Tutte le issue di project-chip/matter-test-scripts
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
UKGovernmentBEIS/optstop#10 ·
-
maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pollen-robotics/reachy_mini#1508 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] `cloud-keys.env` values retain enclosing quotes causing 401 Unauthorized, and missing utf-8 encoding crashes on WindowsForse già presa @divyanshu07-code l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
open-jarvis/OpenJarvis#1192 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
sylvainmetayer/homelab#851 ·
I maintainer di solito rispondono entro 1 giorno