Browse Source

Merge "Drop 'endpoints' and 'credentials' commands"

tags/5.0.0
Zuul 1 week ago
parent
commit
e98585c03d

+ 0
- 8
cinderclient/tests/functional/test_readonly_cli.py View File

@@ -47,14 +47,6 @@ class CinderClientReadOnlyTests(base.ClientTestBase):
47 47
                                                'Cipher', 'Key Size',
48 48
                                                'Control Location'])
49 49
 
50
-    def test_endpoints(self):
51
-        out = self.cinder('endpoints')
52
-        tables = self.parser.tables(out)
53
-        for table in tables:
54
-            headers = table['headers']
55
-            self.assertGreaterEqual(2, len(headers))
56
-            self.assertEqual('Value', headers[1])
57
-
58 50
     def test_extra_specs_list(self):
59 51
         extra_specs_list = self.cinder('extra-specs-list')
60 52
         self.assertTableHeaders(extra_specs_list, ['ID', 'Name',

+ 0
- 19
cinderclient/v2/shell.py View File

@@ -20,7 +20,6 @@ import argparse
20 20
 import collections
21 21
 import copy
22 22
 import os
23
-import warnings
24 23
 
25 24
 from oslo_utils import strutils
26 25
 import six
@@ -923,24 +922,6 @@ def do_type_access_remove(cs, args):
923 922
         vtype, args.project_id)
924 923
 
925 924
 
926
-def do_endpoints(cs, args):
927
-    """Discovers endpoints registered by authentication service."""
928
-    warnings.warn(
929
-        "``cinder endpoints`` is deprecated, use ``openstack catalog list`` "
930
-        "instead. The ``cinder endpoints`` command may be removed in the P "
931
-        "release or next major release of cinderclient (v2.0.0 or greater).")
932
-    catalog = cs.client.service_catalog.catalog
933
-    for e in catalog:
934
-        utils.print_dict(e['endpoints'][0], e['name'])
935
-
936
-
937
-def do_credentials(cs, args):
938
-    """Shows user credentials returned from auth."""
939
-    warnings.warn(
940
-        "``cinder credentials`` is deprecated, use ``openstack token issue`` "
941
-        "indead.")
942
-
943
-
944 925
 @utils.arg('tenant',
945 926
            metavar='<tenant_id>',
946 927
            help='ID of tenant for which to list quotas.')

+ 6
- 0
releasenotes/notes/cinderclient-5-de0508ce5a221d21.yaml View File

@@ -10,3 +10,9 @@ upgrade:
10 10
     This version of the python-cinderclient no longer supports the Cinder v1
11 11
     API. Ensure all mananaged services have at least the v2 API available prior
12 12
     to upgrading this client.
13
+  - |
14
+    The ``cinder endpoints`` command was deprecated and has now been removed.
15
+    The command ``openstack catalog list`` should be used instead.
16
+  - |
17
+    The ``cinder credentials`` command was deprecated and has now been removed.
18
+    The command ``openstack token issue`` should be used instead.

Loading…
Cancel
Save