Skip to content

Commit 4996847

Browse files
committed
precommit
1 parent e4a600f commit 4996847

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

apps/ny_tlc_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
need to be submitted along with the job.
1010
--output Path to write the report as a CSV file.
1111
"""
12+
1213
import argparse
1314

1415
from argparse import Namespace

rust/operator-binary/src/connect/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ use stackable_operator::{
3838
use super::crd::CONNECT_APP_NAME;
3939
use crate::{
4040
connect::{
41+
GRPC, HTTP,
4142
common::{self, SparkConnectRole, object_name},
4243
crd::{
4344
CONNECT_GRPC_PORT, CONNECT_UI_PORT, DEFAULT_SPARK_CONNECT_GROUP_NAME,

tests/templates/kuttl/logging/test_log_aggregation.py

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
def check_sent_events():
66
response = requests.post(
7-
'http://spark-vector-aggregator:8686/graphql',
7+
"http://spark-vector-aggregator:8686/graphql",
88
json={
9-
'query': """
9+
"query": """
1010
{
1111
transforms(first:100) {
1212
nodes {
@@ -20,29 +20,30 @@ def check_sent_events():
2020
}
2121
}
2222
"""
23-
}
23+
},
2424
)
2525

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

2930
result = response.json()
3031

31-
transforms = result['data']['transforms']['nodes']
32+
transforms = result["data"]["transforms"]["nodes"]
3233
for transform in transforms:
33-
sentEvents = transform['metrics']['sentEventsTotal']
34-
componentId = transform['componentId']
34+
sentEvents = transform["metrics"]["sentEventsTotal"]
35+
componentId = transform["componentId"]
3536

36-
if componentId == 'filteredInvalidEvents':
37-
assert sentEvents is None or \
38-
sentEvents['sentEventsTotal'] == 0, \
39-
'Invalid log events were sent.'
37+
if componentId == "filteredInvalidEvents":
38+
assert sentEvents is None or sentEvents["sentEventsTotal"] == 0, (
39+
"Invalid log events were sent."
40+
)
4041
else:
41-
assert sentEvents is not None and \
42-
sentEvents['sentEventsTotal'] > 0, \
42+
assert sentEvents is not None and sentEvents["sentEventsTotal"] > 0, (
4343
f'No events were sent in "{componentId}".'
44+
)
4445

4546

46-
if __name__ == '__main__':
47+
if __name__ == "__main__":
4748
check_sent_events()
48-
print('Test successful!')
49+
print("Test successful!")

tests/templates/kuttl/pyspark-ny-public-s3/ny_tlc_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
need to be submitted along with the job.
1010
--output Path to write the report as a CSV file.
1111
"""
12+
1213
import argparse
1314

1415
from argparse import Namespace

0 commit comments

Comments
 (0)