History log of /openbmc/phosphor-led-manager/test/config/ (Results 1 – 6 of 6)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
638d148721-Aug-2024 Alexander Hansen <alexander.hansen@9elements.com>

config: error on invalid configuration

Since the default led priority is no longer 'Blink', the priority now
has to be explicitly defined when using either group priority or led
priority.

If a conf

config: error on invalid configuration

Since the default led priority is no longer 'Blink', the priority now
has to be explicitly defined when using either group priority or led
priority.

If a configuration does not define the priority, the configuration is
invalid and in the yaml case, phosphor-led-manager should fail to build,
in the json case, the process should exit due to the configuration
error.

The config validation has been extracted into it's own file and made
separate from json config parsing.

So every config will go through the same validation even if its been
created via yaml.

Change-Id: Ifda65942b0768d6c0d3b25076f7a1236b46b3d9f
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...

eb1f46a830-Jul-2024 Alexander Hansen <alexander.hansen@9elements.com>

test: unit test parse_led.py

Providing a test for parse_led.py since it was refactored.

Testing that various keys in the yaml are available in the cpp literal.

Change-Id: I94d03eb2a4d2bd3129971c4a

test: unit test parse_led.py

Providing a test for parse_led.py since it was refactored.

Testing that various keys in the yaml are available in the cpp literal.

Change-Id: I94d03eb2a4d2bd3129971c4acbe75edd74449ed4
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...

4d44a55e24-Jul-2024 Alexander Hansen <alexander.hansen@9elements.com>

config: allow led priority to be Off

This makes the configuration more flexible and eliminates the edge case.

I don't see why this should not be possible.

Change-Id: I28e33535539b3214e18d781631465

config: allow led priority to be Off

This makes the configuration more flexible and eliminates the edge case.

I don't see why this should not be possible.

Change-Id: I28e33535539b3214e18d7816314656df5d3c370e
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...


/openbmc/phosphor-led-manager/.clang-format
/openbmc/phosphor-led-manager/OWNERS
/openbmc/phosphor-led-manager/README.md
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Everest.json
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Rainier1S4U.json
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Rainier2U.json
/openbmc/phosphor-led-manager/configs/com.ibm.Hardware.Chassis.Model.Rainier4U.json
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.hpp
/openbmc/phosphor-led-manager/fault-monitor/meson.build
/openbmc/phosphor-led-manager/fault-monitor/operational-status-monitor.cpp
/openbmc/phosphor-led-manager/manager/group.cpp
/openbmc/phosphor-led-manager/manager/group.hpp
/openbmc/phosphor-led-manager/manager/grouplayout.hpp
/openbmc/phosphor-led-manager/manager/json-config.hpp
/openbmc/phosphor-led-manager/manager/json-parser.hpp
/openbmc/phosphor-led-manager/manager/lamptest/lamptest.cpp
/openbmc/phosphor-led-manager/manager/lamptest/lamptest.hpp
/openbmc/phosphor-led-manager/manager/led-main.cpp
/openbmc/phosphor-led-manager/manager/ledlayout.hpp
/openbmc/phosphor-led-manager/manager/manager.cpp
/openbmc/phosphor-led-manager/manager/manager.hpp
/openbmc/phosphor-led-manager/manager/meson.build
/openbmc/phosphor-led-manager/meson.build
/openbmc/phosphor-led-manager/meson.options
/openbmc/phosphor-led-manager/scripts/led-set-all-groups-asserted.sh
/openbmc/phosphor-led-manager/scripts/parse_led.py
/openbmc/phosphor-led-manager/subprojects/nlohmann_json.wrap
led-group-config.json
/openbmc/phosphor-led-manager/test/led-test-map.hpp
/openbmc/phosphor-led-manager/test/meson.build
/openbmc/phosphor-led-manager/test/utest-led-json.cpp
/openbmc/phosphor-led-manager/utils.cpp
/openbmc/phosphor-led-manager/utils.hpp
6d254ee006-Dec-2022 Patrick Williams <patrick@stwcx.xyz>

reformat with latest settings

Reformat with the latest settings from openbmc-build-scripts code
formatter.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If1a2f0afa88f7354f68989b435

reformat with latest settings

Reformat with the latest settings from openbmc-build-scripts code
formatter.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If1a2f0afa88f7354f68989b43593efec77d0a1d6

show more ...


/openbmc/phosphor-led-manager/.clang-format
/openbmc/phosphor-led-manager/.gitignore
/openbmc/phosphor-led-manager/.linter-ignore
/openbmc/phosphor-led-manager/.shellcheck
/openbmc/phosphor-led-manager/OWNERS
/openbmc/phosphor-led-manager/configs/ibm,everest/led-group-config.json
/openbmc/phosphor-led-manager/configs/ibm,rainier-1s4u/led-group-config.json
/openbmc/phosphor-led-manager/configs/ibm,rainier-2u/led-group-config.json
/openbmc/phosphor-led-manager/configs/ibm,rainier-4u/led-group-config.json
/openbmc/phosphor-led-manager/example/lamp-test/lamp-test-led-overrides.json
/openbmc/phosphor-led-manager/example/led-group-config.json
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.hpp
/openbmc/phosphor-led-manager/fault-monitor/meson.build
/openbmc/phosphor-led-manager/fault-monitor/monitor-main.cpp
/openbmc/phosphor-led-manager/fault-monitor/operational-status-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/operational-status-monitor.hpp
/openbmc/phosphor-led-manager/led.yaml
/openbmc/phosphor-led-manager/manager/group.cpp
/openbmc/phosphor-led-manager/manager/group.hpp
/openbmc/phosphor-led-manager/manager/json-config.hpp
/openbmc/phosphor-led-manager/manager/json-parser.hpp
/openbmc/phosphor-led-manager/manager/lamptest/lamptest.cpp
/openbmc/phosphor-led-manager/manager/lamptest/lamptest.hpp
/openbmc/phosphor-led-manager/manager/led-main.cpp
/openbmc/phosphor-led-manager/manager/ledlayout.hpp
/openbmc/phosphor-led-manager/manager/manager.cpp
/openbmc/phosphor-led-manager/manager/manager.hpp
/openbmc/phosphor-led-manager/manager/meson.build
/openbmc/phosphor-led-manager/manager/serialize.cpp
/openbmc/phosphor-led-manager/manager/serialize.hpp
/openbmc/phosphor-led-manager/meson.build
/openbmc/phosphor-led-manager/meson_options.txt
/openbmc/phosphor-led-manager/pyproject.toml
/openbmc/phosphor-led-manager/scripts/led-set-all-groups-asserted.sh
/openbmc/phosphor-led-manager/scripts/parse_led.py
/openbmc/phosphor-led-manager/subprojects/CLI11.wrap
/openbmc/phosphor-led-manager/subprojects/cereal.wrap
/openbmc/phosphor-led-manager/subprojects/googletest.wrap
/openbmc/phosphor-led-manager/subprojects/nlohmann.wrap
/openbmc/phosphor-led-manager/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-led-manager/subprojects/phosphor-logging.wrap
/openbmc/phosphor-led-manager/subprojects/sdbusplus.wrap
/openbmc/phosphor-led-manager/subprojects/sdeventplus.wrap
led-group-config.json
/openbmc/phosphor-led-manager/test/led-test-map.hpp
/openbmc/phosphor-led-manager/test/meson.build
/openbmc/phosphor-led-manager/test/utest-led-json.cpp
/openbmc/phosphor-led-manager/test/utest-serialize.cpp
/openbmc/phosphor-led-manager/test/utest.cpp
/openbmc/phosphor-led-manager/utils.cpp
/openbmc/phosphor-led-manager/utils.hpp
e5c366fd02-Jul-2020 George Liu <liuxiwei@inspur.com>

Change the key [name] to [Name] in members property

All the other keys start with Uppercase. Changing this to make it
consistent.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ic30f9c3

Change the key [name] to [Name] in members property

All the other keys start with Uppercase. Changing this to make it
consistent.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ic30f9c35ba2c3626e4f565ec166dcc810145eff2

show more ...

def5f5a209-Apr-2020 George Liu <liuxiwei@inspur.com>

Update led-manager to use JSON

Current LED manager uses compile time generated led-gen.hpp and creates
DBus objects for the groups.
We would need this changed to use the generated JSON.

Tested: JSO

Update led-manager to use JSON

Current LED manager uses compile time generated led-gen.hpp and creates
DBus objects for the groups.
We would need this changed to use the generated JSON.

Tested: JSON used at runtime when --enable-json given at configure time.
led-gen.hpp not created when using JSON and led-gen.hpp created by
default when using YAML at build time.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I781f8cb090ece8b87730e6c97795624282857c64

show more ...


/openbmc/phosphor-led-manager/.clang-format
/openbmc/phosphor-led-manager/.gitignore
/openbmc/phosphor-led-manager/LICENSE
/openbmc/phosphor-led-manager/MAINTAINERS
/openbmc/phosphor-led-manager/Makefile.am
/openbmc/phosphor-led-manager/bootstrap.sh
/openbmc/phosphor-led-manager/configure.ac
/openbmc/phosphor-led-manager/elog-errors.hpp
/openbmc/phosphor-led-manager/example/led-group-config.json
/openbmc/phosphor-led-manager/fault-monitor/Makefile.am
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.cpp
/openbmc/phosphor-led-manager/fault-monitor/fru-fault-monitor.hpp
/openbmc/phosphor-led-manager/fault-monitor/monitor-main.cpp
/openbmc/phosphor-led-manager/group.cpp
/openbmc/phosphor-led-manager/group.hpp
/openbmc/phosphor-led-manager/json-config.hpp
/openbmc/phosphor-led-manager/led-main.cpp
/openbmc/phosphor-led-manager/led.yaml
/openbmc/phosphor-led-manager/ledlayout.hpp
/openbmc/phosphor-led-manager/manager.cpp
/openbmc/phosphor-led-manager/manager.hpp
/openbmc/phosphor-led-manager/parse_led.py
/openbmc/phosphor-led-manager/test/Makefile.am
led-group-config-malformed.json
led-group-config.json
/openbmc/phosphor-led-manager/test/led-test-map.hpp
/openbmc/phosphor-led-manager/test/utest-led-json.cpp
/openbmc/phosphor-led-manager/test/utest.cpp
/openbmc/phosphor-led-manager/xyz/openbmc_project/Led/Fru/Monitor.errors.yaml
/openbmc/phosphor-led-manager/xyz/openbmc_project/Led/Fru/Monitor.metadata.yaml
/openbmc/phosphor-led-manager/xyz/openbmc_project/Led/Mapper.errors.yaml
/openbmc/phosphor-led-manager/xyz/openbmc_project/Led/Mapper.metadata.yaml