libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] 02/02: Add test case for change in #1343.
Date Fri, 23 Aug 2019 15:41:14 GMT
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 39f2841a33d34a4460b269d02fd4dbff0c5ca5a7
Author: Tomaz Muraus <tomaz@tomaz.me>
AuthorDate: Fri Aug 23 17:37:21 2019 +0200

    Add test case for change in #1343.
---
 libcloud/test/compute/fixtures/gce/zones_us-central1-a_instances.json | 4 +++-
 libcloud/test/compute/test_gce.py                                     | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instances.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instances.json
index 9fccb06..6f89843 100644
--- a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instances.json
+++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instances.json
@@ -44,6 +44,8 @@
       },
       "selfLink": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instances/node-name",
       "status": "RUNNING",
+      "cpuPlatform": "Intel Skylake",
+      "minCpuPlatform": "Intel Skylake",
       "tags": {
         "fingerprint": "42WmSpB8rSM="
       },
@@ -52,4 +54,4 @@
   ],
   "kind": "compute#instanceList",
   "selfLink": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instances"
-}
\ No newline at end of file
+}
diff --git a/libcloud/test/compute/test_gce.py b/libcloud/test/compute/test_gce.py
index 7384237..39b9a96 100644
--- a/libcloud/test/compute/test_gce.py
+++ b/libcloud/test/compute/test_gce.py
@@ -640,6 +640,8 @@ class GCENodeDriverTest(GoogleTestCase, TestCaseMixin):
         self.assertEqual(len(nodes_uc1a), 1)
         self.assertEqual(nodes[0].name, 'node-name')
         self.assertEqual(nodes_uc1a[0].name, 'node-name')
+        self.assertEqual(nodes_uc1a[0].extra['cpuPlatform'], 'Intel Skylake')
+        self.assertEqual(nodes_uc1a[0].extra['minCpuPlatform'], 'Intel Skylake')
 
         names = [n.name for n in nodes_all]
         self.assertTrue('node-name' in names)


Mime
View raw message