Skip to content

Commit 5195a47

Browse files
Format Python file
1 parent b5c7adb commit 5195a47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/templates/kuttl/smoke/test_metrics.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ def check_metrics(
1717
assert response.ok, "Requesting metrics failed"
1818

1919
for metric in expected_metrics:
20-
assert (
21-
re.search(f"^{metric}", response.text, re.MULTILINE) is not None
22-
), f"Metric '{metric}' not found for {role}"
20+
assert re.search(f"^{metric}", response.text, re.MULTILINE) is not None, (
21+
f"Metric '{metric}' not found for {role}"
22+
)
2323

2424

2525
def check_namenode_metrics(
@@ -97,7 +97,6 @@ def check_journalnode_metrics(
9797
'hadoop_journalnode_num_active_sources{kind="MetricsSystem",role="JournalNode",service="HDFS",sub="Stats"}',
9898
# Non-special metric
9999
'hadoop_journalnode_bytes_written{kind="Journal-hdfs",role="JournalNode",service="HDFS"}',
100-
101100
# There is no boolean metric in JournalNode.
102101
]
103102

0 commit comments

Comments
 (0)