commit | e7b1b62b39ba31ba368c42cb6f4fa7af43c65961 | [log] [tgz] |
---|---|---|
author | Ed Tanous <edtanous@google.com> | Thu Mar 24 19:14:03 2022 -0700 |
committer | Ed Tanous <ed@tanous.net> | Tue Apr 05 19:12:29 2022 +0000 |
tree | 94183879a4600cf9189be321708bec7d232472c8 | |
parent | 142ec9aeb70c23a1aa98aa90d472ff11a76529ee [diff] |
Fix missing success code in Account PATCH Everywhere else in this file, we return messages::success when a property is patched, except for the password success case. This normally wouldn't matter much, but redfish-protocol-validator seems to want to use Password setting as its check for a number of protocol tests (probably because all Redfish implementations have settable passwords). This commit adds the appropriate message Tested: curl -vvvv --insecure --user root:0penBmc -X PATCH -d '{"Password": "0penBmc1"}' https://192.168.7.2/redfish/v1/AccountService/Accounts/root Now returns the Success message from the message registry. Redfish-protocol-validator PROTO_JSON_ACCEPTED tests now succeed, improving bmcwebs protocol score by 3 tests passing that were failing. Counts are 356 passing, 27 failed, 36 not tested. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Iff1096ca590f956b29b2a3dd6c9510d2fe4a0037
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.