@@ -142,8 +142,8 @@ def _create_client(handler_class) -> Iterable[Client]:
142142 thread = Thread (target = server .serve_forever )
143143 thread .start ()
144144
145- base_path = f"http://localhost:{ server .server_port } "
146- config = Config (base_path = base_path , token = "foo" )
145+ url = f"http://localhost:{ server .server_port } "
146+ config = Config (url = url , token = "foo" )
147147 try :
148148 yield Client (config )
149149 finally :
@@ -164,7 +164,7 @@ class _CreateConnectorLogsHandler(BaseHTTPRequestHandler):
164164 protocol_version = "HTTP/1.1"
165165
166166 def do_POST (self ) -> None :
167- if self .path != "/custom-connector-logs" :
167+ if self .path != "/api/ custom-connector-logs" :
168168 self .send_error (HTTPStatus .NOT_FOUND )
169169 return
170170
@@ -211,7 +211,7 @@ class _GetDomainGraphSchemaHandler(BaseHTTPRequestHandler):
211211 protocol_version = "HTTP/1.1"
212212
213213 def do_GET (self ) -> None :
214- if self .path != "/domain-graph-schema" :
214+ if self .path != "/api/ domain-graph-schema" :
215215 self .send_error (HTTPStatus .NOT_FOUND )
216216 return
217217
@@ -261,7 +261,7 @@ class _ReloadDomainGraphHandler(BaseHTTPRequestHandler):
261261 protocol_version = "HTTP/1.1"
262262
263263 def do_POST (self ) -> None :
264- if self .path != "/custom-connector-domain-graphs" :
264+ if self .path != "/api/ custom-connector-domain-graphs" :
265265 self .send_error (HTTPStatus .NOT_FOUND )
266266 return
267267
0 commit comments