mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:20:48 +00:00
test(gateway): use core node command in pairing authz
This commit is contained in:
@@ -255,17 +255,17 @@ describe("gateway node pairing authorization", () => {
|
||||
test("requests re-pairing when a paired node reconnects with upgraded commands", async () => {
|
||||
await expectRePairingRequest({
|
||||
pairedName: "node-command-pin",
|
||||
initialCommands: ["canvas.snapshot"],
|
||||
reconnectCommands: ["canvas.snapshot", "system.run"],
|
||||
initialCommands: ["screen.snapshot"],
|
||||
reconnectCommands: ["screen.snapshot", "system.run"],
|
||||
approvalScopes: ["operator.pairing", "operator.write"],
|
||||
expectedVisibleCommands: ["canvas.snapshot"],
|
||||
expectedVisibleCommands: ["screen.snapshot"],
|
||||
});
|
||||
});
|
||||
|
||||
test("requests re-pairing when a commandless paired node reconnects with system.run", async () => {
|
||||
await expectRePairingRequest({
|
||||
pairedName: "node-command-empty",
|
||||
reconnectCommands: ["canvas.snapshot", "system.run"],
|
||||
reconnectCommands: ["screen.snapshot", "system.run"],
|
||||
approvalScopes: ["operator.pairing"],
|
||||
expectedVisibleCommands: [],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user