Răsfoiți Sursa

Removed unused instance data

Nuwan Goonasekera 5 ani în urmă
părinte
comite
fe219296ca
3 a modificat fișierele cu 0 adăugiri și 223 ștergeri
  1. 0 1
      cloudbridge/providers/aws/provider.py
  2. 0 221
      cloudbridge/providers/mock/provider.py
  3. 0 1
      tox.ini

+ 0 - 1
cloudbridge/providers/aws/provider.py

@@ -18,7 +18,6 @@ from .services import AWSStorageService
 class AWSCloudProvider(BaseCloudProvider):
     '''AWS cloud provider interface'''
     PROVIDER_ID = 'aws'
-    AWS_INSTANCE_DATA_DEFAULT_URL = "http://cloudve.org/cb-aws-vmtypes.json"
 
     def __init__(self, config):
         super(AWSCloudProvider, self).__init__(config)

+ 0 - 221
cloudbridge/providers/mock/provider.py

@@ -40,227 +40,6 @@ class MockAWSCloudProvider(AWSCloudProvider, TestMockHelperMixin):
         self.s3mock.start()
         self.route53mock = mock_route53()
         self.route53mock.start()
-        responses.add(
-            responses.GET,
-            self.AWS_INSTANCE_DATA_DEFAULT_URL,
-            body=u"""
-[
-  {
-    "family": "General Purpose",
-    "enhanced_networking": false,
-    "vCPU": 1,
-    "generation": "current",
-    "ebs_iops": 0,
-    "network_performance": "Low",
-    "ebs_throughput": 0,
-    "vpc": {
-      "ips_per_eni": 2,
-      "max_enis": 2
-    },
-    "arch": [
-      "x86_64"
-    ],
-    "linux_virtualization_types": [
-        "HVM"
-    ],
-    "pricing": {
-        "us-east-1": {
-            "linux": {
-                "ondemand": "0.0058",
-                "reserved": {
-                    "yrTerm1Convertible.allUpfront": "0.003881",
-                    "yrTerm1Convertible.noUpfront": "0.0041",
-                    "yrTerm1Convertible.partialUpfront": "0.003941",
-                    "yrTerm1Standard.allUpfront": "0.003311",
-                    "yrTerm1Standard.noUpfront": "0.0036",
-                    "yrTerm1Standard.partialUpfront": "0.003412",
-                    "yrTerm3Convertible.allUpfront": "0.002626",
-                    "yrTerm3Convertible.noUpfront": "0.0029",
-                    "yrTerm3Convertible.partialUpfront": "0.002632",
-                    "yrTerm3Standard.allUpfront": "0.002169",
-                    "yrTerm3Standard.noUpfront": "0.0025",
-                    "yrTerm3Standard.partialUpfront": "0.002342"
-                }
-            }
-        }
-    },
-    "ebs_optimized": false,
-    "storage": null,
-    "max_bandwidth": 0,
-    "instance_type": "t2.nano",
-    "ECU": "variable",
-    "memory": 0.5,
-    "ebs_max_bandwidth": 0
-  },
-  {
-    "family": "General Purpose",
-    "enhanced_networking": false,
-    "vCPU": 96,
-    "generation": "current",
-    "ebs_iops": 80000.0,
-    "network_performance": "25 Gigabit",
-    "ebs_throughput": 1750.0,
-    "vpc": {
-      "ips_per_eni": 50,
-      "max_enis": 15
-    },
-    "arch": [
-      "x86_64"
-    ],
-    "linux_virtualization_types": [
-        "HVM"
-    ],
-    "pricing": {
-        "us-east-1": {
-            "linux": {
-                "ondemand": "0.0058",
-                "reserved": {
-                    "yrTerm1Convertible.allUpfront": "0.003881",
-                    "yrTerm1Convertible.noUpfront": "0.0041",
-                    "yrTerm1Convertible.partialUpfront": "0.003941",
-                    "yrTerm1Standard.allUpfront": "0.003311",
-                    "yrTerm1Standard.noUpfront": "0.0036",
-                    "yrTerm1Standard.partialUpfront": "0.003412",
-                    "yrTerm3Convertible.allUpfront": "0.002626",
-                    "yrTerm3Convertible.noUpfront": "0.0029",
-                    "yrTerm3Convertible.partialUpfront": "0.002632",
-                    "yrTerm3Standard.allUpfront": "0.002169",
-                    "yrTerm3Standard.noUpfront": "0.0025",
-                    "yrTerm3Standard.partialUpfront": "0.002342"
-                }
-            }
-        }
-    },
-    "ebs_optimized": false,
-    "storage": null,
-    "max_bandwidth": 0,
-    "instance_type": "m5.24xlarge",
-    "ECU": 345.0,
-    "memory": 384.0,
-    "ebs_max_bandwidth": 14000.0
-  },
-  {
-    "family": "General Purpose",
-    "enhanced_networking": false,
-    "vCPU": 96,
-    "generation": "current",
-    "ebs_iops": 80000.0,
-    "network_performance": "25 Gigabit",
-    "ebs_throughput": 1750.0,
-    "vpc": {
-      "ips_per_eni": 50,
-      "max_enis": 15
-    },
-    "arch": [
-      "x86_64"
-    ],
-    "linux_virtualization_types": [
-        "HVM"
-    ],
-    "ebs_optimized": false,
-    "storage": null,
-    "max_bandwidth": 0,
-    "instance_type": "m5.24xlarge",
-    "ECU": 345.0,
-    "memory": 384.0,
-    "ebs_max_bandwidth": 14000.0
-  },
-  {
-    "family": "Memory optimized",
-    "enhanced_networking": false,
-    "vCPU": 96,
-    "generation": "current",
-    "ebs_iops": 80000.0,
-    "network_performance": "25 Gigabit",
-    "ebs_throughput": 1750.0,
-    "vpc": {
-      "ips_per_eni": 50,
-      "max_enis": 15
-    },
-    "arch": [
-      "x86_64"
-    ],
-    "linux_virtualization_types": [
-        "HVM"
-    ],
-    "pricing": {
-        "us-east-1": {
-            "linux": {
-                "ondemand": "0.0058",
-                "reserved": {
-                    "yrTerm1Convertible.allUpfront": "0.003881",
-                    "yrTerm1Convertible.noUpfront": "0.0041",
-                    "yrTerm1Convertible.partialUpfront": "0.003941",
-                    "yrTerm1Standard.allUpfront": "0.003311",
-                    "yrTerm1Standard.noUpfront": "0.0036",
-                    "yrTerm1Standard.partialUpfront": "0.003412",
-                    "yrTerm3Convertible.allUpfront": "0.002626",
-                    "yrTerm3Convertible.noUpfront": "0.0029",
-                    "yrTerm3Convertible.partialUpfront": "0.002632",
-                    "yrTerm3Standard.allUpfront": "0.002169",
-                    "yrTerm3Standard.noUpfront": "0.0025",
-                    "yrTerm3Standard.partialUpfront": "0.002342"
-                }
-            }
-        }
-    },
-    "ebs_optimized": false,
-    "storage": null,
-    "max_bandwidth": 0,
-    "instance_type": "r5.24xlarge",
-    "ECU": 347.0,
-    "memory": 768.0,
-    "ebs_max_bandwidth": 14000.0
-  },
-  {
-    "family": "Memory optimized",
-    "enhanced_networking": false,
-    "vCPU": 96,
-    "generation": "current",
-    "ebs_iops": 80000.0,
-    "network_performance": "25 Gigabit",
-    "ebs_throughput": 1750.0,
-    "vpc": {
-      "ips_per_eni": 50,
-      "max_enis": 15
-    },
-    "arch": [
-      "x86_64"
-    ],
-    "linux_virtualization_types": [
-        "HVM"
-    ],
-    "pricing": {
-        "us-east-1": {
-            "linux": {
-                "ondemand": "0.0058",
-                "reserved": {
-                    "yrTerm1Convertible.allUpfront": "0.003881",
-                    "yrTerm1Convertible.noUpfront": "0.0041",
-                    "yrTerm1Convertible.partialUpfront": "0.003941",
-                    "yrTerm1Standard.allUpfront": "0.003311",
-                    "yrTerm1Standard.noUpfront": "0.0036",
-                    "yrTerm1Standard.partialUpfront": "0.003412",
-                    "yrTerm3Convertible.allUpfront": "0.002626",
-                    "yrTerm3Convertible.noUpfront": "0.0029",
-                    "yrTerm3Convertible.partialUpfront": "0.002632",
-                    "yrTerm3Standard.allUpfront": "0.002169",
-                    "yrTerm3Standard.noUpfront": "0.0025",
-                    "yrTerm3Standard.partialUpfront": "0.002342"
-                }
-            }
-        }
-    },
-    "ebs_optimized": false,
-    "storage": null,
-    "max_bandwidth": 0,
-    "instance_type": "r5d.24xlarge",
-    "ECU": 347.0,
-    "memory": 768.0,
-    "ebs_max_bandwidth": 14000.0
-  }
-]
-""")
 
     def tearDownMock(self):
         """

+ 0 - 1
tox.ini

@@ -31,4 +31,3 @@ passenv =
 deps =
     -rrequirements.txt
     coverage<5
-