Forráskód Böngészése

Fix for HTTP url interception issue in latest moto

Nuwan Goonasekera 9 éve
szülő
commit
f74f1fce16
2 módosított fájl, 3 hozzáadás és 3 törlés
  1. 2 2
      cloudbridge/cloud/providers/aws/provider.py
  2. 1 1
      setup.py

+ 2 - 2
cloudbridge/cloud/providers/aws/provider.py

@@ -7,8 +7,8 @@ from boto.ec2.regioninfo import RegionInfo
 try:
     # These are installed only for the case of a dev instance
     from httpretty import HTTPretty
-    from moto import mock_ec2_deprecated as mock_ec2
-    from moto import mock_s3_deprecated as mock_s3
+    from moto import mock_ec2
+    from moto import mock_s3
 except ImportError:
     # TODO: Once library logging is configured, change this
     print("[aws provider] moto library not available!")

+ 1 - 1
setup.py

@@ -27,7 +27,7 @@ openstack_reqs = ['requests<2.13.0',
 aws_reqs = ['boto>=2.38.0,<=2.46.1']
 full_reqs = base_reqs + aws_reqs + openstack_reqs
 # httpretty is required with/for moto 1.0.0 or AWS tests fail
-dev_reqs = (['tox>=2.1.1', 'moto>=1.0.0', 'sphinx>=1.3.1', 'flake8>=3.3.0',
+dev_reqs = (['tox>=2.1.1', 'moto<1.0.0', 'sphinx>=1.3.1', 'flake8>=3.3.0',
              'flake8-import-order>=0.12', 'httpretty==0.8.10'] + full_reqs)
 
 setup(name='cloudbridge',