Skip to content

Commit

Permalink
Merge pull request #18520 from ygalblum/quadlet-test-notify
Browse files Browse the repository at this point in the history
Quadlet system tests - fix socket notification
  • Loading branch information
openshift-merge-robot authored May 9, 2023
2 parents 6613e50 + 8aaa13a commit 287a419
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/system/252-quadlet.bats
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ EOF
[Container]
Rootfs=/:O
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
Notify=yes
EOF

run_quadlet "$quadlet_file"
Expand All @@ -467,7 +468,7 @@ EOF
[Container]
Image=$IMAGE
SecurityLabelDisable=true
Exec=sh -c "echo STARTED CONTAINER; echo "READY=1" | socat -u STDIN unix-sendto:\$NOTIFY_SOCKET; top"
Exec=sh -c "echo STARTED CONTAINER; top"
EOF

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

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

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

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

run_quadlet "$quadlet_file"
Expand Down

0 comments on commit 287a419

Please sign in to comment.