summaryrefslogtreecommitdiffstats
path: root/qa
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2020-07-19 11:39:11 +0200
committerKefu Chai <kchai@redhat.com>2020-07-22 05:55:49 +0200
commit24e7acc261a498a448935abcc971090fbd2a5789 (patch)
tree795469bdb2cfab3a8fbc9796bab840df6c0102fe /qa
parentqa/tasks/samba: drop python2 support (diff)
downloadceph-24e7acc261a498a448935abcc971090fbd2a5789.tar.xz
ceph-24e7acc261a498a448935abcc971090fbd2a5789.zip
qa/tasks: drop python2 support from rgw related tests
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'qa')
-rw-r--r--qa/tasks/tempest.py3
-rw-r--r--qa/tasks/tests/test_radosgw_admin.py6
-rw-r--r--qa/tasks/util/rgw.py2
-rw-r--r--qa/tasks/vault.py4
4 files changed, 5 insertions, 10 deletions
diff --git a/qa/tasks/tempest.py b/qa/tasks/tempest.py
index a2b55dfb84d..cf211b0b2cf 100644
--- a/qa/tasks/tempest.py
+++ b/qa/tasks/tempest.py
@@ -1,11 +1,10 @@
"""
Deploy and configure Tempest for Teuthology
"""
+import configparser
import contextlib
import logging
-from six.moves import configparser
-
from teuthology import misc as teuthology
from teuthology import contextutil
from teuthology.exceptions import ConfigError
diff --git a/qa/tasks/tests/test_radosgw_admin.py b/qa/tasks/tests/test_radosgw_admin.py
index 2ed0ebd52e0..4e86d5c2b52 100644
--- a/qa/tasks/tests/test_radosgw_admin.py
+++ b/qa/tasks/tests/test_radosgw_admin.py
@@ -1,8 +1,4 @@
-import six
-if six.PY3:
- from unittest.mock import Mock
-else:
- from mock import Mock
+from unittest.mock import Mock
from tasks import radosgw_admin
diff --git a/qa/tasks/util/rgw.py b/qa/tasks/util/rgw.py
index 1b287eb6c8e..c955f3150a8 100644
--- a/qa/tasks/util/rgw.py
+++ b/qa/tasks/util/rgw.py
@@ -2,7 +2,7 @@ import logging
import json
import time
-from six import StringIO
+from io import StringIO
from teuthology import misc as teuthology
diff --git a/qa/tasks/vault.py b/qa/tasks/vault.py
index 6af7c074f6d..f81069f4b32 100644
--- a/qa/tasks/vault.py
+++ b/qa/tasks/vault.py
@@ -8,8 +8,8 @@ import logging
import time
import json
from os import path
-from six.moves import http_client
-from six.moves.urllib.parse import urljoin
+from http import client as http_client
+from urllib.parse import urljoin
from teuthology import misc as teuthology
from teuthology import contextutil