Add testing of the new secscan-for-local endpoint and fix a bug
This commit is contained in:
parent
67031e4e33
commit
232fa42897
3 changed files with 40 additions and 6 deletions
|
@ -32,7 +32,6 @@ from util.security import strictjwt
|
|||
|
||||
import endpoints.decorated
|
||||
import json
|
||||
import features
|
||||
import hashlib
|
||||
import logging
|
||||
import bencode
|
||||
|
@ -40,7 +39,6 @@ import bencode
|
|||
import tarfile
|
||||
import shutil
|
||||
|
||||
from jwkest.jws import SIGNER_ALGS
|
||||
from jwkest.jwk import RSAKey
|
||||
from Crypto.PublicKey import RSA
|
||||
|
||||
|
@ -1153,7 +1151,6 @@ class V2RegistryTests(V2RegistryPullMixin, V2RegistryPushMixin, RegistryTestsMix
|
|||
# Attempt to pull by digest.
|
||||
self.do_pull('devtable', 'newrepo', 'devtable', 'password', manifest_id=digest)
|
||||
|
||||
|
||||
def test_pull_invalid_image_tag(self):
|
||||
# Add a new repository under the user, so we have a real repository to pull.
|
||||
self.do_push('devtable', 'newrepo', 'devtable', 'password')
|
||||
|
@ -1163,7 +1160,6 @@ class V2RegistryTests(V2RegistryPullMixin, V2RegistryPushMixin, RegistryTestsMix
|
|||
self.do_pull('devtable', 'newrepo', 'devtable', 'password', manifest_id='invalid',
|
||||
expect_failure=FailureCodes.INVALID_REGISTRY)
|
||||
|
||||
|
||||
def test_partial_upload_below_5mb(self):
|
||||
chunksize = 1024 * 1024 * 2
|
||||
size = chunksize * 3
|
||||
|
|
Reference in a new issue