Commit Graph

5 Commits

Author SHA1 Message Date
Caihui a352e40f3e Remove keystone v2 related code.
Remove keystone v2 related code.

Change-Id: Ia63ca397ecf4df34a4a7e90bf4cbc20886368962
2020-06-19 02:28:04 -07:00
Michal Arbet 2531984a01 Fix tempest running under python3
Change-Id: I602061f2d544854df4720fa414afd1c1687bf2d5
2020-01-12 15:21:44 +01:00
caihui b7a7423305 Fix some Python3 compatibility issues
1.TypeError: a bytes-like object is required, not 'str'

 Python3.X need use decode() to  change  "bytes" -> "str"

ft1.2: freezer_tempest_plugin.tests.freezerclient.test_freezer_cmd_action.TestFreezerCmdAction.test_freezer_cmd_actiondelete[gate]testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/tests/freezerclient/test_freezer_cmd_action.py", line 79, in test_freezer_cmd_actiondelete
    action_id = err.split(' ')[1]
TypeError: a bytes-like object is required, not 'str'

2.AttributeError: module 'urllib' has no attribute 'urlencode'
ft1.2: freezer_tempest_plugin.tests.freezer_api.api.test_api_actions.TestFreezerApiActions.test_api_actions_get_limit[gate]testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/tests/freezer_api/api/test_api_actions.py", line 46, in test_api_actions_get_limit
    resp, body = self.freezer_api_client.get_actions(limit=valid_limit)
  File "/opt/stack/tempest/.tox/tempest/lib/python3.6/site-packages/freezer_tempest_plugin/services/freezer_api_client.py", line 136, in get_actions
    uri += '?%s' % urllib.urlencode(params)
AttributeError: module 'urllib' has no attribute 'urlencode'

Change-Id: Ice774245605fe3549c7dacb9a2891d8177777f66
2020-01-07 16:53:49 -08:00
zhulingjie 35112fc7c7 Update json module to jsonutils
oslo project provide jsonutils, and the others project use it now,
this PS to update json moudule to oslo jsonutils for consistency.

Change-Id: I51bcac143d3750aa991aeed6e95e011389f011d8
2019-02-21 11:01:11 +00:00
Cai Hui cccbde6712 Add zuul job: freezer-tempest-agent
Add zuul job 'freezer-tempest-agent' as a check/gate job
to test  'freezer-agent' module

Change-Id: I7e06baf8e064f0bc51160c6df16284bdeeafe0b8
2018-11-08 06:00:37 -05:00