Skip to content

Commit 06541aa

Browse files
committed
fix: typo in cli name
1 parent 64cb19d commit 06541aa

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scw_serverless/gateway/serverless_gateway.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55

66
from scw_serverless.config.route import GatewayRoute
77

8+
GATEWAY_CLI = "scwgw"
9+
810

911
class ServerlessGateway:
1012
"""Manage routes on a Kong Gateway with scwgw."""
1113

1214
cli: str
1315

1416
def __init__(self) -> None:
15-
cli = shutil.which("scwgw")
17+
cli = shutil.which(GATEWAY_CLI)
1618
if not cli:
1719
click.secho(
1820
"scwgw was not found in $PATH, "

tests/integrations/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_deployed_functions_by_name(client: Client, app_instance: Serverless):
6262

6363
def get_gateway_endpoint() -> str:
6464
cmd = subprocess.run(
65-
executable="slsgw", args=["get-endpoint"], check=True, capture_output=True
65+
executable="scwgw", args=["get-endpoint"], check=True, capture_output=True
6666
)
6767
return cmd.stdout.decode().strip()
6868

@@ -84,7 +84,7 @@ def trigger_function(domain_name: str, max_retries: int = 10) -> requests.Respon
8484

8585

8686
def wait_for_body_text(
87-
domain_name: str, body: str, max_retries: int = 20
87+
domain_name: str, body: str, max_retries: int = 30
8888
) -> requests.Response:
8989
last_body = None
9090
for _ in range(max_retries):

0 commit comments

Comments
 (0)