Skip to content

Commit 28a78a8

Browse files
committed
fix live tests
1 parent 3476631 commit 28a78a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/live/iam.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
} from "../../src/common/types/iam.js";
88
import { allAppRoles, AppRoles } from "../../src/common/roles.js";
99
import { getBaseEndpoint } from "./utils.js";
10+
import { genericConfig } from "../../src/common/config.js";
1011

1112
const baseEndpoint = getBaseEndpoint();
1213
test("getting groups", async () => {
@@ -26,9 +27,7 @@ test("getting groups", async () => {
2627
expect(item).toHaveProperty("id");
2728
expect(item["displayName"].length).greaterThan(0);
2829
expect(item["id"].length).greaterThan(0);
29-
expect(item["id"].length).toMatch(
30-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,
31-
);
30+
expect(genericConfig.ProtectedEntraIDGroups).not.toContain(item["id"]);
3231
}
3332
});
3433

0 commit comments

Comments
 (0)