airgun.views.virtwho_configure

Module Contents

Classes

VirtwhoConfigureStatus

The status for virtwho configure can be: ok, info, warning.

VirtwhoConfigureScript

Return the virtwho configure script by innerHTML.

VirtwhoConfiguresDebug

Return the virtwho configure debug status.

VirtwhoConfiguresView

Base view for Satellite pages

VirtwhoConfigureCreateView

Base view for Satellite pages

VirtwhoConfigureEditView

Base view for Satellite pages

VirtwhoConfigureDetailsView

Base view for Satellite pages

class airgun.views.virtwho_configure.VirtwhoConfigureStatus(parent, locator, logger=None)

The status for virtwho configure can be: ok, info, warning.

ok: The virt-who report has not arrived within the interval,

which indicates there was no change on hypervisor

info: The configuration was not deployed yet or the virt-who was

unable to report the status

warning: The configuration is invalid and not available.

STATUS_ICON = .//span[contains(@class, 'virt-who-config-report-status')]
property status

The attributes for the element is such as: virt-who-config-report-status pficon-ok status-ok virt-who-config-report-status pficon-info status-info

read()

Returns current status

fill(value)

Interactive objects like inputs, selects, checkboxes, et cetera should implement fill.

When you implement this method, it MUST ALWAYS return a boolean whether the value was changed. Otherwise it can break.

For actual filling, please use fill_with(). It offers richer interface for filling.

Returns

A boolean whether it changed the value or not.

class airgun.views.virtwho_configure.VirtwhoConfigureScript(parent, logger=None, **kwargs)

Return the virtwho configure script by innerHTML. It will preserve the line break and whitespace.

SCRIPT_PRE = .//pre[@id='config_script']
property content
read()

Returns the script content

fill(value)

Interactive objects like inputs, selects, checkboxes, et cetera should implement fill.

When you implement this method, it MUST ALWAYS return a boolean whether the value was changed. Otherwise it can break.

For actual filling, please use fill_with(). It offers richer interface for filling.

Returns

A boolean whether it changed the value or not.

class airgun.views.virtwho_configure.VirtwhoConfiguresDebug(parent, logger=None, **kwargs)

Return the virtwho configure debug status.

DEBUG = .//span[contains(@class,'config-debug')]
STATUS = .//span[contains(@class,'fa-check')]
property status
read()

Returns the debug status

fill(value)

Interactive objects like inputs, selects, checkboxes, et cetera should implement fill.

When you implement this method, it MUST ALWAYS return a boolean whether the value was changed. Otherwise it can break.

For actual filling, please use fill_with(). It offers richer interface for filling.

Returns

A boolean whether it changed the value or not.

class airgun.views.virtwho_configure.VirtwhoConfiguresView(parent, logger=None, **kwargs)

Base view for Satellite pages

title
new
table
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.virtwho_configure.VirtwhoConfigureCreateView(parent, logger=None, **kwargs)

Base view for Satellite pages

class HypervisorForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

server
username
password
class LibvirtForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

server
username
class KubevirtForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

server
kubeconfig
class NutanixForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

server
username
password
prism_flavor
filtering_content
class FilterUnlimitedForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

class FilterWhitelistForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

filter_hosts
filter_host_parents
class FilterBlacklistForm(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

exclude_hosts
exclude_host_parents
breadcrumb
name
interval
satellite_url
hypervisor_id
debug
proxy
no_proxy
filtering
filtering_content
hypervisor_type
hypervisor_content
submit
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.virtwho_configure.VirtwhoConfigureEditView(parent, logger=None, **kwargs)

Base view for Satellite pages

property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.virtwho_configure.VirtwhoConfigureDetailsView(parent, logger=None, **kwargs)

Base view for Satellite pages

class overview(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

status
debug
hypervisor_type
hypervisor_server
hypervisor_username
interval
satellite_url
hypervisor_id
filtering
filter_hosts
filter_host_parents
exclude_hosts
exclude_host_parents
proxy
no_proxy
kubeconfig_path
prism_flavor
_label_locator = //span[contains(@class, '{class_name}')]/../preceding-sibling::div/strong
status_label
debug_label
hypervisor_type_label
hypervisor_server_label
hypervisor_username_label
interval_label
satellite_url_label
hypervisor_id_label
filtering_label
filter_hosts_label
filter_host_parents_label
exclude_hosts_label
exclude_host_parents_label
proxy_label
no_proxy_label
kubeconfig_path_label
prism_flavor_label
class deploy(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

command
script
download
breadcrumb
edit
delete
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool