Add error message to app if secret missing in quay
This commit is contained in:
parent
6afc00bf77
commit
d44aa8f566
5 changed files with 16 additions and 16 deletions
|
@ -1267,11 +1267,6 @@ SECURITY_TESTS = [
|
|||
(SuperUserList, 'POST', None, {'username': 'foo'}, 'freshuser', 403),
|
||||
(SuperUserList, 'POST', None, {'username': 'foo'}, 'reader', 403),
|
||||
|
||||
(SuperUserCustomCertificates, 'GET', None, None, None, 401),
|
||||
(SuperUserCustomCertificates, 'GET', None, None, 'devtable', 200),
|
||||
(SuperUserCustomCertificates, 'GET', None, None, 'freshuser', 403),
|
||||
(SuperUserCustomCertificates, 'GET', None, None, 'reader', 403),
|
||||
|
||||
(SuperUserSystemLogServices, 'GET', None, None, None, 401),
|
||||
(SuperUserSystemLogServices, 'GET', None, None, 'devtable', 200),
|
||||
(SuperUserSystemLogServices, 'GET', None, None, 'freshuser', 403),
|
||||
|
@ -1282,15 +1277,6 @@ SECURITY_TESTS = [
|
|||
(SuperUserGetLogsForService, 'GET', {'service': 'foo'}, None, 'freshuser', 403),
|
||||
(SuperUserGetLogsForService, 'GET', {'service': 'foo'}, None, 'reader', 403),
|
||||
|
||||
(SuperUserCustomCertificate, 'DELETE', {'certpath': 'somecert.crt'}, None, None, 401),
|
||||
(SuperUserCustomCertificate, 'DELETE', {'certpath': 'somecert.crt'}, None, 'devtable', 204),
|
||||
(SuperUserCustomCertificate, 'DELETE', {'certpath': 'somecert.crt'}, None, 'freshuser', 403),
|
||||
(SuperUserCustomCertificate, 'DELETE', {'certpath': 'somecert.crt'}, None, 'reader', 403),
|
||||
(SuperUserCustomCertificate, 'POST', {'certpath': 'somecert.crt'}, None, None, 401),
|
||||
(SuperUserCustomCertificate, 'POST', {'certpath': 'somecert.crt'}, None, 'devtable', 400),
|
||||
(SuperUserCustomCertificate, 'POST', {'certpath': 'somecert.crt'}, None, 'freshuser', 403),
|
||||
(SuperUserCustomCertificate, 'POST', {'certpath': 'somecert.crt'}, None, 'reader', 403),
|
||||
|
||||
(SuperUserManagement, 'DELETE', {'username': 'freshuser'}, None, None, 401),
|
||||
(SuperUserManagement, 'DELETE', {'username': 'freshuser'}, None, 'devtable', 204),
|
||||
(SuperUserManagement, 'DELETE', {'username': 'freshuser'}, None, 'freshuser', 403),
|
||||
|
|
|
@ -9,7 +9,7 @@ from flask_principal import identity_changed
|
|||
import endpoints.decorated # Register the various exceptions via decorators.
|
||||
import features
|
||||
|
||||
from app import app, oauth_apps, oauth_login, LoginWrappedDBUser, user_analytics
|
||||
from app import app, oauth_apps, oauth_login, LoginWrappedDBUser, user_analytics, IS_KUBERNETES
|
||||
from auth import scopes
|
||||
from auth.permissions import QuayDeferredPermissionUser
|
||||
from config import frontend_visible_config
|
||||
|
@ -143,6 +143,7 @@ def render_page_template(name, route_data=None, **kwargs):
|
|||
preferred_scheme=app.config['PREFERRED_URL_SCHEME'],
|
||||
version_number=version_number,
|
||||
current_year=datetime.datetime.now().year,
|
||||
is_kubernetes=IS_KUBERNETES,
|
||||
**kwargs)
|
||||
|
||||
resp = make_response(contents)
|
||||
|
|
Reference in a new issue