This commit is contained in:
nik012003
2022-06-25 16:41:26 +02:00
committed by DomySh
parent 98ad083fe3
commit 4f83369fd0
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ Output of the tests:
Testing will start on http://127.0.0.1:5000/ Testing will start on http://127.0.0.1:5000/
Sucessfully logged in ✔ Sucessfully logged in ✔
Sucessfully created service Test Service on with public port 1337 ✔ Sucessfully created service Test Service with public port 1337 ✔
Sucessfully received the internal port 38222 ✔ Sucessfully received the internal port 38222 ✔
Sucessfully started service with id test-service ✔ Sucessfully started service with id test-service ✔
Successfully tested first proxy with no regex ✔ Successfully tested first proxy with no regex ✔

View File

@@ -40,7 +40,7 @@ puts(f"Sucessfully logged in ✔", color=colors.green)
#Create new Service #Create new Service
req = s.post(f"{args.address}api/services/add" , json={"name":args.service_name,"port":args.service_port}) req = s.post(f"{args.address}api/services/add" , json={"name":args.service_name,"port":args.service_port})
assert req.json()["status"] == "ok", f"Test Failed: Couldn't create service {req.text}" assert req.json()["status"] == "ok", f"Test Failed: Couldn't create service {req.text}"
puts(f"Sucessfully created service {args.service_name} on with public port {args.service_port}", color=colors.green) puts(f"Sucessfully created service {args.service_name} with public port {args.service_port}", color=colors.green)
#Find the Service #Find the Service
req = s.get(f"{args.address}api/services") req = s.get(f"{args.address}api/services")