From c2c43594b109174263eb9df3fb12052a6e48d90a Mon Sep 17 00:00:00 2001 From: Juan Abia Date: Tue, 5 Jul 2022 10:25:42 +0200 Subject: [PATCH] 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. --- test/cases/filesystem.sh | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/test/cases/filesystem.sh b/test/cases/filesystem.sh index 4fd0a604a..1a25545d6 100644 --- a/test/cases/filesystem.sh +++ b/test/cases/filesystem.sh @@ -169,6 +169,26 @@ size = 131072000 [[customizations.filesystem]] mountpoint = "/var/tmp" 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 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}")" 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}") if $EXISTS; then greenprint "INFO: mountpoint $MOUNTPOINT exists"