test: tighten inactive channel warning assertions

This commit is contained in:
Peter Steinberger
2026-05-09 23:16:21 +01:00
parent e8d01a3eba
commit d9d8439dfd

View File

@@ -151,9 +151,9 @@ describe("secrets runtime snapshot channel inactive variants", () => {
provider: "default",
id: "MISSING_SLACK_WORK_APP_TOKEN",
});
expect(snapshot.warnings.map((warning) => warning.path)).toEqual(
expect.arrayContaining(["channels.slack.appToken", "channels.slack.accounts.work.appToken"]),
);
const warningPaths = snapshot.warnings.map((warning) => warning.path);
expect(warningPaths).toContain("channels.slack.appToken");
expect(warningPaths).toContain("channels.slack.accounts.work.appToken");
});
it("treats top-level Google Chat serviceAccount as inactive when enabled accounts use serviceAccountRef", async () => {