Implemented full e2e testing

This commit is contained in:
Martino Ferrari
2026-07-02 10:10:57 +02:00
parent f8c79131c9
commit f2042d624b
35 changed files with 2419 additions and 78 deletions
@@ -1091,9 +1091,9 @@ void DebugServiceBase::InfoNode(const char8 *path, StreamString &out) {
Reference ref = ObjectRegistryDatabase::Instance()->Find(path);
out += "{";
if (ref.IsValid()) {
out += "\"Name\":\"";
out += "\"Name\": \"";
EscapeJson(ref->GetName(), out);
out += "\",\"Class\":\"";
out += "\", \"Class\": \"";
EscapeJson(ref->GetClassProperties()->GetName(), out);
out += "\"";
ConfigurationDatabase db;
@@ -1110,7 +1110,7 @@ void DebugServiceBase::InfoNode(const char8 *path, StreamString &out) {
if (TypeConvert(st, at)) {
out += "\"";
EscapeJson(cn, out);
out += "\":\"";
out += "\": \"";
EscapeJson(buf, out);
out += "\"";
if (i < nc - 1u)
@@ -1129,8 +1129,8 @@ void DebugServiceBase::InfoNode(const char8 *path, StreamString &out) {
DebugSignalInfo *s = signals[aliases[i].signalIndex];
const char8 *tn =
TypeDescriptor::GetTypeNameFromTypeDescriptor(s->type);
out.Printf("\"Name\":\"%s\",\"Class\":\"Signal\",\"Type\":\"%s\","
"\"ID\":%u",
out.Printf("\"Name\": \"%s\", \"Class\": \"Signal\", \"Type\": \"%s\", "
"\"ID\": %u",
s->name.Buffer(), tn ? tn : "Unknown", s->internalID);
enrichAlias = aliases[i].name;
found = true;
@@ -1141,7 +1141,7 @@ void DebugServiceBase::InfoNode(const char8 *path, StreamString &out) {
if (found)
EnrichWithConfig(enrichAlias.Buffer(), out);
else
out += "\"Error\":\"Object not found\"";
out += "\"Error\": \"Object not found\"";
}
out += "}\nOK INFO\n";
}