Adds new redfish unit testing for serviceroot
This type of testing can validate bmcwebs generated redfish. The ability
to validate the output of bmcweb is extremely useful because it will
guarantee correctness in certain cases.
This is an example of redfish unit testing. The long term goal is to
apply this type of testing to several other redfish responses.
To make this change many previous changes were needed
* Break serviceroot callback into the free function.
* Change ownership of the request and response objects.
* Change setCompleteRequestHandler logic
Signed-off-by: John Edward Broadbent <jebr@google.com>
Change-Id: I324daef0d80eb86f0f7383663727d64776f45279
diff --git a/meson.build b/meson.build
index 9ad4d6d..f6fb323 100644
--- a/meson.build
+++ b/meson.build
@@ -386,6 +386,7 @@
'redfish-core/ut/registries_test.cpp',
'redfish-core/ut/stl_utils_test.cpp',
'redfish-core/ut/time_utils_test.cpp',
+ 'redfish-core/lib/ut/service_root_test.cpp',
]
if(get_option('tests').enabled())