]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Allow test selection overwrite
authorStephan Müller <smueller@suse.com>
Mon, 4 Feb 2019 14:31:25 +0000 (15:31 +0100)
committerStephan Müller <smueller@suse.com>
Thu, 4 Jul 2019 14:19:26 +0000 (16:19 +0200)
commitb20e9c8db813c8b9dee76c525936cb0b0697b25a
tree3cec380954357108dceee3bad76b4357e96ec9f8
parent5243190dfb066b63fa8d2306ba9253408cdaf471
mgr/dashboard: Allow test selection overwrite

Currently it's not easily possible to mock a selection during table
action tests, that's why I added a method that is used to create the
selection that is used through out the table action scenario tests.
You can simply overwrite it to get a different base object as selection.

Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/testing/unit-test-helper.ts