Standalone: activate component generations

This commit is contained in:
faumaray committed 2026-07-29 01:28:50 +03:00
1 parent 3320a0fd74
commit fca42a29ce
3 files changed
+1447 -15

No files matched your search

+15 -2
View File
@@ -257,8 +257,7 @@ int main()
Echoion::Standalone::UpdateService::Hooks{});
std::weak_ptr<Echoion::Standalone::UpdateService> observedService =
ownedService;
auto handler =
Echoion::Standalone::bindUpdateService(ownedService);
auto handler = Echoion::Standalone::bindUpdateService(ownedService);
ownedService.reset();
check(!observedService.expired(),
"host control handler did not retain UpdateService");
@@ -433,6 +432,20 @@ int main()
};
auto service = makeService();
check(service.start().has_value(), "UpdateService did not start");
check(service.handle("updates.history", "{}").has_value(),
"dynamic update history RPC was unavailable");
check(!service.handle("updates.preview", "{}").has_value(),
"transaction preview succeeded without a checked catalog");
check(!service
.handle("updates.applyTransaction",
R"({"transactionId":"missing"})")
.has_value(),
"component transaction apply succeeded without a checked catalog");
check(!service
.handle("updates.rollbackGeneration",
R"({"generationId":"missing"})")
.has_value(),
"generation rollback accepted an unadvertised target");
check(!std::filesystem::exists(
pluginStore.versionPath(*Void::Semver::parse("1.0.0"))),
"managed plugin startup retention did not prune the oldest version");