Skip to content

Commit c1b346f

Browse files
APM-2488-Updated the test cases-print access token
1 parent cd3ff99 commit c1b346f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/trigger_pipelines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def api_request(
121121
):
122122
def get_headers():
123123

124-
_headers = {"Accept": "application/json", "Authorization": f"Bearer {self.access_token}"}
124+
_headers = {"Accept": "application/json", "Authorization": f"Bearer {self.token}"}
125125
_headers.update(headers or {})
126126
return _headers
127127

@@ -131,7 +131,7 @@ def get_headers():
131131

132132
result = action(uri, params=_params, headers=get_headers(), **kwargs)
133133
tries = 0
134-
while result.status_code not in (200, 201, 202, 204, 203):
134+
while result.status_code not in (200, 201, 202, 204):
135135
tries += 1
136136

137137
if tries > max_tries:

0 commit comments

Comments
 (0)