Skip to content

Commit b483d7f

Browse files
committed
Merge branch 'improvement/replace-global-health-bar' into tmp/octopus/w/132.0/improvement/replace-global-health-bar
2 parents 2542744 + 74a9faf commit b483d7f

File tree

1 file changed

+1
-79
lines changed

1 file changed

+1
-79
lines changed

ui/src/services/utils.test.ts

Lines changed: 1 addition & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NAN_STRING } from '@scality/core-ui/dist/components/constants';
2-
import { STATUS_CRITICAL, STATUS_HEALTH, STATUS_WARNING } from '../constants';
2+
import { STATUS_CRITICAL, STATUS_WARNING } from '../constants';
33
import {
44
allSizeUnitsToBytes,
55
fromMilliSectoAge,
@@ -255,84 +255,6 @@ describe('getSegments', () => {
255255
},
256256
],
257257
},
258-
{
259-
name: 'Healthy and NaN overlapping',
260-
pointsWatchdog: [
261-
[1, '1'],
262-
[2, '1'],
263-
[3, '1'],
264-
[4, '1'],
265-
[5, NAN_STRING],
266-
[6, '1'],
267-
],
268-
pointsDegraded: [
269-
[1, NAN_STRING],
270-
[2, NAN_STRING],
271-
[3, NAN_STRING],
272-
[4, NAN_STRING],
273-
[5, NAN_STRING],
274-
[6, NAN_STRING],
275-
],
276-
pointsAtRisk: [
277-
[1, NAN_STRING],
278-
[2, NAN_STRING],
279-
[3, NAN_STRING],
280-
[4, NAN_STRING],
281-
[5, NAN_STRING],
282-
[6, NAN_STRING],
283-
],
284-
expected: [
285-
{
286-
startsAt: 1,
287-
endsAt: 5,
288-
type: STATUS_HEALTH,
289-
},
290-
{
291-
startsAt: 5,
292-
endsAt: 6,
293-
type: NAN_STRING,
294-
},
295-
{
296-
startsAt: 6,
297-
endsAt: null,
298-
type: STATUS_HEALTH,
299-
},
300-
],
301-
},
302-
{
303-
name: 'Healthy',
304-
pointsWatchdog: [
305-
[1, '1'],
306-
[2, '1'],
307-
[3, '1'],
308-
[4, '1'],
309-
[5, '1'],
310-
[6, '1'],
311-
],
312-
pointsDegraded: [
313-
[1, NAN_STRING],
314-
[2, NAN_STRING],
315-
[3, NAN_STRING],
316-
[4, NAN_STRING],
317-
[5, NAN_STRING],
318-
[6, NAN_STRING],
319-
],
320-
pointsAtRisk: [
321-
[1, NAN_STRING],
322-
[2, NAN_STRING],
323-
[3, NAN_STRING],
324-
[4, NAN_STRING],
325-
[5, NAN_STRING],
326-
[6, NAN_STRING],
327-
],
328-
expected: [
329-
{
330-
startsAt: 1,
331-
endsAt: null,
332-
type: STATUS_HEALTH,
333-
},
334-
],
335-
},
336258
{
337259
name: 'In danger',
338260
pointsWatchdog: [

0 commit comments

Comments
 (0)