Remove old deprecated Token clients
TokenClientJSON and V3TokenClientJSON were deprecated very long back so its time to remove them. No one in OpenStack using those - https://codesearch.opendev.org/?q=TokenClientJSON&i=nope&files=&excludeFiles=&repos= Change-Id: If20fa58e64e130e268e1ad7999b0088a0a0c0f9c
This commit is contained in:
parent
393e94a604
commit
4e18c0f79b
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
prelude: >
|
||||||
|
Tempest's identity service client TokenClientJSON and V3TokenClientJSON
|
||||||
|
has been removed.
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Tempest's identity service client TokenClientJSON and V3TokenClientJSON
|
||||||
|
were deprecated since long which are not removed. Please use new service
|
||||||
|
clients TokenClient and V3TokenClient instead.
|
@ -12,7 +12,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
from oslo_serialization import jsonutils as json
|
from oslo_serialization import jsonutils as json
|
||||||
|
|
||||||
from tempest.lib.common import rest_client
|
from tempest.lib.common import rest_client
|
||||||
@ -125,15 +124,3 @@ class TokenClient(rest_client.RestClient):
|
|||||||
return body['token']['id'], body
|
return body['token']['id'], body
|
||||||
else:
|
else:
|
||||||
return body['token']['id']
|
return body['token']['id']
|
||||||
|
|
||||||
|
|
||||||
class TokenClientJSON(TokenClient):
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
def _warn(self):
|
|
||||||
self.LOG.warning("%s class was deprecated and renamed to %s",
|
|
||||||
self.__class__.__name__, 'TokenClient')
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
|
||||||
self._warn()
|
|
||||||
super(TokenClientJSON, self).__init__(*args, **kwargs)
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
from oslo_serialization import jsonutils as json
|
from oslo_serialization import jsonutils as json
|
||||||
|
|
||||||
from tempest.lib.common import rest_client
|
from tempest.lib.common import rest_client
|
||||||
@ -195,15 +194,3 @@ class V3TokenClient(rest_client.RestClient):
|
|||||||
return token, body['token']
|
return token, body['token']
|
||||||
else:
|
else:
|
||||||
return token
|
return token
|
||||||
|
|
||||||
|
|
||||||
class V3TokenClientJSON(V3TokenClient):
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
def _warn(self):
|
|
||||||
self.LOG.warning("%s class was deprecated and renamed to %s",
|
|
||||||
self.__class__.__name__, 'V3TokenClient')
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
|
||||||
self._warn()
|
|
||||||
super(V3TokenClientJSON, self).__init__(*args, **kwargs)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user