]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: refactor test of Prometheus alert service
authorVolker Theile <vtheile@suse.com>
Thu, 2 Apr 2020 08:50:09 +0000 (10:50 +0200)
committerVolker Theile <vtheile@suse.com>
Thu, 2 Apr 2020 11:18:50 +0000 (13:18 +0200)
commit28a3dc3368eeff91cebb01c95280998e84b9f0af
tree36850f10e173ae65e614174f89e1f785546d5bdd
parente9d25c7f2daa927ebbda447a7ef545db1bd118e7
mgr/dashboard: refactor test of Prometheus alert service

Mocking the test the way it was removed the asynchronous nature of the
test. By using an Observable the test can stay asynchronous and be
tested as well.

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
(cherry picked from commit b85b24b2d085fd775298625b546b9fd5abe4d741)
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.spec.ts