Skip to content

Commit

Permalink
Fixed_graph_tc
Browse files Browse the repository at this point in the history
  • Loading branch information
pbajjuri20 committed Jun 23, 2021
1 parent 2a8424d commit ff5ca89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
14 changes: 5 additions & 9 deletions kiali_qe/components/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ class GraphType(StringEnum):


class GraphPageDisplayFilter(StringEnum):
REQUEST_RATE = ('Request Rate')
RESPONSE_TIME = ('Response Time')
THROUGHPUT = ('Throughput')
REQUEST_DISTRIBUTION = ('Request Distribution')
CLUSTER_BOXES = ('Cluster Boxes')
NAMESPACE_BOXES = ('Namespace Boxes')
COMPRESSED_HIDE = ('Compressed Hide')
Expand All @@ -140,17 +144,9 @@ class GraphPageDisplayFilter(StringEnum):


class GraphPageBadgesFilter(StringEnum):
CIRCUIT_BREAKERS = ('Circuit Breakers')
VIRTUAL_SERVICES = ('Virtual Services')
MISSING_SIDECARS = ('Missing Sidecars')
SECURITY = ('Security')


class EdgeLabelsFilter(StringEnum):
NO_LABEL = ('No Label')
REQUEST_RATE = ('Request Rate')
REQUEST_DISTRIBUTION = ('Request Distribution')
RESPONSE_TIME = ('Response Time')
VIRTUAL_SERVICES = ('Virtual Services')


class ApplicationsPageFilter(StringEnum):
Expand Down
11 changes: 0 additions & 11 deletions kiali_qe/tests/test_graph_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
GraphPageDisplayFilter,
GraphType,
GraphPageLayout,
EdgeLabelsFilter,
TimeIntervalUIText,
GraphRefreshInterval
)
Expand Down Expand Up @@ -75,25 +74,15 @@ def test_filter(browser):
options_defined = [item.text for item in GraphPageBadgesFilter]
for item in GraphPageDisplayFilter:
options_defined.append(item.text)
edge_options_defined = [item.text for item in EdgeLabelsFilter]
options_listed = page.filter.items
edge_options_listed = page.filter.radio_items
logger.debug('Filter options[defined:{}, listed:{}]'
.format(options_defined, options_listed))
logger.debug('Radio options[defined:{}, listed:{}]'
.format(edge_options_defined, edge_options_listed))
assert is_equal(options_defined, options_listed), \
('Filter Options mismatch: defined:{}, listed:{}'
.format(options_defined, options_listed))
assert is_equal(edge_options_defined, edge_options_listed), \
('Radio Options mismatch: defined:{}, listed:{}'
.format(edge_options_defined, edge_options_listed))
# enable disable each filter
for filter_name in options_listed:
_filter_test(page, filter_name)
# select each filter in radio
for filter_name in edge_options_listed:
_filter_test(page, filter_name, uncheck=False)


@pytest.mark.p_atomic
Expand Down

0 comments on commit ff5ca89

Please sign in to comment.