Unpin most dependencies, and fix moto

This commit is contained in:
Curtis Castrapel 2018-11-05 14:37:52 -08:00
parent 8e3f9a3c5a
commit 75183ef2f2
8 changed files with 36 additions and 23 deletions

View File

@ -43,6 +43,8 @@ reset-db:
dropdb lemur || true dropdb lemur || true
@echo "--> Creating 'lemur' database" @echo "--> Creating 'lemur' database"
createdb -E utf-8 lemur createdb -E utf-8 lemur
@echo "--> Enabling pg_trgm extension"
psql lemur -c "create extension IF NOT EXISTS pg_trgm;"
@echo "--> Applying migrations" @echo "--> Applying migrations"
lemur db upgrade lemur db upgrade

View File

@ -44,7 +44,11 @@ class AuthorizationRecord(object):
class AcmeHandler(object): class AcmeHandler(object):
def __init__(self): def __init__(self):
self.dns_providers_for_domain = {} self.dns_providers_for_domain = {}
try:
self.all_dns_providers = dns_provider_service.get_all_dns_providers() self.all_dns_providers = dns_provider_service.get_all_dns_providers()
except Exception as e:
current_app.logger.error("Unable to fetch DNS Providers: {}".format(e))
self.all_dns_providers = []
def find_dns_challenge(self, authorizations): def find_dns_challenge(self, authorizations):
dns_challenges = [] dns_challenges = []

View File

@ -240,3 +240,11 @@ def cert_builder(private_key):
.public_key(private_key.public_key()) .public_key(private_key.public_key())
.not_valid_before(datetime.datetime(2017, 12, 22)) .not_valid_before(datetime.datetime(2017, 12, 22))
.not_valid_after(datetime.datetime(2040, 1, 1))) .not_valid_after(datetime.datetime(2040, 1, 1)))
@pytest.fixture(scope='function')
def aws_credentials():
os.environ['AWS_ACCESS_KEY_ID'] = 'testing'
os.environ['AWS_SECRET_ACCESS_KEY'] = 'testing'
os.environ['AWS_SECURITY_TOKEN'] = 'testing'
os.environ['AWS_SESSION_TOKEN'] = 'testing'

View File

@ -17,8 +17,8 @@ babel==2.6.0 # via sphinx
bcrypt==3.1.4 bcrypt==3.1.4
billiard==3.5.0.4 billiard==3.5.0.4
blinker==1.4 blinker==1.4
boto3==1.7.79 boto3==1.9.37
botocore==1.10.84 botocore==1.12.37
celery[redis]==4.2.1 celery[redis]==4.2.1
certifi==2018.10.15 certifi==2018.10.15
cffi==1.11.5 cffi==1.11.5
@ -59,7 +59,7 @@ mock==2.0.0
ndg-httpsclient==0.5.1 ndg-httpsclient==0.5.1
packaging==18.0 # via sphinx packaging==18.0 # via sphinx
paramiko==2.4.2 paramiko==2.4.2
pbr==5.1.0 pbr==5.1.1
pem==18.2.0 pem==18.2.0
psycopg2==2.7.5 psycopg2==2.7.5
pyasn1-modules==0.2.2 pyasn1-modules==0.2.2

View File

@ -4,7 +4,7 @@ coverage
factory-boy factory-boy
Faker Faker
freezegun freezegun
moto==1.3.4 # Issue with moto: https://github.com/spulec/moto/issues/1813 moto
nose nose
pyflakes pyflakes
pytest pytest

View File

@ -15,7 +15,6 @@ certifi==2018.10.15 # via requests
cffi==1.11.5 # via cryptography cffi==1.11.5 # via cryptography
chardet==3.0.4 # via requests chardet==3.0.4 # via requests
click==7.0 # via flask click==7.0 # via flask
cookies==2.2.1 # via moto
coverage==4.5.1 coverage==4.5.1
cryptography==2.3.1 # via moto cryptography==2.3.1 # via moto
docker-pycreds==0.3.0 # via docker docker-pycreds==0.3.0 # via docker
@ -36,9 +35,9 @@ jsonpickle==1.0 # via aws-xray-sdk
markupsafe==1.1.0 # via jinja2 markupsafe==1.1.0 # via jinja2
mock==2.0.0 # via moto mock==2.0.0 # via moto
more-itertools==4.3.0 # via pytest more-itertools==4.3.0 # via pytest
moto==1.3.4 moto==1.3.7
nose==1.3.7 nose==1.3.7
pbr==5.1.0 # via mock pbr==5.1.1 # via mock
pluggy==0.8.0 # via pytest pluggy==0.8.0 # via pytest
py==1.7.0 # via pytest py==1.7.0 # via pytest
pyaml==17.12.1 # via moto pyaml==17.12.1 # via moto

View File

@ -4,22 +4,22 @@ acme
alembic-autogenerate-enums alembic-autogenerate-enums
arrow arrow
asyncpool asyncpool
boto3==1.7.79 # Issue with moto: https://github.com/spulec/moto/issues/1813 boto3
botocore== 1.10.84 # Issue with moto: https://github.com/spulec/moto/issues/1813 botocore
celery[redis] celery[redis]
certifi certifi
CloudFlare CloudFlare
cryptography cryptography
dnspython3 dnspython3
dyn dyn
Flask-Bcrypt==0.7.1 Flask-Bcrypt
Flask-Mail==0.9.1 Flask-Mail
Flask-Migrate==2.1.1 Flask-Migrate
Flask-Principal==0.4.0 Flask-Principal
Flask-RESTful==0.3.6 Flask-RESTful
Flask-Script==2.0.6 Flask-Script
Flask-SQLAlchemy Flask-SQLAlchemy
Flask==0.12 Flask==0.12.4
Flask-Cors Flask-Cors
future future
gunicorn gunicorn

View File

@ -15,8 +15,8 @@ asyncpool==1.0
bcrypt==3.1.4 # via flask-bcrypt, paramiko bcrypt==3.1.4 # via flask-bcrypt, paramiko
billiard==3.5.0.4 # via celery billiard==3.5.0.4 # via celery
blinker==1.4 # via flask-mail, flask-principal, raven blinker==1.4 # via flask-mail, flask-principal, raven
boto3==1.7.79 boto3==1.9.37
botocore==1.10.84 botocore==1.12.37
celery[redis]==4.2.1 celery[redis]==4.2.1
certifi==2018.10.15 certifi==2018.10.15
cffi==1.11.5 # via bcrypt, cryptography, pynacl cffi==1.11.5 # via bcrypt, cryptography, pynacl
@ -31,12 +31,12 @@ dyn==1.8.1
flask-bcrypt==0.7.1 flask-bcrypt==0.7.1
flask-cors==3.0.6 flask-cors==3.0.6
flask-mail==0.9.1 flask-mail==0.9.1
flask-migrate==2.1.1 flask-migrate==2.3.0
flask-principal==0.4.0 flask-principal==0.4.0
flask-restful==0.3.6 flask-restful==0.3.6
flask-script==2.0.6 flask-script==2.0.6
flask-sqlalchemy==2.3.2 flask-sqlalchemy==2.3.2
flask==0.12 flask==0.12.4
future==0.17.1 future==0.17.1
gunicorn==19.9.0 gunicorn==19.9.0
idna==2.7 # via cryptography, requests idna==2.7 # via cryptography, requests
@ -55,7 +55,7 @@ marshmallow==2.16.3
mock==2.0.0 # via acme mock==2.0.0 # via acme
ndg-httpsclient==0.5.1 ndg-httpsclient==0.5.1
paramiko==2.4.2 paramiko==2.4.2
pbr==5.1.0 # via mock pbr==5.1.1 # via mock
pem==18.2.0 pem==18.2.0
psycopg2==2.7.5 psycopg2==2.7.5
pyasn1-modules==0.2.2 # via python-ldap pyasn1-modules==0.2.2 # via python-ldap
@ -80,7 +80,7 @@ six==1.11.0
sqlalchemy-utils==0.33.6 sqlalchemy-utils==0.33.6
sqlalchemy==1.2.13 # via alembic, flask-sqlalchemy, marshmallow-sqlalchemy, sqlalchemy-utils sqlalchemy==1.2.13 # via alembic, flask-sqlalchemy, marshmallow-sqlalchemy, sqlalchemy-utils
tabulate==0.8.2 tabulate==0.8.2
urllib3==1.24.1 # via requests urllib3==1.24.1 # via botocore, requests
vine==1.1.4 # via amqp vine==1.1.4 # via amqp
werkzeug==0.14.1 # via flask werkzeug==0.14.1 # via flask
xmltodict==0.11.0 xmltodict==0.11.0