cfme.utils.blockers module

class cfme.utils.blockers.BZ(bug_id, **kwargs)[source]

Bases: cfme.utils.blockers.Blocker

property blocks

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

bugzilla = <cfme.utils.bz.Bugzilla object>
property bugzilla_bug
property can_test_on_current_upstream_appliance

This property is designed for use with the blocks property and is answering the question:

“If I have a bug, and that bug is in a “POST” or “MODIFIED” state, and if I have an upstream appliance, is the build date of my current upstream appliance after the fix for the bug was merged?”

If so, then it will return True, because the bug’s fix is included in your current upstream appliance.

If you happen to be on an older version of an upstream appliance that doesn’t have the fix, then it will return False.

property data
get_bug_url()[source]
property url
class cfme.utils.blockers.Blocker(**kwargs)[source]

Bases: object

Base class for all blockers

REQUIRED THING! Any subclass’ constructors must accept kwargs and after POPping the values required for the blocker’s operation, call to ``super` with **kwargs must be done! Failing to do this will render some of the functionality disabled ;).

classmethod all_blocker_engines()[source]

Return mapping of name:class of all the blocker engines in this module.

Having this as a separate function will later enable to scatter the engines across modules in case of extraction into a separate library.

blocks = False
kwargs = {}
classmethod parse(blocker, **kwargs)[source]

Create a blocker object from some representation

property url
class cfme.utils.blockers.GH(description, **kwargs)[source]

Bases: cfme.utils.blockers.Blocker

DEFAULT_REPOSITORY = 'foo/bar'
property blocks

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

property data
github = <github.MainClass.Github object>
property repo
property url
class cfme.utils.blockers.JIRA(jira_id, **kwargs)[source]

Bases: cfme.utils.blockers.Blocker

property blocks

bool(x) -> bool

Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed.

property jira

classmethod(function) -> method

Convert a function to be a class method.

A class method receives the class as implicit first argument, just like an instance method receives the instance. To declare a class method, use this idiom:

class C:

@classmethod def f(cls, arg1, arg2, …):

It can be called either on the class (e.g. C.f()) or on an instance (e.g. C().f()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument.

Class methods are different than C++ or Java static methods. If you want those, see the staticmethod builtin.

property url