Skip to content

Commit 287a419

Browse files
Merge pull request #18520 from ygalblum/quadlet-test-notify
Quadlet system tests - fix socket notification
2 parents 6613e50 + 8aaa13a commit 287a419

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/system/252-quadlet.bats

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ EOF
450450
[Container]
451451
Rootfs=/:O
452452
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
453+
Notify=yes
453454
EOF
454455

455456
run_quadlet "$quadlet_file"
@@ -467,7 +468,7 @@ EOF
467468
[Container]
468469
Image=$IMAGE
469470
SecurityLabelDisable=true
470-
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
471+
Exec=sh -c "echo STARTED CONTAINER; top"
471472
EOF
472473

473474
run_quadlet "$quadlet_file"
@@ -494,7 +495,7 @@ Image=$IMAGE
494495
SecurityLabelType=spc_t
495496
SecurityLabelLevel=s0:c100,c200
496497
SecurityLabelFileType=container_ro_file_t
497-
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
498+
Exec=sh -c "echo STARTED CONTAINER; top"
498499
EOF
499500

500501
run_quadlet "$quadlet_file"
@@ -523,6 +524,7 @@ ContainerName=$NAME
523524
Image=$IMAGE
524525
Secret=$SECRET_NAME,type=env,target=MYSECRET
525526
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
527+
Notify=yes
526528
EOF
527529

528530
run_quadlet "$quadlet_file"
@@ -549,6 +551,7 @@ ContainerName=$NAME
549551
Image=$IMAGE
550552
Secret=$SECRET_NAME,type=mount,target=/root/secret
551553
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
554+
Notify=yes
552555
EOF
553556

554557
run_quadlet "$quadlet_file"
@@ -578,6 +581,7 @@ EOF
578581
Image=$IMAGE
579582
Volume=%T/$tmp_dir:/test_content:Z
580583
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
584+
Notify=yes
581585
EOF
582586

583587
run_quadlet "$quadlet_file"

0 commit comments

Comments
 (0)