Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
7f5c2c67
Commit
7f5c2c67
authored
4 years ago
by
Tim Gross
Browse files
Options
Download
Email Patches
Plain Diff
fixup test
parent
c6004e5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/tests/acceptance/volumes-list-test.js
+7
-5
ui/tests/acceptance/volumes-list-test.js
with
7 additions
and
5 deletions
+7
-5
ui/tests/acceptance/volumes-list-test.js
+
7
-
5
View file @
7f5c2c67
...
...
@@ -69,15 +69,17 @@ module('Acceptance | volumes list', function(hooks) {
const
volumeRow
=
VolumesList
.
volumes
.
objectAt
(
0
);
const
controllerHealthStr
=
volume
.
controllersHealthy
>
0
?
'
Healthy
'
:
'
Unhealthy
'
;
const
controllerHealthStr
=
volume
.
controllersHealthy
>
0
?
`Healthy (
${
volume
.
controllersHealthy
}
/
${
volume
.
controllersExpected
}
)`
:
volume
.
controllerRequired
?
'
Unhealthy (${volume.controllersHealthy}/${volume.controllersExpected})
'
:
'
Node Only
'
;
const
nodeHealthStr
=
volume
.
nodesHealthy
>
0
?
'
Healthy
'
:
'
Unhealthy
'
;
assert
.
equal
(
volumeRow
.
name
,
volume
.
id
);
assert
.
equal
(
volumeRow
.
schedulable
,
volume
.
schedulable
?
'
Schedulable
'
:
'
Unschedulable
'
);
assert
.
equal
(
volumeRow
.
controllerHealth
,
`
${
controllerHealthStr
}
(
${
volume
.
controllersHealthy
}
/
${
volume
.
controllersExpected
}
)`
);
assert
.
equal
(
volumeRow
.
controllerHealth
,
`
${
controllerHealthStr
}
`
);
assert
.
equal
(
volumeRow
.
nodeHealth
,
`
${
nodeHealthStr
}
(
${
volume
.
nodesHealthy
}
/
${
volume
.
nodesExpected
}
)`
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help