X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Ftests%2Fdevices%2Fsimple%2Ftest_activate.py;fp=src%2Fceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Ftests%2Fdevices%2Fsimple%2Ftest_activate.py;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=bae3276a9b7689668e6b8734b9e0a0902e87ea1a;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py b/src/ceph/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py deleted file mode 100644 index bae3276..0000000 --- a/src/ceph/src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py +++ /dev/null @@ -1,23 +0,0 @@ -import os -import pytest -from ceph_volume.devices.simple import activate - - -class TestActivate(object): - - def test_no_data_uuid(self, factory, tmpfile, is_root, monkeypatch, capture): - json_config = tmpfile(contents='{}') - args = factory(osd_id='0', osd_fsid='1234', json_config=json_config) - with pytest.raises(RuntimeError): - activate.Activate([]).activate(args) - - def test_invalid_json_path(self): - os.environ['CEPH_VOLUME_SIMPLE_JSON_DIR'] = '/non/existing/path' - with pytest.raises(RuntimeError) as error: - activate.Activate(['1', 'asdf']).main() - assert 'RuntimeError: Expected JSON config path not found' in str(error) - - def test_main_spits_help_with_no_arguments(self, capsys): - activate.Activate([]).main() - stdout, stderr = capsys.readouterr() - assert 'Activate OSDs by mounting devices previously configured' in stdout