File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments