test/cases: add new mountpoints in filesystem.sh
There are a list of mountpoints in the documentation, but only some of this mountpoints are tested in the test filesystem.sh. Add the ones missing.
This commit is contained in:
parent
907b4a8686
commit
c2c43594b1
1 changed files with 21 additions and 1 deletions
|
|
@ -169,6 +169,26 @@ size = 131072000
|
||||||
[[customizations.filesystem]]
|
[[customizations.filesystem]]
|
||||||
mountpoint = "/var/tmp"
|
mountpoint = "/var/tmp"
|
||||||
size = 131072000
|
size = 131072000
|
||||||
|
|
||||||
|
[[customizations.filesystem]]
|
||||||
|
mountpoint = "/home"
|
||||||
|
size = 131072000
|
||||||
|
|
||||||
|
[[customizations.filesystem]]
|
||||||
|
mountpoint = "/opt"
|
||||||
|
size = 131072000
|
||||||
|
|
||||||
|
[[customizations.filesystem]]
|
||||||
|
mountpoint = "/srv"
|
||||||
|
size = 131072000
|
||||||
|
|
||||||
|
[[customizations.filesystem]]
|
||||||
|
mountpoint = "/app"
|
||||||
|
size = 131072000
|
||||||
|
|
||||||
|
[[customizations.filesystem]]
|
||||||
|
mountpoint = "/data"
|
||||||
|
size = 131072000
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
build_image "$BLUEPRINT_FILE" rhel85-custom-filesystem qcow2 false
|
build_image "$BLUEPRINT_FILE" rhel85-custom-filesystem qcow2 false
|
||||||
|
|
@ -182,7 +202,7 @@ greenprint "💬 Checking mountpoints"
|
||||||
INFO="$(sudo /usr/libexec/osbuild-composer-test/image-info "${IMAGE_FILENAME}")"
|
INFO="$(sudo /usr/libexec/osbuild-composer-test/image-info "${IMAGE_FILENAME}")"
|
||||||
FAILED_MOUNTPOINTS=()
|
FAILED_MOUNTPOINTS=()
|
||||||
|
|
||||||
for MOUNTPOINT in '/' '/var' '/var/log' '/var/log/audit' '/var/tmp' '/usr' '/tmp'; do
|
for MOUNTPOINT in '/' '/var' '/var/log' '/var/log/audit' '/var/tmp' '/usr' '/tmp' '/home' '/opt' '/srv' '/app' '/data'; do
|
||||||
EXISTS=$(jq -e --arg m "$MOUNTPOINT" 'any(.fstab[] | .[] == $m; .)' <<< "${INFO}")
|
EXISTS=$(jq -e --arg m "$MOUNTPOINT" 'any(.fstab[] | .[] == $m; .)' <<< "${INFO}")
|
||||||
if $EXISTS; then
|
if $EXISTS; then
|
||||||
greenprint "INFO: mountpoint $MOUNTPOINT exists"
|
greenprint "INFO: mountpoint $MOUNTPOINT exists"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue