Skip to content

Commit efbae73

Browse files
test: Fix unit tests
1 parent 1116770 commit efbae73

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

rust/operator-binary/src/controller/build/role_group_builder.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,7 @@ mod tests {
21022102
let expected_vector_container = json!({
21032103
"args": [
21042104
concat!(
2105+
"mkdir --parents /stackable/log/_vector-state\n",
21052106
"# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file\n",
21062107
"vector & vector_pid=$!\n",
21072108
"if [ ! -f \"/stackable/log/_vector/shutdown\" ]; then\n",
@@ -2124,6 +2125,10 @@ mod tests {
21242125
"name": "CLUSTER_NAME",
21252126
"value":"my-opensearch-cluster",
21262127
},
2128+
{
2129+
"name": "DATA_DIR",
2130+
"value": "/stackable/log/_vector-state",
2131+
},
21272132
{
21282133
"name": "LOG_DIR",
21292134
"value": "/stackable/log",

rust/operator-binary/src/framework/product_logging/framework.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ mod tests {
397397
{
398398
"args": [
399399
concat!(
400+
"mkdir --parents /stackable/log/_vector-state\n",
400401
"# Vector will ignore SIGTERM (as PID != 1) and must be shut down by writing a shutdown trigger file\n",
401402
"vector & vector_pid=$!\n",
402403
"if [ ! -f \"/stackable/log/_vector/shutdown\" ]; then\n",
@@ -423,6 +424,10 @@ mod tests {
423424
"name": "CUSTOM_ENV",
424425
"value": "test",
425426
},
427+
{
428+
"name": "DATA_DIR",
429+
"value": "/stackable/log/_vector-state",
430+
},
426431
{
427432
"name": "LOG_DIR",
428433
"value": "/stackable/log",

0 commit comments

Comments
 (0)