diff --git a/octane/tests/test_backup.py b/octane/tests/test_backup.py index ddb364fb..8db06590 100644 --- a/octane/tests/test_backup.py +++ b/octane/tests/test_backup.py @@ -18,7 +18,7 @@ from octane.commands import backup def test_parser_empty(mocker, octane_app): m1 = mocker.patch('octane.commands.backup.backup_admin_node') m1.return_value = 2 - octane_app.run(["backup"]) + octane_app.run(["fuel-backup"]) assert not octane_app.stdout.getvalue() assert not octane_app.stderr.getvalue() m1.assert_called_once_with(None) @@ -27,7 +27,7 @@ def test_parser_empty(mocker, octane_app): def test_parser_not_empty(mocker, octane_app): m1 = mocker.patch('octane.commands.backup.backup_admin_node') m1.return_value = 2 - octane_app.run(["backup", "--to", "backup_file"]) + octane_app.run(["fuel-backup", "--to", "backup_file"]) assert not octane_app.stdout.getvalue() assert not octane_app.stderr.getvalue() m1.assert_called_once_with("backup_file") diff --git a/octane/tests/test_restore.py b/octane/tests/test_restore.py index ecff1227..f48af18b 100644 --- a/octane/tests/test_restore.py +++ b/octane/tests/test_restore.py @@ -26,7 +26,7 @@ def test_parser(mocker, octane_app, params, call_params, is_file): restore_mock = mocker.patch('octane.commands.restore.restore_admin_node') mocker.patch("os.path.isfile", return_value=is_file) try: - octane_app.run(["restore"] + params) + octane_app.run(["fuel-restore"] + params) except Exception: assert not restore_mock.called assert call_params is None diff --git a/setup.cfg b/setup.cfg index 33a2b62a..1c74c02e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -48,8 +48,8 @@ octane = sync-images = octane.commands.sync_images:SyncImagesCommand sync-images-prepare = octane.commands.sync_images:SyncImagesPrepareCommand update-plugin-settings = octane.commands.update_plugin_settings:UpdatePluginSettingsCommand [zabbix] - backup = octane.commands.backup:BackupCommand - restore = octane.commands.restore:RestoreCommand + fuel-backup = octane.commands.backup:BackupCommand + fuel-restore = octane.commands.restore:RestoreCommand octane.handlers.upgrade = controller = octane.handlers.upgrade.controller:ControllerUpgrade compute = octane.handlers.upgrade.compute:ComputeUpgrade