mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 23:08:37 +00:00
Secrets: add migrate rollback and skill ref support
This commit is contained in:
committed by
Peter Steinberger
parent
2e53033f22
commit
f6a854bd37
@@ -36,6 +36,21 @@ describe("config secret refs schema", () => {
|
||||
expect(result.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts skills entry apiKey refs", () => {
|
||||
const result = validateConfigObjectRaw({
|
||||
skills: {
|
||||
entries: {
|
||||
"review-pr": {
|
||||
enabled: true,
|
||||
apiKey: { source: "env", id: "SKILL_REVIEW_PR_API_KEY" },
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
expect(result.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("rejects invalid secret ref id", () => {
|
||||
const result = validateConfigObjectRaw({
|
||||
models: {
|
||||
|
||||
Reference in New Issue
Block a user