Skip to content

Commit 057fef5

Browse files
committed
updates
1 parent 1c2f080 commit 057fef5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ test-onprem: build
2525
docker run -it -v ${PWD}:/usr/src -w /usr/src \
2626
-e LABELBOX_TEST_ENVIRON="onprem" \
2727
-e LABELBOX_TEST_API_KEY_ONPREM=${LABELBOX_TEST_API_KEY_ONPREM} \
28+
-e LABELBOX_TEST_ONPREM_INSTANCE=${LABELBOX_TEST_ONPREM_INSTANCE} \
2829
local/labelbox-python:test pytest $(PATH_TO_TEST) -svvx

tests/integration/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ def graphql_url(environ: str) -> str:
4848
elif environ == Environ.STAGING:
4949
return 'https://staging-api.labelbox.com/graphql'
5050
elif environ == Environ.ONPREM:
51-
instance_id = "replicated-1c0e609"
52-
return f"https://app.{instance_id}.labelbox.dev/api/_gql"
51+
instance_id = os.environ.get('LABELBOX_TEST_ONPREM_INSTANCE', None)
52+
if instance_id is None:
53+
raise Exception(f"Missing LABELBOX_TEST_ONPREM_INSTANCE")
54+
return f"https://app.replicated-{instance_id}.labelbox.dev/api/_gql"
5355
return 'http://host.docker.internal:8080/graphql'
5456

5557

0 commit comments

Comments
 (0)