Fix $XAPP_DESCRIPTOR_PATH parser bug 84/7684/1 2.3.6
authorAlexandre Huff <alexandrehuff@utfpr.edu.br>
Sat, 5 Feb 2022 12:54:32 +0000 (09:54 -0300)
committerAlexandre Huff <alexandrehuff@utfpr.edu.br>
Sat, 5 Feb 2022 13:10:17 +0000 (10:10 -0300)
commitf899326dd481903988b1b947ccff2aca45b3dc27
tree89fef88d57bcb5f84b83aaff6af1de4cec14ccf9
parent9e05c5a9b2fcbf71f7b96bee76a59aab62ec3f9c
Fix $XAPP_DESCRIPTOR_PATH parser bug

While xapp-frame-cpp assumes that $XAPP_DESCRIPTOR_PATH is a filename, the
xapp-onboarder sets it up as a directory. This assumption causes xapps
based on xapp-frame-cpp to crash on startup even using default helm charts.

This change fixes this bug and adds some logic to determine if the
$XAPP_DESCRIPTOR_PATH is a directory or a filename.
This change also adds test cases for $XAPP_DESCRIPTOR_PATH parser.

Issue-ID: RIC-883

Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
Change-Id: I1d29c8c8ae80028accc5d3e29ea571b6365121ac
CHANGES
CMakeLists.txt
src/config/config.cpp
test/Makefile
test/config_test.cpp