Skip to content

Commit 516f74a

Browse files
committed
test: adapt unit tests
1 parent 5b7fc8c commit 516f74a

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

rust/operator-binary/src/crd/affinity.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,20 @@ mod tests {
7777
host: airflow-postgresql
7878
database: airflow
7979
credentialsSecretName: airflow-postgresql-credentials
80-
webservers:
81-
roleGroups:
82-
default:
83-
replicas: 1
84-
celeryExecutors:
85-
resultBackend:
80+
celeryResultsBackend:
8681
postgresql:
8782
host: airflow-postgresql
8883
database: airflow
8984
credentialsSecretName: airflow-postgresql-credentials
90-
broker:
85+
celeryBroker:
9186
redis:
9287
host: airflow-redis-master
9388
credentialsSecretName: airflow-redis-credentials
89+
webservers:
90+
roleGroups:
91+
default:
92+
replicas: 1
93+
celeryExecutors:
9494
roleGroups:
9595
default:
9696
replicas: 2

rust/operator-binary/src/crd/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,15 @@ mod tests {
12451245
host: airflow-postgresql
12461246
database: airflow
12471247
credentialsSecretName: airflow-postgresql-credentials
1248+
celeryResultsBackend:
1249+
postgresql:
1250+
host: airflow-postgresql
1251+
database: airflow
1252+
credentialsSecretName: airflow-postgresql-credentials
1253+
celeryBroker:
1254+
redis:
1255+
host: airflow-redis-master
1256+
credentialsSecretName: airflow-redis-credentials
12481257
authentication:
12491258
- authenticationClass: my-ldap
12501259
userRegistrationRole: Admin
@@ -1300,15 +1309,6 @@ mod tests {
13001309
FILE_HEADER: |
13011310
COMMON_HEADER_VAR = "group-value"
13021311
celeryExecutors:
1303-
resultBackend:
1304-
postgresql:
1305-
host: airflow-postgresql
1306-
database: airflow
1307-
credentialsSecretName: airflow-postgresql-credentials
1308-
broker:
1309-
redis:
1310-
host: airflow-redis-master
1311-
credentialsSecretName: airflow-redis-credentials
13121312
config:
13131313
logging:
13141314
enableVectorAgent: true

0 commit comments

Comments
 (0)