Skip to content

Commit 0a2fee2

Browse files
committed
chore: lint fixes
1 parent 41cfb91 commit 0a2fee2

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

tests/templates/kuttl/authorizer/authcheck.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ def create_user(user_name, coordinator_host):
3939
namespace = sys.argv[2]
4040

4141
# Build FQDN for coordinator for TLS/SNI validation
42-
coordinator_host = f"derby-druid-coordinator-default-headless.{namespace}.svc.cluster.local"
42+
coordinator_host = (
43+
f"derby-druid-coordinator-default-headless.{namespace}.svc.cluster.local"
44+
)
4345

4446
print("CREATING USERS")
4547
create_user("alice", coordinator_host)

tests/templates/kuttl/commons/ingestioncheck.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ def query_datasource(self, url, sql, expected, iterations):
5353
druid = DruidClient()
5454

5555
# Build FQDNs for TLS/SNI validation
56-
coordinator_host = f"{druid_cluster_name}-coordinator-default-headless.{namespace}.svc.cluster.local"
57-
broker_host = f"{druid_cluster_name}-broker-default-headless.{namespace}.svc.cluster.local"
56+
coordinator_host = (
57+
f"{druid_cluster_name}-coordinator-default-headless.{namespace}.svc.cluster.local"
58+
)
59+
broker_host = (
60+
f"{druid_cluster_name}-broker-default-headless.{namespace}.svc.cluster.local"
61+
)
5862

5963
print("""
6064
Query tasks

tests/templates/kuttl/logging/test_log_aggregation.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def check_sent_events():
2323
},
2424
)
2525

26-
assert (
27-
response.status_code == 200
28-
), "Cannot access the API of the vector aggregator."
26+
assert response.status_code == 200, (
27+
"Cannot access the API of the vector aggregator."
28+
)
2929

3030
result = response.json()
3131

@@ -35,13 +35,13 @@ def check_sent_events():
3535
componentId = transform["componentId"]
3636

3737
if componentId == "filteredInvalidEvents":
38-
assert (
39-
sentEvents is None or sentEvents["sentEventsTotal"] == 0
40-
), "Invalid log events were sent."
38+
assert sentEvents is None or sentEvents["sentEventsTotal"] == 0, (
39+
"Invalid log events were sent."
40+
)
4141
else:
42-
assert (
43-
sentEvents is not None and sentEvents["sentEventsTotal"] > 0
44-
), f'No events were sent in "{componentId}".'
42+
assert sentEvents is not None and sentEvents["sentEventsTotal"] > 0, (
43+
f'No events were sent in "{componentId}".'
44+
)
4545

4646

4747
if __name__ == "__main__":

0 commit comments

Comments
 (0)