mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 16:41:04 +00:00
test: certify bootstrap approval status
This commit is contained in:
@@ -1039,13 +1039,12 @@ describe("device pairing tokens", () => {
|
||||
baseDir,
|
||||
);
|
||||
|
||||
await expect(
|
||||
approveBootstrapDevicePairing(
|
||||
request.request.requestId,
|
||||
PAIRING_SETUP_BOOTSTRAP_PROFILE,
|
||||
baseDir,
|
||||
),
|
||||
).resolves.toEqual(expect.objectContaining({ status: "approved" }));
|
||||
const approved = await approveBootstrapDevicePairing(
|
||||
request.request.requestId,
|
||||
PAIRING_SETUP_BOOTSTRAP_PROFILE,
|
||||
baseDir,
|
||||
);
|
||||
expectRecordFields(approved, "approved result", { status: "approved" });
|
||||
|
||||
const paired = await getPairedDevice("bootstrap-device-operator-default", baseDir);
|
||||
const operatorToken = requireToken(paired?.tokens?.operator?.token);
|
||||
|
||||
Reference in New Issue
Block a user