From 2cc6ad77ce509aacc793f5ee00d158596c61fcfa Mon Sep 17 00:00:00 2001 From: EMaksy Date: Fri, 1 Mar 2024 11:20:56 +0100 Subject: [PATCH] Add unmanaged resource node story --- .../HanaClusterDetails.stories.jsx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/assets/js/pages/ClusterDetails/HanaClusterDetails.stories.jsx b/assets/js/pages/ClusterDetails/HanaClusterDetails.stories.jsx index 7fd835afa4..afd83a2ef7 100644 --- a/assets/js/pages/ClusterDetails/HanaClusterDetails.stories.jsx +++ b/assets/js/pages/ClusterDetails/HanaClusterDetails.stories.jsx @@ -11,6 +11,7 @@ import { checksExecutionRunningFactory, sapSystemFactory, catalogFactory, + clusterResourceFactory, } from '@lib/test-utils/factories'; import HanaClusterDetails from './HanaClusterDetails'; @@ -70,6 +71,20 @@ const scaleOutDetailsNodeStatus = { ], }; +const unmanagedNodeResources = { + ...scaleOutDetails, + nodes: [ + hanaClusterDetailsNodesFactory.build({ + site: scaleOutSites[0].name, + resources: clusterResourceFactory.buildList(2, { managed: false }), + }), + hanaClusterDetailsNodesFactory.build({ + site: scaleOutSites[1].name, + resources: clusterResourceFactory.buildList(2, { managed: false }), + }), + ], +}; + const lastExecution = { data: checksExecutionCompletedFactory.build({ result: 'passing', @@ -177,3 +192,10 @@ export const WithRunningExecution = { lastExecution: { data: checksExecutionRunningFactory.build() }, }, }; + +export const WithUnmanagedResources = { + args: { + ...HanaScaleOut.args, + details: unmanagedNodeResources, + }, +};