Merge pull request #2110 from pikasTech/fix/2097-diagnostics-cloudapi-refresh

fix(hwlab-node): expose diagnostics op metadata
This commit is contained in:
Lyon
2026-06-25 10:46:21 +08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ test("cloud-api exposes hwpod-node-ops contract on /v1", async () => {
assert.ok(payload.hwpod.supportedOps.includes("workspace.insert-after"));
assert.equal(payload.hwlabNode.updateRoute, "/v1/hwlab-node/update");
assert.equal(payload.hwlabNode.downloadRoute, "/v1/hwlab-node/download/hwlab-node.py");
assert.equal(payload.hwlabNode.diagnosticsOp, "node.diagnostics");
assert.equal(payload.hwlabNode.updateContractVersion, "hwlab-node-update-v1");
} finally {
await close(server);
+1
View File
@@ -626,6 +626,7 @@ async function handleRestAdapter(request, response, url, options) {
hwlabNode: {
updateRoute: "/v1/hwlab-node/update",
downloadRoute: "/v1/hwlab-node/download/hwlab-node.py",
diagnosticsOp: "node.diagnostics",
updateContractVersion: "hwlab-node-update-v1",
defaultUpdateIntervalSeconds: 300
},