]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Provide shareable mocks in unit test helper
authorStephan Müller <smueller@suse.com>
Wed, 6 May 2020 08:08:41 +0000 (10:08 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 3 Jul 2020 15:45:26 +0000 (17:45 +0200)
commit4835c191a047343b36ebe51e444514e19b03336a
tree82d69370666ff69a01250052ce8ee5a31ca7d7a4
parent5a3693ca1e7148b0365557740d6f70f3db8cd0e8
mgr/dashboard: Provide shareable mocks in unit test helper

Provides a view first mocks:

* Crush map (static and dynamic)
* Crush node
* Crush rule
* Crush rule config

Fixes: https://tracker.ceph.com/issues/44620
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit cf40097b794febebe53b5f32d1fdcef8e03a52e8)
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/crush-rule-form-modal/crush-rule-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/erasure-code-profile-form/erasure-code-profile-form-modal.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/classes/crush.node.selection.class.spec.ts
src/pybind/mgr/dashboard/frontend/src/testing/unit-test-helper.ts