1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #5819: add tests numa (#2103)

This commit is contained in:
Jorge Miguel Lobo Escalona 2022-05-30 17:26:55 +02:00 committed by GitHub
parent 5383d0dfa7
commit 4448ec99e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 8 deletions

View File

@ -45,7 +45,13 @@ const NumaCoreCPU = ({ core, cpus }) => (
<Typography gutterBottom variant="body2" component="div" align="center">
<Translate word={T.NumaNodeCPUItem} values={core} />
</Typography>
<Typography gutterBottom variant="body2" component="div" align="center">
<Typography
gutterBottom
variant="body2"
component="div"
align="center"
data-cy={`cpu-${core}`}
>
{CPU_STATUS[cpus[core]]}
</Typography>
</Box>

View File

@ -33,7 +33,15 @@ const NumaCore = ({ core }) => {
)
return (
<Grid item xs={12} sm={6} md={3} display="flex" justifyContent="center">
<Grid
item
xs={12}
sm={6}
md={3}
display="flex"
justifyContent="center"
data-cy={`numa-core-${core.ID}`}
>
<Box width="200px">
<Typography gutterBottom variant="body1" component="div" align="center">
<Translate word={T.NumaCore} values={core.ID} />

View File

@ -55,11 +55,24 @@ const NumaHugepage = ({ hugepage }) => {
</ListItem>
{hugepage.length > 0 &&
hugepage.map(({ FREE, PAGES, SIZE, USAGE }, index) => (
<ListItem key={index} className={classes.item} dense>
<Typography noWrap>{prettyBytes(SIZE)}</Typography>
<Typography noWrap>{FREE}</Typography>
<Typography noWrap>{PAGES}</Typography>
<Typography noWrap>{USAGE}</Typography>
<ListItem
key={index}
className={classes.item}
dense
data-cy={`hugepage-${index}`}
>
<Typography data-cy="size" noWrap>
{prettyBytes(SIZE)}
</Typography>
<Typography data-cy="free" noWrap>
{FREE}
</Typography>
<Typography data-cy="pages" noWrap>
{PAGES}
</Typography>
<Typography data-cy="usage" noWrap>
{USAGE}
</Typography>
</ListItem>
))}
</List>

View File

@ -37,7 +37,7 @@ const NumaMemory = ({ node }) => {
<Typography gutterBottom variant="subtitle1" component="h3">
<Translate word={T.NumaNodeMemory} />
</Typography>
<Paper variant="outlined" sx={{ p: '1.25rem' }}>
<Paper variant="outlined" sx={{ p: '1.25rem' }} data-cy="memory">
<LinearProgressWithLabel
value={percentMemUsed}
label={percentMemLabel}