mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 10:25:58 +00:00
global mock
This commit is contained in:
@@ -5,11 +5,6 @@ const IDP_URL = "https://google.com";
|
|||||||
|
|
||||||
describe("register idps", () => {
|
describe("register idps", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
stub("zitadel.user.v2alpha.UserService", "StartIdentityProviderFlow", {
|
|
||||||
data: {
|
|
||||||
authUrl: IDP_URL,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
stub(
|
stub(
|
||||||
"zitadel.settings.v2alpha.SettingsService",
|
"zitadel.settings.v2alpha.SettingsService",
|
||||||
"GetActiveIdentityProviders",
|
"GetActiveIdentityProviders",
|
||||||
@@ -25,6 +20,11 @@ describe("register idps", () => {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
stub("zitadel.user.v2alpha.UserService", "StartIdentityProviderFlow", {
|
||||||
|
data: {
|
||||||
|
authUrl: IDP_URL,
|
||||||
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should show a custom text on the idp button", () => {
|
it("should show a custom text on the idp button", () => {
|
||||||
|
|||||||
@@ -17,6 +17,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"service": "zitadel.settings.v2alpha.SettingsService",
|
||||||
|
"method": "GetActiveIdentityProviders",
|
||||||
|
"out": {
|
||||||
|
"data": {
|
||||||
|
"identityProviders": [
|
||||||
|
{
|
||||||
|
"id": "123",
|
||||||
|
"name": "Hubba bubba",
|
||||||
|
"type": 10
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"service": "zitadel.settings.v2alpha.SettingsService",
|
"service": "zitadel.settings.v2alpha.SettingsService",
|
||||||
"method": "GetPasswordComplexitySettings",
|
"method": "GetPasswordComplexitySettings",
|
||||||
|
|||||||
Reference in New Issue
Block a user