Skip to content

Commit

Permalink
Fixed deploy command and unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Sep 3, 2024
1 parent b883650 commit e9a3bbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion exasol/slc/tool/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def deploy(
for release, deploy_result in lang_def_builds_per_release.items():
print(
f"""
Uploaded release='{release}' located at {deploy_result.release_path} to {deploy_result.upload_url}
Uploaded release='{release}' located at {deploy_result.release_path} to {deploy_result.human_readable_upload_location}
In SQL, you can activate the languages supported by the {flavor_name}
flavor by using the following statements:
Expand Down
10 changes: 6 additions & 4 deletions test/unit/cli/test_deploy.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import tempfile
from test.unit.cli import CliRunner
from unittest.mock import MagicMock, patch
from unittest.mock import patch

import exasol.bucketfs as bfs # type: ignore
import pytest

from exasol.slc.models.deploy_result import DeployResult
from exasol.slc.models.language_definition_components import (
BuiltInLanguageDefinitionURL,
LanguageDefinitionComponents,
LanguageDefinitionURL,
SLCLanguage,
)
from exasol.slc.models.language_definitions_builder import LanguageDefinitionsBuilder
Expand Down Expand Up @@ -49,7 +49,8 @@ def test_deploy_minimum_parameters(cli):
TEST_DUMMY_FLAVOR: {
TEST_DUMMY_FLAVOR: DeployResult(
release_path=TEST_RELEASE_PATH,
upload_url=TEST_UPLOAD_URL,
human_readable_upload_location=TEST_UPLOAD_URL,
bucket_path=None,
language_definition_builder=TEST_LANG_DEF_BUILDER,
)
}
Expand Down Expand Up @@ -123,7 +124,8 @@ def test_deploy_password_in_env(cli):
TEST_DUMMY_FLAVOR: {
TEST_DUMMY_FLAVOR: DeployResult(
release_path=TEST_RELEASE_PATH,
upload_url=TEST_UPLOAD_URL,
human_readable_upload_location=TEST_UPLOAD_URL,
bucket_path=None,
language_definition_builder=TEST_LANG_DEF_BUILDER,
)
}
Expand Down

0 comments on commit e9a3bbe

Please sign in to comment.