示例#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"]')
示例#2
0
class MyServiceVMDetailsView(MyServicesView):
    # TODO: This view needs enhancement by FA owner.
    #  TimelinesChart Widget not supporting completely need improvements as per SSUI.

    snapshots = SSUIDropdown("Snapshots")
    power_operations = SSUIDropdown("Power Operations")
    timeline = TimelinesChart(locator='.//*[@class="timeline"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.timeline.is_displayed
                and self.power_operations.is_displayed)
示例#3
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'})

    configuration = SSUIDropdown('Configuration')
    policy_btn = SSUIDropdown('Policy')
    lifecycle_btn = SSUIDropdown('Lifecycle')
    power_operations = SSUIDropdown('Download')
示例#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'])
示例#5
0
class MyServiceVMDetailsView(MyServicesView):
    # TODO: This view needs enhancement by FA owner.
    #  TimelinesChart Widget not supporting completely need improvements as per SSUI.

    # I won't found better way than indexing on this Page.
    vm_info = SSUICardPFInfoStatus(
        locator="(.//div[contains(@class, 'card-pf-info-status')])[1]")
    provider_info = SSUICardPFInfoStatus(
        locator="(.//div[contains(@class, 'card-pf-info-status')])[2]")
    snapshots = SSUIDropdown("Snapshots")
    power_operations = SSUIDropdown("Power Operations")
    timeline = TimelinesChart(locator='.//*[@class="timeline"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.timeline.is_displayed
                and self.power_operations.is_displayed)
示例#6
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')]")