From 1ad6cb60c960f527d6eedb6ce29b02da3d98ca54 Mon Sep 17 00:00:00 2001 From: Dane Fichter Date: Tue, 2 Aug 2016 18:57:20 -0400 Subject: [PATCH] Remove deprecated test utility This change removes a utility which was deprecated in Mitaka and scheduled for removal in Newton. TrivialFix Change-Id: Ib3c72c46ba26c61980b4c96968c09fc791e596a6 --- glance/tests/unit/utils.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/glance/tests/unit/utils.py b/glance/tests/unit/utils.py index 6b4a0f0da3..d895c9f87e 100644 --- a/glance/tests/unit/utils.py +++ b/glance/tests/unit/utils.py @@ -15,7 +15,6 @@ from cryptography import exceptions as crypto_exception -from debtcollector import removals import glance_store as store import mock from oslo_config import cfg @@ -86,16 +85,6 @@ def fake_get_size_from_backend(uri, context=None): return 1 -@removals.remove(message="This will be removed in the N cycle.") -def fake_old_verify_signature(context, checksum_hash, image_properties): - if (image_properties is not None and 'signature' in image_properties and - image_properties['signature'] == 'VALID'): - return True - else: - raise exception.SignatureVerificationError( - 'Signature verification failed.') - - def fake_get_verifier(context, image_properties): verifier = mock.Mock() if (image_properties is not None and 'img_signature' in image_properties