]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard_v2: removed mock classes, unit tests now run against real cluster
authorRicardo Dias <rdias@suse.com>
Thu, 8 Feb 2018 08:24:01 +0000 (08:24 +0000)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:07 +0000 (13:07 +0000)
commite59c7c11c873f38fa86220becb75517351b37fa2
tree411213bfd6919fb4f7409f5629cbcc133897bf50
parente71c6d837dad80258e19b782ae5c472b4aff364a
mgr/dashboard_v2: removed mock classes, unit tests now run against real cluster

We changed tox.ini to run a vstart.sh cluster and run the unit tests
against that cluster. All unit tests code was adapted to make requests
to the real dashboard_v2 backend using the `requests` python library

Signed-off-by: Ricardo Dias <rdias@suse.com>
17 files changed:
src/pybind/mgr/dashboard_v2/.gitignore
src/pybind/mgr/dashboard_v2/__init__.py
src/pybind/mgr/dashboard_v2/cephmock/__init__.py [deleted file]
src/pybind/mgr/dashboard_v2/cephmock/ceph_module_mock.py [deleted file]
src/pybind/mgr/dashboard_v2/cephmock/rados_mock.py [deleted file]
src/pybind/mgr/dashboard_v2/cephmock/rbd_mock.py [deleted file]
src/pybind/mgr/dashboard_v2/controllers/ping.py [deleted file]
src/pybind/mgr/dashboard_v2/module.py
src/pybind/mgr/dashboard_v2/requirements.txt
src/pybind/mgr/dashboard_v2/tests/helper.py
src/pybind/mgr/dashboard_v2/tests/test_auth.py
src/pybind/mgr/dashboard_v2/tests/test_host.py [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/tests/test_module.py [deleted file]
src/pybind/mgr/dashboard_v2/tests/test_ping.py [deleted file]
src/pybind/mgr/dashboard_v2/tests/test_rgw.py
src/pybind/mgr/dashboard_v2/tests/test_tools.py
src/pybind/mgr/dashboard_v2/tox.ini