]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: add unit test for telemetry replacer method
authorLaura Flores <lflores@redhat.com>
Wed, 22 Sep 2021 17:55:40 +0000 (17:55 +0000)
committerLaura Flores <lflores@redhat.com>
Wed, 22 Sep 2021 18:49:57 +0000 (18:49 +0000)
commit484126b98836e563144e6908809b61697f0f2286
tree9b42811e8060510e5795ad7da13bd62333287b1e
parent710307e4e932ebdbcaa673bce1c5892d041b2f42
mgr/dashboard: add unit test for telemetry replacer method

This unit test checks that the "replacer" method in telemetry.component.ts works as it should. The replacer method takes the telemetry report and changes the ranges and values of the 'osd_perf_histograms' field from arrays to strings, thereby making the report more readable in the Dashboard Telemetry Preview.

This unit test needs improvement since it currently uses a test report rather than the real one.

Signed-off-by: Laura Flores <lflores@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/telemetry/telemetry.component.ts