Skip to content

Commit

Permalink
Add unmanaged resource node story
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Mar 1, 2024
1 parent 1700dff commit 2cc6ad7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions assets/js/pages/ClusterDetails/HanaClusterDetails.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
checksExecutionRunningFactory,
sapSystemFactory,
catalogFactory,
clusterResourceFactory,
} from '@lib/test-utils/factories';

import HanaClusterDetails from './HanaClusterDetails';
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -177,3 +192,10 @@ export const WithRunningExecution = {
lastExecution: { data: checksExecutionRunningFactory.build() },
},
};

export const WithUnmanagedResources = {
args: {
...HanaScaleOut.args,
details: unmanagedNodeResources,
},
};

0 comments on commit 2cc6ad7

Please sign in to comment.