fleet/frontend/__mocks__/idpMock.ts
Gabriel Hernandez 626ff8a467
add new idp section on integrations page and show the users idp connection with fleet (#27566)
For #27282

add new idp section on the integration page. This page will show the
different statuses for the users idp connection with fleet.

**not connected**


![image](https://github.com/user-attachments/assets/13fb46c6-64ca-43fa-a259-e7cf3fdb82b1)

**successful connection**


![image](https://github.com/user-attachments/assets/de80eea5-8d76-4b50-8024-5f702e85f88a)

**failed connection**


![image](https://github.com/user-attachments/assets/bbfcfcf8-51aa-4c08-b57f-cb0c2842313a)

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [ ] Added/updated automated tests
- [x] Manual QA for all new/changed functionality
2025-03-28 11:23:07 +00:00

16 lines
546 B
TypeScript

import { IGetSCIMDetailsResponse } from "services/entities/idp";
const DEFAULT_GET_SCIM_DETAILS_MOCK: IGetSCIMDetailsResponse = {
last_request: {
requested_at: "2025-01-29T17:00:00Z",
status: "success",
details: "Successfully received end user information from your IdP",
},
};
// eslint-disable-next-line import/prefer-default-export
export const createMockGetSCIMDetailsResponse = (
overrides?: Partial<IGetSCIMDetailsResponse>
): IGetSCIMDetailsResponse => {
return { ...DEFAULT_GET_SCIM_DETAILS_MOCK, ...overrides };
};