Ejemplo n.º 1
0
 class details(SatTab):
     name = EditableEntry(name='Name')
     description = EditableEntry(name='Description')
     hosts_limit = EditableLimitEntry(name='Host Limit')
     service_level = EditableEntrySelect(name='Service Level')
     lce = ParametrizedView.nested(LCESelectorGroup)
     content_view = EditableEntrySelect(name='Content View')
Ejemplo n.º 2
0
 class details(SatTab):
     name = EditableEntry(name='Name')
     description = EditableEntry(name='Description')
     content_hosts = ReadOnlyEntry(
         locator=(".//dt[contains(., 'Content Hosts')]/following-sibling"
                  "::dd/a[not(contains(@class, 'ng-hide'))][1]")
     )
     content_host_limit = EditableLimitEntry(name='Content Host Limit')
     # Package Installation, Removal, and Update
     manage_packages = Text(".//a[@ng-click='openPackagesModal()']")
     # Errata Installation
     install_errata = Text(".//a[@ng-click='openErrataModal()']")
     # Change assigned Lifecycle Environment or Content View
     change_assigned_content = Text(
         ".//a[@ng-click='openEnvironmentModal()']")
Ejemplo n.º 3
0
class ActivationKeyEditView(BaseLoggedInView):
    return_to_all = Text("//a[text()='Activation Keys']")
    name = EditableEntry(name='Name')
    description = EditableEntry(name='Description')
    hosts_limit = EditableLimitEntry(name='Host Limit')
    service_level = EditableEntrySelect(name='Service Level')
    action_list = SelectActionList()
    dialog = ConfirmationDialog()
    lce = LCESelector()

    @property
    def is_displayed(self):
        return self.browser.wait_for_element(self.return_to_all,
                                             exception=False) is not None

    @View.nested
    class subscriptions(SatTab):
        @View.nested
        class resources(AddRemoveResourcesView):
            checkbox_locator = (
                './/table//tr[td[normalize-space(.)="%s"]]'
                '/following-sibling::tr//input[@type="checkbox"]')