From 2c874df5ce45f03dbb3d349c9f7dd77e6c1eafa2 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 17 May 2017 12:07:07 -0400 Subject: [PATCH] endpoints: s/releasse/release/g --- endpoints/appr/registry.py | 2 +- endpoints/appr/test/test_api_security.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/endpoints/appr/registry.py b/endpoints/appr/registry.py index a77b72104..c6b5fbe9c 100644 --- a/endpoints/appr/registry.py +++ b/endpoints/appr/registry.py @@ -136,7 +136,7 @@ def show_package_releases(namespace, package_name): @process_auth @require_app_repo_read @anon_protect -def show_package_releasse_manifests(namespace, package_name, release): +def show_package_release_manifests(namespace, package_name, release): reponame = repo_name(namespace, package_name) result = cnr_registry.show_package_manifests(reponame, release, package_class=Package) return jsonify(result) diff --git a/endpoints/appr/test/test_api_security.py b/endpoints/appr/test/test_api_security.py index 6c9c3384b..e37b2f092 100644 --- a/endpoints/appr/test/test_api_security.py +++ b/endpoints/appr/test/test_api_security.py @@ -35,10 +35,10 @@ CHANNEL_RELEASE_ARGS = {'channel_name': 'c', 'release': 'r'} ('appr.show_package_releases', 'GET', {}, 'devtable', True, 'public', 200), ('appr.show_package_releases', 'GET', {}, 'devtable', True, 'devtable', 200), - ('appr.show_package_releasse_manifests', 'GET', RELEASE_ARGS, 'devtable', False, 'public', 403), - ('appr.show_package_releasse_manifests', 'GET', RELEASE_ARGS, 'devtable', False, 'devtable', 200), - ('appr.show_package_releasse_manifests', 'GET', RELEASE_ARGS, 'devtable', True, 'public', 200), - ('appr.show_package_releasse_manifests', 'GET', RELEASE_ARGS, 'devtable', True, 'devtable', 200), + ('appr.show_package_release_manifests', 'GET', RELEASE_ARGS, 'devtable', False, 'public', 403), + ('appr.show_package_release_manifests', 'GET', RELEASE_ARGS, 'devtable', False, 'devtable', 200), + ('appr.show_package_release_manifests', 'GET', RELEASE_ARGS, 'devtable', True, 'public', 200), + ('appr.show_package_release_manifests', 'GET', RELEASE_ARGS, 'devtable', True, 'devtable', 200), ('appr.pull', 'GET', PACKAGE_ARGS, 'devtable', False, 'public', 403), ('appr.pull', 'GET', PACKAGE_ARGS, 'devtable', False, 'devtable', 404),