Пример #1
0
from cfme.utils.appliance import find_appliance
from cfme.utils.blockers import Blocker
from cfme.utils.blockers import BZ
from cfme.utils.conf import credentials
from cfme.utils.conf import env
from cfme.utils.log import logger
from cfme.utils.net import net_check
from cfme.utils.net import random_port
from cfme.utils.wait import wait_for

UNDER_TEST = False  # set to true for artifactor using tests


# Create a list of all our passwords for use with the sanitize request later in this module
# Filter out all Nones as it will mess the output up.
words = [word for word in {v.get('password') for v in credentials.values()} if word is not None]


def get_test_idents(item):
    try:
        return item.location[2], item.location[0]
    except AttributeError:
        try:
            return item.fspath.strpath, None
        except AttributeError:
            return (None, None)


def get_name(obj):
    return getattr(obj, '_param_name', None) or getattr(obj, 'name', None) or str(obj)
Пример #2
0
from cfme.utils.blockers import Blocker
from cfme.utils.blockers import BZ
from cfme.utils.conf import credentials
from cfme.utils.conf import env
from cfme.utils.log import logger
from cfme.utils.net import net_check
from cfme.utils.net import random_port
from cfme.utils.wait import wait_for

UNDER_TEST = False  # set to true for artifactor using tests

# Create a list of all our passwords for use with the sanitize request later in this module
# Filter out all Nones as it will mess the output up.
words = [
    word for word in {v.get('password')
                      for v in credentials.values()} if word is not None
]


def get_test_idents(item):
    try:
        return item.location[2], item.location[0]
    except AttributeError:
        try:
            return item.fspath.strpath, None
        except AttributeError:
            return (None, None)


def get_name(obj):
    return getattr(obj, '_param_name', None) or getattr(obj, 'name',
Пример #3
0
from artifactor import ArtifactorClient
from cfme.utils.blockers import BZ, Blocker
from cfme.utils.conf import env, credentials
from cfme.utils.log import logger
from cfme.utils.net import random_port, net_check
from cfme.utils.wait import wait_for
from fixtures.pytest_store import write_line, store
from cfme.markers.polarion import extract_polarion_ids

UNDER_TEST = False  # set to true for artifactor using tests


# Create a list of all our passwords for use with the sanitize request later in this module
# Filter out all Nones as it will mess the output up.
words = [word for word in {v.get('password') for v in credentials.values()} if word is not None]


def get_test_idents(item):
    try:
        return item.location[2], item.location[0]
    except AttributeError:
        try:
            return item.fspath.strpath, None
        except AttributeError:
            return (None, None)


def get_name(obj):
    return getattr(obj, '_param_name', None) or getattr(obj, 'name', None) or str(obj)