diff --git a/jobs/eam-integrations/scripts/test.py b/jobs/eam-integrations/scripts/test.py index dfe43181..d3f5a12f 100644 --- a/jobs/eam-integrations/scripts/test.py +++ b/jobs/eam-integrations/scripts/test.py @@ -1,30 +1 @@ -import requests -from requests.auth import HTTPBasicAuth -base_URL = "https://mozilla-np.xmatters.com/api/xm/1" - -person_name = "342d509e-6ae3-4c0a-bd59-b07cdc7c6eb3" -endpoint_URL = "/people/" + person_name + "/supervisors" - -url = base_URL + endpoint_URL - -print("Sending request to url: " + url) -auth = HTTPBasicAuth("serviceuser", "welcome1") - -response = requests.get(url, auth=auth) - -responseCode = response.status_code -if responseCode == 200: - rjson = response.json() - for d in rjson.get("data"): - print( - 'User "' - + person_name - + '" has supervisor "' - + d["targetName"] - + '" with first name "' - + d["firstName"] - + '" and last name "' - + d["lastName"] - + '"' - ) diff --git a/jobs/kpi-forecasting/requirements.txt b/jobs/kpi-forecasting/requirements.txt index 82170f43..e4e6468d 100644 --- a/jobs/kpi-forecasting/requirements.txt +++ b/jobs/kpi-forecasting/requirements.txt @@ -72,4 +72,4 @@ tomli==2.0.1 tqdm==4.65.0 typing_extensions==4.6.3 tzdata==2023.3 -urllib3==1.26.16 \ No newline at end of file +urllib3==1.26.19 \ No newline at end of file