-
diff --git a/apps/infra/src/components/pages/HostDetails/HostDetails.cy.tsx b/apps/infra/src/components/pages/HostDetails/HostDetails.cy.tsx
index 63f8b5173..f758269b1 100644
--- a/apps/infra/src/components/pages/HostDetails/HostDetails.cy.tsx
+++ b/apps/infra/src/components/pages/HostDetails/HostDetails.cy.tsx
@@ -214,11 +214,6 @@ describe("HostDetails", () => {
it("show OS field", () => {
pom.getHostDescriptionValueByKey("OS").should("contain.text", "Ubuntu");
});
- it("show Updates field", () => {
- pom
- .getHostDescriptionValueByKey("Updates")
- .should("contain.text", "Ubuntu");
- });
it("show `OS update available` under the Hostname", () => {
pom.el.osUpdateAvailable.should("exist");
diff --git a/apps/infra/src/components/pages/HostDetails/HostDetails.tsx b/apps/infra/src/components/pages/HostDetails/HostDetails.tsx
index f07d983b0..b253ceec3 100644
--- a/apps/infra/src/components/pages/HostDetails/HostDetails.tsx
+++ b/apps/infra/src/components/pages/HostDetails/HostDetails.tsx
@@ -18,7 +18,6 @@ import {
import {
API_INTERVAL,
checkAuthAndRole,
- formatOsUpdateAvailable,
getCustomStatusOnIdleAggregation,
getTrustedComputeCompatibility,
HostGenericStatuses,
@@ -546,14 +545,6 @@ const HostDetails: React.FC = () => {
| OS |
{host?.instance?.os?.name ?? "-"} |
-
- | Updates |
-
- {formatOsUpdateAvailable(
- host?.instance?.osUpdateAvailable ?? "-",
- )}
- |
-
{host.site && (
| Site |
diff --git a/apps/infra/src/components/pages/OsUpdatePolicy/OsUpdatePolicy.cy.tsx b/apps/infra/src/components/pages/OsUpdatePolicy/OsUpdatePolicy.cy.tsx
index 20670fa11..8c68eb7fd 100644
--- a/apps/infra/src/components/pages/OsUpdatePolicy/OsUpdatePolicy.cy.tsx
+++ b/apps/infra/src/components/pages/OsUpdatePolicy/OsUpdatePolicy.cy.tsx
@@ -6,9 +6,9 @@
import { cyGet } from "@orch-ui/tests";
// import * as x from "@orch-ui/utils";
import {
- osUpdatePolicyImmediate,
- osUpdatePolicyScheduled,
+ osUpdatePolicyLatest,
osUpdatePolicyTarget,
+ osUpdatePolicyUnspecified,
} from "@orch-ui/utils";
import OsUpdatePolicy from "./OsUpdatePolicy";
import OsUpdatePolicyPom from "./OsUpdatePolicy.pom";
@@ -70,13 +70,10 @@ describe("", () => {
it("should display policy names in table", () => {
pom.osProfilesTablePom.root.should("contain", osUpdatePolicyTarget.name);
+ pom.osProfilesTablePom.root.should("contain", osUpdatePolicyLatest.name);
pom.osProfilesTablePom.root.should(
"contain",
- osUpdatePolicyScheduled.name,
- );
- pom.osProfilesTablePom.root.should(
- "contain",
- osUpdatePolicyImmediate.name,
+ osUpdatePolicyUnspecified.name,
);
});
@@ -135,7 +132,7 @@ describe("", () => {
// Should not show non-matching policies
pom.osProfilesTablePom.root.should(
"not.contain",
- osUpdatePolicyScheduled.name,
+ osUpdatePolicyLatest.name,
);
});
@@ -146,10 +143,7 @@ describe("", () => {
// Should show all policies again
pom.osProfilesTablePom.root.should("contain", osUpdatePolicyTarget.name);
- pom.osProfilesTablePom.root.should(
- "contain",
- osUpdatePolicyScheduled.name,
- );
+ pom.osProfilesTablePom.root.should("contain", osUpdatePolicyLatest.name);
});
});
diff --git a/library/utils/mocks/infra/store/osUpdatePolicy.ts b/library/utils/mocks/infra/store/osUpdatePolicy.ts
index 940d6bca8..4172d50b6 100644
--- a/library/utils/mocks/infra/store/osUpdatePolicy.ts
+++ b/library/utils/mocks/infra/store/osUpdatePolicy.ts
@@ -43,22 +43,22 @@ export const osUpdatePolicyTarget = createOsUpdatePolicy(
osTbUpdate, // Use the actual OS resource
);
-export const osUpdatePolicyScheduled = createOsUpdatePolicy(
+export const osUpdatePolicyLatest = createOsUpdatePolicy(
"osupdatepolicy-b22027e6",
"Production Security Updates",
"Automated security updates policy for production environments",
- "UPDATE_POLICY_SCHEDULED" as infra.UpdatePolicy,
+ "UPDATE_POLICY_LATEST" as infra.UpdatePolicy,
osUbuntu, // Use the actual OS resource
"security-updates kernel-updates",
["https://security-updates.example.com/repo"],
"grub-reboot 0",
);
-export const osUpdatePolicyImmediate = createOsUpdatePolicy(
+export const osUpdatePolicyUnspecified = createOsUpdatePolicy(
"osupdatepolicy-c33038f7",
- "Critical Patch Policy",
- "Immediate updates for critical security patches",
- "UPDATE_POLICY_IMMEDIATE" as infra.UpdatePolicy,
+ "Default Update Policy",
+ "Default update policy with unspecified behavior",
+ "UPDATE_POLICY_UNSPECIFIED" as infra.UpdatePolicy,
osRedHat, // Use the actual OS resource
"critical-patches",
["https://critical-updates.example.com/repo"],
@@ -72,8 +72,8 @@ export class OsUpdatePolicyStore extends BaseStore<
constructor() {
super("resourceId", [
osUpdatePolicyTarget,
- osUpdatePolicyScheduled,
- osUpdatePolicyImmediate,
+ osUpdatePolicyLatest,
+ osUpdatePolicyUnspecified,
]);
}