From 60ed8f0869d6db61442f7835fc1174ddd874acd5 Mon Sep 17 00:00:00 2001 From: mike dupont Date: Sat, 14 Dec 2024 11:22:34 -0500 Subject: [PATCH] now testing --- api/test_endpoints.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/test_endpoints.py b/api/test_endpoints.py index cfae9d71..1678fced 100644 --- a/api/test_endpoints.py +++ b/api/test_endpoints.py @@ -21,10 +21,12 @@ def main(): if state == 'running': ip = instance["PublicIpAddress"] - BASE_URL=f"http://{ip}:80/v1/" - print(f"Starting command for instance: {instance_id} {BASE_URL}") + BASE_URL=f"http://{ip}:80/v1" + target = f"{BASE_URL}/docs" + print(f"Starting command for instance: {instance_id} {target} ") try: - response = requests.get(f"{BASE_URL}/docs", timeout=3) + response = requests.get(target, timeout=8) + #http://18.205.7.10/v1/docs print(response) except Exception as exp: print(BASE_URL,exp)