blender/tools/check_blender_release/scripts/requests_basic_access.py
Sebastian Parborg 29d5cbf72c Fix: Make linux release script tests query the buildbot server
We can be more certain that the buildbot server is up while running the
test than and of our other infrastucture. So change the query to this
instead. Hopefully this will lead to less flakyness of this test.
2025-11-10 17:44:39 +01:00

16 lines
690 B
Python

# SPDX-FileCopyrightText: 2023 Blender Authors
#
# SPDX-License-Identifier: GPL-2.0-or-later
import requests
# Test this specific endpoint because this will check for a connection to the
# buildbot master. We should be quite sure that this endpoint is up if the
# builder is running the release check scripts.
website = "https://builder.blender.org/admin/"
r = requests.get(website, verify=True, timeout=30)
assert r.status_code == 200, f"{website} returned a status code {r.status_code}, we expected 200"
assert r.reason == "OK", f"Didn't get 'OK' response from {website}, got {r.reason}"
assert len(r.content) > 256, "The content we got from the web request is too small to be valid"