Skip to content

Commit 21179c5

Browse files
committed
fix: filter out url from output
1 parent 14b8661 commit 21179c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integrations/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import re
23
import shutil
34
import subprocess
45
import time
@@ -66,7 +67,11 @@ def get_gateway_endpoint() -> str:
6667
check=True,
6768
capture_output=True,
6869
)
69-
return cmd.stdout.decode().strip()
70+
output = cmd.stdout.decode().strip()
71+
match = re.search(r"(.*.functions.fnc.fr-par.scw.cloud)", output)
72+
assert match, f"Could not find gateway endpoint in output: {output}"
73+
74+
return match.group(1)
7075

7176

7277
def trigger_function(domain_name: str, max_retries: int = 10) -> requests.Response:

0 commit comments

Comments
 (0)