1
0
mirror of https://github.com/quay/quay.git synced 2025-07-28 20:22:05 +03:00

api: adding token to global readonly user list robots (PROJQUAY-7177) (#3073)

Adding robot token to response for global readonly superuser.
This commit is contained in:
Brandon Caton
2024-07-25 10:06:15 -04:00
committed by GitHub
parent 35a04fdace
commit b78a746426
2 changed files with 10 additions and 3 deletions

View File

@ -3919,6 +3919,12 @@ class TestOrgRobots(ApiTestCase):
self.assertEqual(json["token"], json2["token"])
def test_get_robots_as_globalreadonlysuperuser(self):
self.login("globalreadonlysuperuser")
params = dict(orgname=ORGANIZATION)
for r in self.getJsonResponse(OrgRobotList, params=params)["robots"]:
assert "token" in r
class TestLogs(ApiTestCase):
def test_repo_logs(self):