wire up the GRAPL_API_HOST in the e2e-test-runner
+from infra.api import Api
from typing import Optional
import pulumi_aws as aws
@@ -5,7 +6,6 @@ from infra.config import (
DEPLOYMENT_NAME,
GLOBAL_LAMBDA_ZIP_TAG,
GRAPL_TEST_USER_NAME,
- LOCAL_GRAPL,
)
from infra.dgraph_cluster import DgraphCluster
from infra.network import Network
@@ -18,6 +18,7 @@ class E2eTestRunner(pulumi.ComponentResource):
self,
network: Network,
dgraph_cluster: DgraphCluster,
+ api: Api,
opts: Optional[pulumi.ResourceOptions] = None,
) -> None:
name = "e2e-test-runner"
@@ -45,7 +46,7 @@ class E2eTestRunner(pulumi.ComponentResource):
"DEPLOYMENT_NAME": DEPLOYMENT_NAME,
"GRAPL_TEST_USER_NAME": GRAPL_TEST_USER_NAME,
"MG_ALPHAS": dgraph_cluster.alpha_host_port,
- "GRAPL_API_HOST": "FIXME" if not LOCAL_GRAPL else "api.grapl.test",
+ "GRAPL_API_HOST": api.invoke_url,
},
memory_size=128,
timeout=600,
