libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [04/12] libcloud git commit: Fix failing test_list_sizes test
Date Fri, 20 May 2016 10:09:04 GMT
Fix failing test_list_sizes test

Note: Tests weren't running for us-west-2 and the failing test was 11
instances out of date

Closes #790

Signed-off-by: Tomaz Muraus <tomaz@tomaz.me>


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/029a5d06
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/029a5d06
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/029a5d06

Branch: refs/heads/trunk
Commit: 029a5d06f171ea1be8d0d89c4738830a84e9efa8
Parents: 2cdcb24
Author: Anže Pečar <ensmotko@gmail.com>
Authored: Wed May 18 23:11:24 2016 +0200
Committer: Tomaz Muraus <tomaz@tomaz.me>
Committed: Fri May 20 11:21:43 2016 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_ec2.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/029a5d06/libcloud/test/compute/test_ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index adc8e3d..0d1dd3a 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -389,6 +389,7 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
         names = [
             ('ec2_us_east', 'us-east-1'),
             ('ec2_us_west', 'us-west-1'),
+            ('ec2_us_west', 'us-west-2'),
             ('ec2_eu_west', 'eu-west-1'),
             ('ec2_ap_southeast', 'ap-southeast-1'),
             ('ec2_ap_northeast', 'ap-northeast-1'),
@@ -412,20 +413,21 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
             self.assertTrue('m2.4xlarge' in ids)
 
             if region_name == 'us-east-1':
-                self.assertEqual(len(sizes), 53)
+                self.assertEqual(len(sizes), 54)
                 self.assertTrue('cg1.4xlarge' in ids)
                 self.assertTrue('cc2.8xlarge' in ids)
                 self.assertTrue('cr1.8xlarge' in ids)
+                self.assertTreu('x1.32xlarge' in ids)
             elif region_name == 'us-west-1':
                 self.assertEqual(len(sizes), 45)
             if region_name == 'us-west-2':
-                self.assertEqual(len(sizes), 41)
+                self.assertEqual(len(sizes), 52)
             elif region_name == 'ap-southeast-1':
-                self.assertEqual(len(sizes), 43)
+                self.assertEqual(len(sizes), 44)
             elif region_name == 'ap-southeast-2':
-                self.assertEqual(len(sizes), 47)
+                self.assertEqual(len(sizes), 48)
             elif region_name == 'eu-west-1':
-                self.assertEqual(len(sizes), 51)
+                self.assertEqual(len(sizes), 52)
 
         self.driver.region_name = region_old
 


Mime
View raw message