mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Implementation of api key pages.
Revoke page will show the correct key name Show api keys shows a well formatted expiry date Fix tests for api key endpoints.
This commit is contained in:
@@ -39,6 +39,12 @@ def template_json(id_, name, type_, content, service_id):
|
||||
}
|
||||
|
||||
|
||||
def api_key_json(id_, name, expiry_date=None):
|
||||
return {'id': id_,
|
||||
'name': name,
|
||||
'expiry_date': expiry_date
|
||||
}
|
||||
|
||||
TEST_USER_EMAIL = 'test@user.gov.uk'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user