Replace the hard-coded 522-bit RSA key size used for tests with a TEST_RSA_KEY_SIZE constant defined in test/common.py (part 2). refs #393

This commit is contained in:
david-sarah 2011-08-10 13:23:10 -07:00
parent fbe0e42bbf
commit c55c44e70a
4 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,7 @@ from allmydata.key_generator import KeyGeneratorService
import allmydata.test.common_util as testutil
from allmydata import immutable
TEST_RSA_KEY_SIZE = 2048
def flush_but_dont_ignore(res):
d = flushEventualQueue()

View File

@ -27,6 +27,8 @@ from allmydata.util import fileutil, idlib, hashutil
from allmydata.util.hashutil import sha1
from allmydata.test.common_web import HTTPClientGETFactory
from allmydata.interfaces import IStorageBroker
from allmydata.test.common import TEST_RSA_KEY_SIZE
class IntentionalError(Exception):
pass

View File

@ -7,6 +7,7 @@ from foolscap.api import Tub, fireEventually, flushEventualQueue
from allmydata import key_generator
from allmydata.util import pollmixin
from allmydata.test.common import TEST_RSA_KEY_SIZE
from pycryptopp.publickey import rsa
def flush_but_dont_ignore(res):

View File

@ -35,6 +35,8 @@ from allmydata.mutable.layout import unpack_header, MDMFSlotReadProxy
from allmydata.mutable.repairer import MustForceRepairError
import allmydata.test.common_util as testutil
from allmydata.test.common import TEST_RSA_KEY_SIZE
# this "FakeStorage" exists to put the share data in RAM and avoid using real
# network connections, both to speed up the tests and to reduce the amount of