refactor: centralize bootstrap profile handling

This commit is contained in:
Peter Steinberger
2026-03-23 00:14:10 -07:00
parent 43557668d2
commit 6686f1cb2c
5 changed files with 129 additions and 46 deletions

View File

@@ -56,8 +56,10 @@ describe("pairing setup code", () => {
expect(resolved.payload.bootstrapToken).toBe("bootstrap-123");
expect(issueDeviceBootstrapTokenMock).toHaveBeenCalledWith(
expect.objectContaining({
roles: ["node"],
scopes: [],
profile: {
roles: ["node"],
scopes: [],
},
}),
);
if (params.url) {