]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: RbdMirroringService test suite fails in dev mode
authorStephan Müller <smueller@suse.com>
Wed, 9 Jan 2019 12:49:14 +0000 (13:49 +0100)
committerStephan Müller <smueller@suse.com>
Thu, 10 Jan 2019 14:31:51 +0000 (15:31 +0100)
commit5f977920a6147aefd78caf1535f8cda9ca5df49b
tree3cd8d8617ad56f1277a8ada5b6ac837b60174cb7
parent97f1c053fb3e2fd6ba1f61122ad4ba6ef133be5f
mgr/dashboard: RbdMirroringService test suite fails in dev mode

If you have set DEV in unit-test-configuration.ts to true, in order to
run all unit tests much faster, the unit test suite of rbd mirroring
service fails.

The reason is, that it's expecting a call, that is triggered inside the
constructor, which is only done once in for the copy used in the fast
testing mode (if it would be done on within ngOnInit this wouldn't be a
problem).

Fixes: http://tracker.ceph.com/issues/37841
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rbd-mirroring.service.spec.ts