This is an automated email from the ASF dual-hosted git repository.
adutra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new cfd11297 Fix local test env (#725)
cfd11297 is described below
commit cfd112973da5ab6b6a02a77bcda33f2ea207afe5
Author: MonkeyCanCode <[email protected]>
AuthorDate: Tue Jan 14 05:10:00 2025 -0600
Fix local test env (#725)
---
regtests/run.sh | 2 +-
regtests/t_cli/src/test_cli.py | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/regtests/run.sh b/regtests/run.sh
index 679dc2cb..f91b2dcf 100755
--- a/regtests/run.sh
+++ b/regtests/run.sh
@@ -74,7 +74,7 @@ for TEST_FILE in ${TEST_LIST}; do
continue
fi
loginfo "Starting pytest ${TEST_SUITE}:${TEST_SHORTNAME}"
- python3 -m pytest $TESTFILE
+ python3 -m pytest $TEST_FILE
CODE=$?
if [[ $CODE -ne 0 ]]; then
logred "Test FAILED: ${TEST_SUITE}:${TEST_SHORTNAME}"
diff --git a/regtests/t_cli/src/test_cli.py b/regtests/t_cli/src/test_cli.py
index 5986396f..c9af207d 100644
--- a/regtests/t_cli/src/test_cli.py
+++ b/regtests/t_cli/src/test_cli.py
@@ -29,7 +29,7 @@ from typing import Callable
CLI_PYTHONPATH =
f'{os.path.dirname(os.path.abspath(__file__))}/../../client/python'
ROLE_ARN = 'arn:aws:iam::123456789012:role/my-role'
-POLARIS_HOST = os.getenv('POLARIS_HOST') or 'polaris'
+POLARIS_HOST = os.getenv('POLARIS_HOST', 'localhost')
POLARIS_URL = f'http://{POLARIS_HOST}:8181/api/catalog/v1/oauth/tokens'
def get_salt(length=8) -> str:
@@ -379,7 +379,7 @@ def test_update_catalog():
def test_update_principal():
"""
- Test updating properties on a principal
+ Test updating properties on a principal
"""
SALT = get_salt()
sys.path.insert(0, CLI_PYTHONPATH)
@@ -450,7 +450,7 @@ def test_update_principal():
def test_update_principal_role():
"""
- Test updating properties on a principal_role
+ Test updating properties on a principal_role
"""
SALT = get_salt()
sys.path.insert(0, CLI_PYTHONPATH)
@@ -521,7 +521,7 @@ def test_update_principal_role():
def test_update_catalog_role():
"""
- Test updating properties on a catalog_role
+ Test updating properties on a catalog_role
"""
SALT = get_salt()
sys.path.insert(0, CLI_PYTHONPATH)