]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerStephan Müller <smueller@suse.com>
Tue, 2 Jun 2020 08:38:05 +0000 (10:38 +0200)
commitcf40097b794febebe53b5f32d1fdcef8e03a52e8
tree8b5e63fa6c0f0f8307fc19f8e324d32d7be3abcd
parent22304ce3aaffff14ac5088916a9204decd83a5be
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>
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