Skip to content

Commit

Permalink
add test to smoke_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiGlobus committed Nov 28, 2023
1 parent 761ac94 commit d55486d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions smoke_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ prod:
tox
dev:
tox -e localdeps -- --compute-config dev
test:
tox -e localdeps -- --compute-config test
local_with_dev_sdk:
@if [ -z "${COMPUTE_LOCAL_ENDPOINT_ID}" ]; then echo "Missing exported COMPUTE_LOCAL_ENDPOINT_ID"; exit 1; fi
tox -e localdeps -- --compute-config local
Expand Down
10 changes: 10 additions & 0 deletions smoke_tests/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
_LOCAL_FUNCTION_ID = os.getenv("COMPUTE_LOCAL_KNOWN_FUNCTION_ID")

_CONFIGS = {
"test": {
"client_args": {"environment": "test"},
# assert versions are as expected on dev
"forwarder_min_version": "0.3.5",
"api_min_version": "0.3.5",
# This fn is public
"public_hello_fn_uuid": "a63186e0-b036-4934-8063-8f2305f76cd9",
# Lei local EP for test env
"endpoint_uuid": "44d93cf7-506d-491b-bcaa-6d043ecdcb81",
},
"dev": {
"client_args": {"environment": "dev"},
# assert versions are as expected on dev
Expand Down
1 change: 1 addition & 0 deletions smoke_tests/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ passenv =
COMPUTE_LOCAL_KNOWN_FUNCTION_ID
FUNCX_SMOKE_CLIENT_ID
FUNCX_SMOKE_CLIENT_SECRET
GLOBUS_SDK_ENVIRONMENT
# don't try to install a package
skip_install = true
deps =
Expand Down

0 comments on commit d55486d

Please sign in to comment.