Remove deprecated test utility
This change removes a utility which was deprecated in Mitaka and scheduled for removal in Newton. TrivialFix Change-Id: Ib3c72c46ba26c61980b4c96968c09fc791e596a6
This commit is contained in:
parent
70b930136a
commit
1ad6cb60c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user