Fleet UI: MDM > ABM fix org_name key (#9655)

This commit is contained in:
RachelElysia 2023-02-03 11:36:27 -05:00 committed by GitHub
parent 100399878d
commit 9d594e1b4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 29 deletions

View file

@ -8,7 +8,7 @@ export interface IMdmApple {
export interface IMdmAppleBm {
default_team?: string;
apple_id: string;
organization_name: string;
org_name: string;
mdm_server_url: string;
renew_date: string;
}

View file

@ -249,7 +249,7 @@ const Mdm = (): JSX.Element => {
<h4>Apple ID</h4>
<p>{mdmAppleBm.apple_id}</p>
<h4>Organization name</h4>
<p>{mdmAppleBm.organization_name}</p>
<p>{mdmAppleBm.org_name}</p>
<h4>MDM Server URL</h4>
<p>{mdmAppleBm.mdm_server_url}</p>
<h4>Renew date</h4>

View file

@ -22,9 +22,6 @@ const REQUEST_RESPONSE_MAPPINGS: IResponses = {
// request query string is hostname, uuid, or mac address; response is host detail excluding any
// expensive data operations
"targets?query={*}": RESPONSES.hosts,
"mdm/apple": RESPONSES.mdmApple,
"mdm/apple_bm": RESPONSES.mdmAppleBm,
"mdm/profile": RESPONSES.mdmEnrollmentProfile,
},
POST: {
// request body is ISelectedTargets

View file

@ -11,27 +11,6 @@ const count = {
targets_missing_in_action: 0,
};
// MDM TODO: Remove mock when backend is merged
const mdmApple = {
common_name: "Mock backend response APSP:04b46ce0-xxxx-xxxx-xxxx-xxxxxxxx",
serial_number: "Mock backend response 123938388712",
issuer:
"Mock backend response Apple Application Integration 2 Certification Authority",
renew_date: "2023-09-30T00:00:00Z",
};
// MDM TODO: Remove mock when backend is merged
const mdmAppleBm = {
default_team: "Mock backend response Apples",
apple_id: "Mock backend response test@example.com",
organization_name: "Mock backend response Fleet Device Management",
mdm_server_url: "Mock backend response https://fleet.organization.com/mdm",
renew_date: "2023-09-30T00:00:00Z",
};
// MDM TODO: Remove mock when backend is merged
const mdmEnrollmentProfile = {};
const hosts = {
hosts: [
{
@ -389,7 +368,4 @@ export default {
count,
hosts,
labels,
mdmApple,
mdmAppleBm,
mdmEnrollmentProfile,
};