import json
import logging
-from collections import namedtuple
import time
+from collections import namedtuple
import requests
-from teuthology.exceptions import CommandFailedError
-
from tasks.mgr.mgr_test_case import MgrTestCase
-
+from teuthology.exceptions import CommandFailedError
log = logging.getLogger(__name__)
import jwt
-from .helper import DashboardTestCase, JObj, JLeaf
+from .helper import DashboardTestCase, JLeaf, JObj
class AuthTest(DashboardTestCase):
# -*- coding: utf-8 -*-
from contextlib import contextmanager
-from .helper import DashboardTestCase, JObj, JList, JLeaf
+from .helper import DashboardTestCase, JLeaf, JList, JObj
class CephfsTest(DashboardTestCase):
from __future__ import absolute_import
-from .helper import DashboardTestCase, JObj, JList
+from .helper import DashboardTestCase, JList, JObj
class CrushRuleTest(DashboardTestCase):
from __future__ import absolute_import
-from .helper import DashboardTestCase, JObj, JList
+from .helper import DashboardTestCase, JList, JObj
class ECPTest(DashboardTestCase):
from __future__ import absolute_import
-
from .helper import DashboardTestCase, JList, JObj
from __future__ import absolute_import
import logging
+
import requests
-from .helper import DashboardTestCase, JAny, JObj, JList, JLeaf
+from .helper import DashboardTestCase, JAny, JLeaf, JList, JObj
logger = logging.getLogger(__name__)
# -*- coding: utf-8 -*-
from __future__ import absolute_import
+
import json
from .helper import DashboardTestCase
-
test_data = {
'inventory': [
{
import json
-from .helper import DashboardTestCase, JObj, JAny, JList, JLeaf, JTuple
+from .helper import DashboardTestCase, JAny, JLeaf, JList, JObj, JTuple
class OsdTest(DashboardTestCase):
import time
-from .helper import DashboardTestCase, JObj, JLeaf, JList
+from .helper import DashboardTestCase, JLeaf, JList, JObj
class RbdTest(DashboardTestCase):
import base64
import logging
import time
-
from urllib import parse
from cryptography.hazmat.backends import default_backend
-from cryptography.hazmat.primitives.twofactor.totp import TOTP
from cryptography.hazmat.primitives.hashes import SHA1
+from cryptography.hazmat.primitives.twofactor.totp import TOTP
-from .helper import DashboardTestCase, JObj, JList, JLeaf
+from .helper import DashboardTestCase, JLeaf, JList, JObj
logger = logging.getLogger(__name__)
from __future__ import absolute_import
-from .helper import DashboardTestCase, JList, JObj, JAny
+from .helper import DashboardTestCase, JAny, JList, JObj
class SettingsTest(DashboardTestCase):
from __future__ import absolute_import
import time
-
from datetime import datetime, timedelta
from .helper import DashboardTestCase
flake8
flake8 --config=tox.ini ../../../../qa/tasks/mgr/dashboard
isort . --check
+ isort ../../../../qa/tasks/mgr/dashboard --check
{[base-pylint]commands}
{[base-rst]commands}
python --version
autopep8 {[autopep8]addopts} {posargs:.}
isort .
+ isort ../../../../qa/tasks/mgr/dashboard
[testenv:check]
commands =