feat: add homelab deployment configs, documentation, and automation scripts
This commit is contained in:
8
scripts/test_argo_api.py
Normal file
8
scripts/test_argo_api.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import requests
|
||||
import urllib3
|
||||
urllib3.disable_warnings()
|
||||
|
||||
token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhcmdvY2QiLCJzdWIiOiJob21lcGFnZTphcGlLZXkiLCJuYmYiOjE3OTQ1MDIwNzgsImlhdCI6MTc5NDUwMjA3OCwianRpIjoiZjQ2NzU0NjMtODRhOS00MjI0LWI3ODItNmY5ODQxYWEwY2UxIn0.aHhrny2RBG-vAJAyXMvan0jw65jkP3bguqEduaG78O0"
|
||||
headers = {"Authorization": f"Bearer {token}"}
|
||||
r = requests.get("https://argo.snarfnet.net/api/v1/applications", headers=headers, verify=False)
|
||||
print("Argo apps with homepage token:", r.status_code, len(r.json().get('items', [])))
|
||||
Reference in New Issue
Block a user