Exemple #1
0
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.title.text
                in {self.context['object'].name, 'Service Details'})

    notification = Notification()
    policy = SSUIDropdown('Policy')
    power_operations = Kebab(
        locator='.//div[contains(@class, "dropdown-kebab-pf") and ./button][1]'
    )
    access_dropdown = SSUIAppendToBodyDropdown('Access')
    remove_service = Button("Remove Service")
    configuration = SSUIDropdown('Configuration')
    lifecycle = SSUIDropdown('Lifecycle')
    console_button = Button(tooltip="HTML5 console",
                            classes=['open-console-button'])
    retirement_state = TextInput(
        locator=".//label[text()='Retirement State']/parent::div/div/input")
    resource_power_status = PowerIcon(
        ".//span/i[contains(@class, 'pficon') and contains("
        "@uib-tooltip,'Power State')]")
    standard_output = Text('.//div[@class="well"]')
Exemple #2
0
class DetailsServiceCatalogsView(OrderForm):
    title = Text(locator='//li[@class="active"]')

    notification = Notification()
    add_to_shopping_cart = Button('Add to Shopping Cart')
    shopping_cart = Text('.//li/a[@title="Shopping cart"]')

    @property
    def is_displayed(self):
        return (self.in_service_catalogs
                and self.title.text == self.context['object'].name)
Exemple #3
0
class MyServicesView(SSUIBaseLoggedInPage):
    title = Text(locator='//li[@class="active"]')
    service = SSUIlist()
    notification = Notification()

    @property
    def in_myservices(self):
        return (self.logged_in_as_current_user
                and self.navigation.currently_selected == ["", "My Services"])

    @property
    def is_displayed(self):
        return self.in_myservices and self.title.text == "My Services"
Exemple #4
0
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and
                self.title.text in {self.context['object'].name, 'Service Details'})

    notification = Notification()
    policy = SSUIDropdown('Policy')
    power_operations = SSUIDropdown('Power Operations')
    access_dropdown = SSUIAppendToBodyDropdown('Access')
    remove_service = Button("Remove Service")
    configuration = SSUIDropdown('Configuration')
    lifecycle = SSUIDropdown('Lifecycle')
    console_button = Button(tooltip="HTML5 console", classes=['open-console-button'])
Exemple #5
0
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.title.text
                in {self.context['object'].name, 'Service Details'})

    notification = Notification()
    policy = SSUIDropdown('Policy')
    power_operations = VersionPicker({
        LATEST: SSUIDropdown("Power Operations"),
        "5.10": Kebab()
    })
    access_dropdown = SSUIAppendToBodyDropdown('Access')
    remove_service = Button("Remove Service")
    configuration = SSUIDropdown('Configuration')
    lifecycle = SSUIDropdown('Lifecycle')
    console_button = Button(tooltip="HTML5 console",
                            classes=['open-console-button'])
    resource_power_status = PowerIcon(
        ".//span/i[contains(@class, 'pficon') and contains("
        "@uib-tooltip,'Power State')]")