示例#1
0
class IstioConfigPage(RootPage):
    PAGE_MENU = MENU.ISTIO_CONFIG.text

    namespace = NamespaceFilter()
    filter = Filter()
    sort = SortBar()
    actions = ConfigActions()
    refresh = Button(locator=REFRESH_BUTTON)
    content = ListViewIstioConfig()
示例#2
0
class ApplicationsPage(RootPage):
    PAGE_MENU = MENU.APPLICATIONS.text

    namespace = NamespaceFilter()
    filter = Filter()
    sort = SortBar()
    duration = DropDown(locator=XP_DROP_DOWN.format('time_range_duration'))
    interval = DropDown(locator=XP_DROP_DOWN.format('time_range_refresh'))
    refresh = Button(locator=REFRESH_BUTTON)
    content = ListViewApplications()
示例#3
0
class OverviewPage(RootPage):
    PAGE_MENU = MENU.OVERVIEW.text

    filter = Filter()
    sort = SortDropDown(locator=SORT_DROP_DOWN.format('sort_selector'))
    type = TypeDropDown(locator=XP_DROP_DOWN.format('overview-type'))
    duration = DropDown(locator=XP_DROP_DOWN.format('time_range_duration'))
    interval = DropDown(locator=XP_DROP_DOWN.format('time_range_refresh'))
    refresh = Button(locator=REFRESH_BUTTON)
    content = ListViewOverview()
示例#4
0
class GraphPage(RootPage):
    PAGE_MENU = MENU.GRAPH.text

    namespace = DropDown(locator=XP_DROP_DOWN.format('namespace-selector'))
    duration = DropDown(
        locator=XP_DROP_DOWN.format('graph_filter_interval_duration'))
    layout = DropDown(locator=XP_DROP_DOWN.format('graph_filter_layouts'))
    edge_labels = DropDown(locator=XP_DROP_DOWN.format('graph_filter_edges'))
    filter = CheckBoxFilter()
    refresh = Button(locator='.//button//*[contains(@class, "fa-refresh")]')
示例#5
0
class ServicesPage(RootPage):
    PAGE_MENU = MENU.SERVICES.text

    namespace = NamespaceFilter()
    filter = Filter()
    sort = SortBar()
    duration = DropDown(locator=XP_DROP_DOWN.format('time_range_duration'))
    interval = DropDown(locator=XP_DROP_DOWN.format('time_range_refresh'))
    refresh = Button(locator=REFRESH_BUTTON)
    actions = Actions()
    content = ListViewServices()
示例#6
0
class GraphPage(RootPage):
    PAGE_MENU = MENU.GRAPH.text

    namespace = NamespaceFilter()
    duration = ItemDropDown(locator=XP_DROP_DOWN.format('time_range_duration'))
    interval = ItemDropDown(locator=XP_DROP_DOWN.format('time_range_refresh'))
    edge_labels = DropDown(locator=XP_DROP_DOWN.format('graph_filter_edge_labels'))
    type = ItemDropDown(locator=XP_DROP_DOWN.format('graph_filter_view_type'))
    graph_find = FilterInput(locator='//input[@id="graph_find"]')
    graph_hide = FilterInput(locator='//input[@id="graph_hide"]')
    layout = GraphLayout()
    filter = GraphDisplayFilter("Display")
    refresh = Button(locator=REFRESH_BUTTON)
    side_panel = GraphSidePanel()