summaryrefslogtreecommitdiff
path: root/scripts/monitor.py
blob: b242c0e3e69b75e074b35de90f434e4181b0021b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3

import requests

links = [
    "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-tree-head-cosigned",
    "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-tree-head-to-cosign",
    "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-leaves/0/1",
    "https://poc.sigsum.org/crocodile-icefish/sigsum/v0/get-consistency-proof/1/3",
]

for url in links:
    response = requests.get(url)
    if response.status_code != 200:
        print(f"{url} is not returing 200.")
    else:
        print(f"{url} is working.")