Skip to content

Commit cfd1129

Browse files
Fix local test env (#725)
1 parent d73ebd6 commit cfd1129

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

regtests/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ for TEST_FILE in ${TEST_LIST}; do
7474
continue
7575
fi
7676
loginfo "Starting pytest ${TEST_SUITE}:${TEST_SHORTNAME}"
77-
python3 -m pytest $TESTFILE
77+
python3 -m pytest $TEST_FILE
7878
CODE=$?
7979
if [[ $CODE -ne 0 ]]; then
8080
logred "Test FAILED: ${TEST_SUITE}:${TEST_SHORTNAME}"

regtests/t_cli/src/test_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
CLI_PYTHONPATH = f'{os.path.dirname(os.path.abspath(__file__))}/../../client/python'
3131
ROLE_ARN = 'arn:aws:iam::123456789012:role/my-role'
32-
POLARIS_HOST = os.getenv('POLARIS_HOST') or 'polaris'
32+
POLARIS_HOST = os.getenv('POLARIS_HOST', 'localhost')
3333
POLARIS_URL = f'http://{POLARIS_HOST}:8181/api/catalog/v1/oauth/tokens'
3434

3535
def get_salt(length=8) -> str:
@@ -379,7 +379,7 @@ def test_update_catalog():
379379

380380
def test_update_principal():
381381
"""
382-
Test updating properties on a principal
382+
Test updating properties on a principal
383383
"""
384384
SALT = get_salt()
385385
sys.path.insert(0, CLI_PYTHONPATH)
@@ -450,7 +450,7 @@ def test_update_principal():
450450

451451
def test_update_principal_role():
452452
"""
453-
Test updating properties on a principal_role
453+
Test updating properties on a principal_role
454454
"""
455455
SALT = get_salt()
456456
sys.path.insert(0, CLI_PYTHONPATH)
@@ -521,7 +521,7 @@ def test_update_principal_role():
521521

522522
def test_update_catalog_role():
523523
"""
524-
Test updating properties on a catalog_role
524+
Test updating properties on a catalog_role
525525
"""
526526
SALT = get_salt()
527527
sys.path.insert(0, CLI_PYTHONPATH)

0 commit comments

Comments
 (0)