Skip to content

Commit

Permalink
Add saptune summary box stories
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Sep 7, 2023
1 parent 3f9c248 commit d2b73f3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions assets/js/components/HostDetails/HostDetails.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export default {
type: { summary: 'string' },
},
},
ipAddresses: {
control: { type: 'array' },
description: 'IP addresses',
},
provider: {
control: 'string',
description: 'The discovered CSP where the host is running',
Expand Down Expand Up @@ -151,10 +155,16 @@ export const Default = {
heartbeat: host.heartbeat,
hostID: host.id,
hostname: host.hostname,
ipAddresses: host.ip_addresses,
provider: host.provider,
providerData: host.provider_data,
sapInstances,
savingChecks: false,
saptuneStatus: {
package_version: '3.1.0',
configured_version: '3',
tuning_state: 'no tuning',
},
selectedChecks: [],
slesSubscriptions: host.sles_subscriptions,
},
Expand All @@ -180,3 +190,25 @@ export const ChecksSelected = {
selectedChecks: ['some-check'],
},
};

export const SaptuneNotInstalled = {
args: {
...Default.args,
saptuneStatus: {
package_version: null,
configured_version: null,
tuning_state: null,
},
},
};

export const SaptuneOldVersion = {
args: {
...Default.args,
saptuneStatus: {
package_version: '3.0.0',
configured_version: null,
tuning_state: null,
},
},
};

0 comments on commit d2b73f3

Please sign in to comment.