Commit 7f5c2c67 authored by Tim Gross's avatar Tim Gross
Browse files

fixup test

parent c6004e5d
Showing with 7 additions and 5 deletions
+7 -5
......@@ -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})`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment