Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K-82: General refactor and CLI unit tests #90

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.3
1.1.4
2 changes: 2 additions & 0 deletions cli/kaos_cli/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,5 @@
CONTEXTS = 'contexts'
ACTIVE = 'active'
REMOTE = 'remote'

TEST_CONFIG_PATH = os.path.join(KAOS_HOME, 'kaos_cli', 'facades', 'tests', 'fixtures', 'config')
2 changes: 0 additions & 2 deletions cli/kaos_cli/facades/backend_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from kaos_cli.utils.environment import check_environment
from kaos_cli.utils.helpers import build_dir
from kaos_cli.utils.validators import EnvironmentState
from kaos_cli.exceptions.handle_exceptions import handle_specific_exception, handle_exception


def is_cloud_provider(cloud):
Expand Down Expand Up @@ -199,7 +198,6 @@ def _remove_build_files(self, dir_build):
"""
Function to remove backend directory
"""
self.state_service.provider_delete(dir_build)
if not self.state_service.list_providers():
self.state_service.full_delete(dir_build)

Expand Down
Loading