libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [5/8] git commit: Update fixture generation script to include key pair management methods in the resulting fixtures.
Date Tue, 10 Dec 2013 21:08:38 GMT
Update fixture generation script to include key pair management methods in the
resulting fixtures.


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

Branch: refs/heads/trunk
Commit: 711fd240ea3ab7ac996d503a4d539efb6073773c
Parents: c62c472
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sun Dec 8 13:53:12 2013 +0100
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sun Dec 8 13:53:12 2013 +0100

----------------------------------------------------------------------
 contrib/generate_provider_feature_matrix_table.py | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/711fd240/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py b/contrib/generate_provider_feature_matrix_table.py
index ff0715b..118ce64 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -52,6 +52,11 @@ BASE_API_METHODS = {
                               'attach_volume', 'detach_volume',
                               'list_volume_snapshots',
                               'create_volume_snapshot'],
+    'compute_key_pair_management': ['list_key_pairs', 'get_key_pair',
+                                    'create_key_pair',
+                                    'import_key_pair_from_string',
+                                    'import_key_pair_from_file',
+                                    'delete_key_pair'],
     'loadbalancer': ['create_balancer', 'list_balancers',
                      'balancer_list_members', 'balancer_attach_member',
                      'balancer_detach_member', 'balancer_attach_compute_node'],
@@ -86,6 +91,14 @@ FRIENDLY_METHODS_NAMES = {
         'list_volume_snapshots': 'list snapshots',
         'create_volume_snapshot': 'create snapshot'
     },
+    'compute_key_pair_management': {
+        'list_key_pairs': 'list key pairs',
+        'get_key_pair': 'get key pair',
+        'create_key_pair': 'create key pair',
+        'import_key_pair_from_string': 'import public key from string',
+        'import_key_pair_from_file': 'import public key from file',
+        'delete_key_pair': 'delete key pair'
+    },
     'loadbalancer': {
         'create_balancer': 'create balancer',
         'list_balancers': 'list balancers',
@@ -138,7 +151,8 @@ def get_provider_api_names(Provider):
 def generate_providers_table(api):
     result = {}
 
-    if api in ['compute_main', 'compute_block_storage']:
+    if api in ['compute_main', 'compute_block_storage',
+               'compute_key_pair_management']:
         driver = NodeDriver
         drivers = COMPUTE_DRIVERS
         provider = ComputeProvider
@@ -324,6 +338,8 @@ def generate_tables():
             file_name_2 = '_supported_methods_main.rst'
         elif api == 'compute_block_storage':
             file_name_2 = '_supported_methods_block_storage.rst'
+        elif api == 'compute_key_pair_management':
+            file_name_2 = '_supported_methods_key_pair_management.rst'
         elif api == 'storage_main':
             file_name_2 = '_supported_methods_main.rst'
         elif api == 'storage_cdn':


Mime
View raw message