Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Drive the container Update button through the governed action review flow
rcourtman68dd64e76803
diff --git a/frontend-modern/src/api/__tests__/monitoring.test.ts b/frontend-modern/src/api/__tests__/monitoring.test.tsindex e44243bc97..585135604f 100644--- a/frontend-modern/src/api/__tests__/monitoring.test.ts+++ b/frontend-modern/src/api/__tests__/monitoring.test.ts@@ -187,36 +187,6 @@ describe('MonitoringAPI', () => {});});- describe('updateDockerContainer', () => {- it('returns canonical success when the backend omits a payload body', async () => {- vi.mocked(apiFetch).mockResolvedValueOnce(new Response('', { status: 200 }));-- const result = await MonitoringAPI.updateDockerContainer('agent-1', 'container-1', 'nginx');-- expect(apiFetch).toHaveBeenCalledWith(- '/api/agents/docker/containers/update',- expect.objectContaining({- method: 'POST',- body: JSON.stringify({- agentId: 'agent-1',- containerId: 'container-1',- containerName: 'nginx',- }),- }),- );- expect(result).toEqual({ success: true });- });-- it('returns parsed command payloads when present', async () => {- vi.mocked(apiFetch).mockResolvedValueOnce(- new Response(JSON.stringify({ success: true, commandId: 'cmd-1' }), { status: 200 }),- );-- const result = await MonitoringAPI.updateDockerContainer('agent-1', 'container-1', 'nginx');-- expect(result).toEqual({ success: true, commandId: 'cmd-1' });- });- });describe('agent management', () => {it('deletes agent via unified backend route', async () => {@@ -487,27 +457,4 @@ describe('MonitoringAPI', () => {});});- describe('updateAllDockerContainers', () => {- it('returns canonical success when the backend omits a payload body', async () => {- vi.mocked(apiFetch).mockResolvedValueOnce(new Response('', { status: 200 }));-- const result = await MonitoringAPI.updateAllDockerContainers('agent-1');-- expect(apiFetch).toHaveBeenCalledWith(- '/api/agents/docker/runtimes/agent-1/update-all',- expect.objectContaining({ method: 'POST' }),- );- expect(result).toEqual({ success: true });- });-- it('returns parsed command payloads when present', async () => {- vi.mocked(apiFetch).mockResolvedValueOnce(- new Response(JSON.stringify({ success: true, commandId: 'cmd-3' }), { status: 200 }),- );-- const result = await MonitoringAPI.updateAllDockerContainers('agent-1');-- expect(result).toEqual({ success: true, commandId: 'cmd-3' });- });- });});diff --git a/frontend-modern/src/api/monitoring.ts b/frontend-modern/src/api/monitoring.tsindex 3c28219b80..926506dfdd 100644--- a/frontend-modern/src/api/monitoring.ts+++ b/frontend-modern/src/api/monitoring.ts@@ -290,27 +290,8 @@ export class MonitoringAPI {return data;}- /**- * Triggers an update for a Docker container on a specific agent.- * The update will pull the latest image and recreate the container.- */- static async updateDockerContainer(- agentId: string,- containerId: string,- containerName: string,- ): Promise<UpdateDockerContainerResponse> {- const url = `${this.baseUrl}/agents/docker/containers/update`;- return triggerResourceCommand<UpdateDockerContainerResponse>(- url,- 'Failed to parse update container response',- {- headers: {- 'Content-Type': 'application/json',- },- body: JSON.stringify({ agentId, containerId, containerName }),- },- );- }+ // Container updates run as audited actions through ResourceActionsAPI; the+ // legacy direct-update and update-all endpoints are retired server-side./*** Triggers an immediate update check for all containers on a specific Docker / Podman agent.@@ -324,19 +305,6 @@ export class MonitoringAPI {'Failed to parse check updates response',);}-- /**- * Triggers a batch update for all containers with updates available on a specific Docker / Podman agent.- */- static async updateAllDockerContainers(- agentId: string,- ): Promise<{ success: boolean; commandId?: string }> {- const url = `${this.baseUrl}/agents/docker/runtimes/${encodeURIComponent(agentId)}/update-all`;- return triggerResourceCommand<{ success: boolean; commandId?: string }>(- url,- 'Failed to parse update all response',- );- }}export interface DeleteDockerRuntimeResponse {diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex e02ff8eed2..c46a326c25 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -317,7 +317,7 @@ describe('ResourceDetailDrawer change history section', () => {expect(resourceDetailDrawerDockerActionsStateSource).toContain('MonitoringAPI.checkDockerUpdates',);- expect(resourceDetailDrawerDockerActionsStateSource).toContain(+ expect(resourceDetailDrawerDockerActionsStateSource).not.toContain('MonitoringAPI.updateAllDockerContainers',);});diff --git a/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.ts b/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.tsindex 9ee6688b0d..daffc1f9f6 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.ts+++ b/frontend-modern/src/components/Infrastructure/__tests__/useResourceDetailDrawerDockerActionsState.test.ts@@ -5,7 +5,6 @@ import { useResourceDetailDrawerDockerActionsState } from '@/components/Infrastrconst monitoringMock = vi.hoisted(() => ({checkDockerUpdates: vi.fn(),- updateAllDockerContainers: vi.fn(),}));vi.mock('@/api/monitoring', () => ({@@ -15,7 +14,6 @@ vi.mock('@/api/monitoring', () => ({describe('useResourceDetailDrawerDockerActionsState', () => {beforeEach(() => {monitoringMock.checkDockerUpdates.mockReset();- monitoringMock.updateAllDockerContainers.mockReset();});it('queues docker update checks through the dedicated action owner', async () => {@@ -41,9 +39,7 @@ describe('useResourceDetailDrawerDockerActionsState', () => {scope.dispose();});- it('requires confirmation before queueing update-all mutations', async () => {- monitoringMock.updateAllDockerContainers.mockResolvedValue(undefined);-+ it('points update-all at the reviewed per-container action flow', async () => {const scope = createRoot((dispose) => {const [dockerHostSourceId] = createSignal<string | null>('host-1');const [dockerUpdatesAvailable] = createSignal(4);@@ -56,40 +52,12 @@ describe('useResourceDetailDrawerDockerActionsState', () => {};});- await scope.state.queueDockerUpdateAll();-- expect(monitoringMock.updateAllDockerContainers).not.toHaveBeenCalled();- expect(scope.state.confirmUpdateAll()).toBe(true);- expect(scope.state.dockerActionNote()).toContain('Click again to update 4 containers.');-- await scope.state.queueDockerUpdateAll();-- expect(monitoringMock.updateAllDockerContainers).toHaveBeenCalledWith('host-1');- expect(scope.state.dockerActionNote()).toBe('Update queued.');- expect(scope.state.confirmUpdateAll()).toBe(false);- scope.dispose();- });-- it('clears pending confirmation when docker actions are hidden', async () => {- const scope = createRoot((dispose) => {- const [dockerHostSourceId] = createSignal<string | null>('host-1');- const [dockerUpdatesAvailable] = createSignal(2);- return {- dispose,- state: useResourceDetailDrawerDockerActionsState({- dockerHostSourceId,- dockerUpdatesAvailable,- }),- };- });-- scope.state.toggleDockerUpdateControls();- await scope.state.queueDockerUpdateAll();- expect(scope.state.confirmUpdateAll()).toBe(true);-- scope.state.toggleDockerUpdateControls();+ const queued = await scope.state.queueDockerUpdateAll();+ expect(queued).toBe(false);expect(scope.state.confirmUpdateAll()).toBe(false);+ expect(scope.state.dockerActionNote()).toContain('per-container actions');+ expect(scope.state.dockerActionError()).toBe('');scope.dispose();});});diff --git a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.tsindex 3f1e2f17d9..25aa0f3a79 100644--- a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts+++ b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts@@ -57,31 +57,18 @@ export const useResourceDetailDrawerDockerActionsState = (}};+ // Container updates now run as audited per-container actions; the legacy+ // bulk endpoint is retired and there is no reviewed bulk flow yet, so this+ // reports honestly instead of queuing something that cannot run.const queueDockerUpdateAll = async () => {resetDockerActionFeedback();const hostId = options.dockerHostSourceId();if (!hostId) return false;-- if (!confirmUpdateAll()) {- setConfirmUpdateAll(true);- setDockerActionNote(- `Click again to update ${options.dockerUpdatesAvailable()} containers.`,- );- return false;- }-- try {- setDockerActionBusy(true);- await MonitoringAPI.updateAllDockerContainers(hostId);- setDockerActionNote('Update queued.');- return true;- } catch (error) {- setDockerActionError(formatActionError(error, 'Failed to queue update'));- return false;- } finally {- setDockerActionBusy(false);- setConfirmUpdateAll(false);- }+ setConfirmUpdateAll(false);+ setDockerActionNote(+ 'Updates now run as reviewed per-container actions: use the Update button on each container.',+ );+ return false;};return {diff --git a/frontend-modern/src/components/Workloads/GuestRow.tsx b/frontend-modern/src/components/Workloads/GuestRow.tsxindex 853139e851..f51688c91b 100644--- a/frontend-modern/src/components/Workloads/GuestRow.tsx+++ b/frontend-modern/src/components/Workloads/GuestRow.tsx@@ -777,6 +777,7 @@ export function GuestRow(props: GuestRowProps) {agentId={dockerHostId()}containerId={props.guest.containerId ?? ''}containerName={props.guest.name}+ resourceId={props.guest.id}compact={true}/></Show>diff --git a/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx b/frontend-modern/src/components/shared/ContainerUpdateBadge.tsxindex 9d0d2b06ee..4e69c3639d 100644--- a/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx+++ b/frontend-modern/src/components/shared/ContainerUpdateBadge.tsx@@ -1,5 +1,6 @@import { Component, Match, Show, Switch } from 'solid-js';import { showTooltip, hideTooltip } from '@/components/shared/Tooltip';+import { ActionReviewDialog } from '@/features/actions/ActionReviewDialog';import {getContainerUpdateBadgeTooltip,getContainerUpdateCurrentTooltip,@@ -239,6 +240,11 @@ export const UpdateButton: Component<UpdateButtonProps> = (props) => {<XIcon class="w-3 h-3" /></button></Show>+ <ActionReviewDialog+ detail={state.reviewDetail()}+ onClose={state.handleReviewClosed}+ onChanged={state.handleReviewChanged}+ /></div>}>diff --git a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.tsindex 756344ef8e..77e1845334 100644--- a/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts+++ b/frontend-modern/src/components/shared/SharedPrimitives.guardrails.test.ts@@ -5085,7 +5085,8 @@ describe('shared primitive guardrails', () => {expect(containerUpdateBadgeSource).not.toContain('markContainerQueued');expect(containerUpdateBadgeSource).not.toContain('createSignal');- expect(containerUpdateButtonStateSource).toContain('MonitoringAPI.updateDockerContainer');+ expect(containerUpdateButtonStateSource).toContain('ResourceActionsAPI.planAction');+ expect(containerUpdateButtonStateSource).not.toContain('MonitoringAPI.updateDockerContainer');expect(containerUpdateButtonStateSource).toContain('markContainerQueued');expect(containerUpdateButtonStateSource).toContain('createSignal');expect(containerUpdateButtonStateSource).toContain(diff --git a/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx b/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsxindex fbbe0f29ed..677964049b 100644--- a/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx+++ b/frontend-modern/src/components/shared/__tests__/ContainerUpdateBadge.test.tsx@@ -10,7 +10,6 @@ import {vi.mock('@/api/monitoring', () => ({MonitoringAPI: {- updateDockerContainer: vi.fn().mockResolvedValue(undefined),},}));@@ -38,7 +37,8 @@ describe('ContainerUpdateBadge', () => {expect(containerUpdateBadgeSource).not.toContain('markContainerQueued');expect(containerUpdateBadgeSource).not.toContain('createSignal');- expect(containerUpdateButtonStateSource).toContain(+ expect(containerUpdateButtonStateSource).toContain('ResourceActionsAPI.planAction');+ expect(containerUpdateButtonStateSource).not.toContain('MonitoringAPI.updateDockerContainer',);expect(containerUpdateButtonStateSource).toContain('markContainerQueued');diff --git a/frontend-modern/src/components/shared/containerUpdateBadgeModel.ts b/frontend-modern/src/components/shared/containerUpdateBadgeModel.tsindex 57f6ce5836..8e1dff7935 100644--- a/frontend-modern/src/components/shared/containerUpdateBadgeModel.ts+++ b/frontend-modern/src/components/shared/containerUpdateBadgeModel.ts@@ -15,6 +15,9 @@ export interface UpdateButtonProps {agentId: string;containerId: string;containerName: string;+ // Unified resource id used to plan the audited update action. Without it+ // the button can only report that the update action is unavailable.+ resourceId?: string;compact?: boolean;onUpdateTriggered?: () => void;externalState?: 'updating' | 'queued' | 'error';diff --git a/frontend-modern/src/components/shared/useContainerUpdateButtonState.ts b/frontend-modern/src/components/shared/useContainerUpdateButtonState.tsindex 017398e8cf..29e330d1a4 100644--- a/frontend-modern/src/components/shared/useContainerUpdateButtonState.ts+++ b/frontend-modern/src/components/shared/useContainerUpdateButtonState.ts@@ -1,5 +1,5 @@import { createEffect, createMemo, createSignal } from 'solid-js';-import { MonitoringAPI } from '@/api/monitoring';+import { ResourceActionsAPI } from '@/api/resourceActions';import {clearContainerUpdateState,getContainerUpdateState,@@ -9,6 +9,7 @@ import {updateStates,} from '@/stores/containerUpdates';import { areSystemSettingsLoaded, shouldHideDockerUpdateActions } from '@/stores/systemSettings';+import type { ActionDetailResponse } from '@/types/actionAudit';import {getUpdateButtonLabel,getUpdateButtonTooltip,@@ -19,9 +20,17 @@ import {type UpdateState,} from './containerUpdateBadgeModel';+const newUpdateRequestId = (): string =>+ typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function'+ ? crypto.randomUUID()+ : `container-update-${Date.now()}-${Math.random().toString(16).slice(2)}`;++const ACTION_TERMINAL_STATES = ['completed', 'failed', 'rejected', 'expired'];+export function useContainerUpdateButtonState(props: UpdateButtonProps) {- const [localState, setLocalState] = createSignal<'idle' | 'confirming'>('idle');+ const [localState, setLocalState] = createSignal<'idle' | 'confirming' | 'planning'>('idle');const [errorMessage, setErrorMessage] = createSignal('');+ const [reviewDetail, setReviewDetail] = createSignal<ActionDetailResponse | null>(null);const settingsLoaded = () => areSystemSettingsLoaded();const shouldHideButton = () => shouldHideDockerUpdateActions();@@ -47,7 +56,8 @@ export function useContainerUpdateButtonState(props: UpdateButtonProps) {if (props.externalState === 'updating' || props.externalState === 'queued') return 'updating';if (props.externalState === 'error') return 'error';- return localState();+ const local = localState();+ return local === 'planning' ? 'updating' : local;};createEffect(() => {@@ -76,6 +86,40 @@ export function useContainerUpdateButtonState(props: UpdateButtonProps) {});const buttonLabel = () => getUpdateButtonLabel(currentState(), settingsLoaded());+ // Updates run as audited actions: the confirming click plans an action for+ // the container's update capability and opens the review dialog, which owns+ // approval and execution. The legacy direct-update endpoint is retired.+ const planUpdateReview = async () => {+ const resourceId = (props.resourceId ?? '').trim();+ if (!resourceId) {+ const message = 'Container update action is unavailable for this row.';+ setErrorMessage(message);+ markContainerUpdateError(props.agentId, props.containerId, message);+ return;+ }+ setLocalState('planning');+ try {+ const plan = await ResourceActionsAPI.planAction({+ requestId: newUpdateRequestId(),+ resourceId,+ capabilityName: 'update',+ params: {},+ reason: `Update container ${props.containerName} to its latest image.`,+ requestedBy: 'ui:container-update',+ });+ if (!plan.allowed) {+ throw new Error(plan.message || 'Pulse refused the update plan.');+ }+ setReviewDetail(await ResourceActionsAPI.getAction(plan.actionId));+ setLocalState('idle');+ } catch (error) {+ const message = (error as Error).message || 'Failed to plan the update';+ setErrorMessage(message);+ setLocalState('idle');+ markContainerUpdateError(props.agentId, props.containerId, message);+ }+ };+const handleClick = async (event: MouseEvent) => {event.stopPropagation();event.preventDefault();@@ -89,21 +133,7 @@ export function useContainerUpdateButtonState(props: UpdateButtonProps) {}if (state === 'confirming') {- markContainerQueued(props.agentId, props.containerId);- setLocalState('idle');-- try {- await MonitoringAPI.updateDockerContainer(- props.agentId,- props.containerId,- props.containerName,- );- props.onUpdateTriggered?.();- } catch (error) {- const message = (error as Error).message || 'Failed to trigger update';- setErrorMessage(message);- markContainerUpdateError(props.agentId, props.containerId, message);- }+ await planUpdateReview();}};@@ -114,14 +144,40 @@ export function useContainerUpdateButtonState(props: UpdateButtonProps) {clearContainerUpdateState(props.agentId, props.containerId);};+ const handleReviewClosed = () => {+ setReviewDetail(null);+ };++ const handleReviewChanged = (detail: ActionDetailResponse) => {+ setReviewDetail(detail);+ const state = detail.audit.state;+ if (state === 'executing') {+ markContainerQueued(props.agentId, props.containerId);+ props.onUpdateTriggered?.();+ return;+ }+ if (!ACTION_TERMINAL_STATES.includes(state)) return;+ if (state === 'completed') {+ markContainerQueued(props.agentId, props.containerId);+ props.onUpdateTriggered?.();+ } else if (state === 'failed') {+ const message = 'The update action failed; open Actions for the audit trail.';+ setErrorMessage(message);+ markContainerUpdateError(props.agentId, props.containerId, message);+ }+ };+return {buttonLabel,buttonTooltip,currentState,handleCancel,handleClick,+ handleReviewChanged,+ handleReviewClosed,hasUpdate,isButtonDisabled,+ reviewDetail,settingsLoaded,shouldHideButton,};diff --git a/frontend-modern/src/features/docker/DockerContainersTable.tsx b/frontend-modern/src/features/docker/DockerContainersTable.tsxindex 9ab629ba6e..3c450c4e50 100644--- a/frontend-modern/src/features/docker/DockerContainersTable.tsx+++ b/frontend-modern/src/features/docker/DockerContainersTable.tsx@@ -600,6 +600,7 @@ export const DockerContainersTable: Component<DockerContainersTableProps> = (procontainerId={updateAction().containerId}containerName={updateAction().containerName}updateStatus={updateAction().updateStatus}+ resourceId={resource.id}/>)}</Show>diff --git a/frontend-modern/src/features/docker/__tests__/DockerContainersTable.sort.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerContainersTable.sort.test.tsxindex c6f2910354..6b60a1649e 100644--- a/frontend-modern/src/features/docker/__tests__/DockerContainersTable.sort.test.tsx+++ b/frontend-modern/src/features/docker/__tests__/DockerContainersTable.sort.test.tsx@@ -8,7 +8,6 @@ import { DockerContainersTable } from '../DockerContainersTable';vi.mock('@/api/monitoring', () => ({MonitoringAPI: {- updateDockerContainer: vi.fn().mockResolvedValue({ success: true }),},}));diff --git a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsxindex 5cc9f96b89..025f351b6c 100644--- a/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx+++ b/frontend-modern/src/features/docker/__tests__/DockerNativeTables.test.tsx@@ -3,7 +3,6 @@ import { Route, Router } from '@solidjs/router';import type { JSX } from 'solid-js';import { afterEach, describe, expect, it, vi } from 'vitest';-import { MonitoringAPI } from '@/api/monitoring';import { ResourceActionsAPI } from '@/api/resourceActions';import type { Resource } from '@/types/resource';import { DockerContainersTable } from '../DockerContainersTable';@@ -17,12 +16,6 @@ import { DockerSwarmNodesTable } from '../DockerSwarmNodesTable';import { DockerTasksTable } from '../DockerTasksTable';import { DockerVolumesTable } from '../DockerVolumesTable';-vi.mock('@/api/monitoring', () => ({- MonitoringAPI: {- updateDockerContainer: vi.fn().mockResolvedValue({ success: true }),- },-}));-vi.mock('@/api/resourceActions', () => ({ResourceActionsAPI: {planAction: vi.fn().mockResolvedValue({@@ -728,12 +721,17 @@ describe('Docker native tables', () => {fireEvent.click(screen.getByRole('button', { name: /click again to confirm update/i }));await waitFor(() =>- expect(MonitoringAPI.updateDockerContainer).toHaveBeenCalledWith(- 'agent-edge',- 'native-container-1',- 'edge-web',+ expect(ResourceActionsAPI.planAction).toHaveBeenCalledWith(+ expect.objectContaining({+ resourceId: 'container-1',+ capabilityName: 'update',+ requestedBy: 'ui:container-update',+ }),),);+ expect(await screen.findByRole('dialog')).toBeInTheDocument();+ expect(ResourceActionsAPI.decideAction).not.toHaveBeenCalled();+ expect(ResourceActionsAPI.executeAction).not.toHaveBeenCalled();});it('opens canonical review on the first Docker lifecycle click without auto-approving or executing', async () => {diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 94d0b238ad..9d6fb5a9d8 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -889,7 +889,7 @@ describe('frontend resource type boundaries', () => {expect(resourceDetailDrawerDockerActionsStateSource).toContain('MonitoringAPI.checkDockerUpdates',);- expect(resourceDetailDrawerDockerActionsStateSource).toContain(+ expect(resourceDetailDrawerDockerActionsStateSource).not.toContain('MonitoringAPI.updateAllDockerContainers',);expect(guestDrawerSource).toContain('useGuestDrawerState');@@ -2441,7 +2441,8 @@ describe('frontend resource type boundaries', () => {expect(containerUpdateBadgeSource).toContain('getUpdateButtonClass');expect(containerUpdateBadgeSource).not.toContain('MonitoringAPI.updateDockerContainer');expect(containerUpdateBadgeSource).not.toContain('markContainerQueued');- expect(containerUpdateButtonStateSource).toContain('MonitoringAPI.updateDockerContainer');+ expect(containerUpdateButtonStateSource).toContain('ResourceActionsAPI.planAction');+ expect(containerUpdateButtonStateSource).not.toContain('MonitoringAPI.updateDockerContainer');expect(containerUpdateButtonStateSource).toContain('markContainerQueued');expect(containerUpdateBadgeModelSource).toContain('getUpdateButtonClass');expect(containerUpdateBadgeModelSource).toContain('getUpdateButtonTooltip');