]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: refactor test of Prometheus alert service
authorPatrick Seidensal <pseidensal@suse.com>
Wed, 27 Nov 2019 08:14:13 +0000 (09:14 +0100)
committerPatrick Seidensal <pseidensal@suse.com>
Tue, 3 Dec 2019 15:54:24 +0000 (16:54 +0100)
commitb85b24b2d085fd775298625b546b9fd5abe4d741
tree820c4ba06d8c0e05b65a842240bf8507477ad8e7
parent2a50e277d4ae764aa50f9b726f79c84f335ef15a
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>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.spec.ts