Skip to content

Commit f44365f

Browse files
committed
Expand the GARDEN_ROOTFS_DRIVER unit test
1 parent 4a058db commit f44365f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/unit_tests.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,24 @@ testConfig() {
5353
VALUES_FILE="$(cat $ROOT_DIR/buildtest/scf-config-values.yaml)"
5454
assertContains 'generates correctly AUTOSCALER' "$VALUES_FILE" "autoscaler: true"
5555

56+
make clean
57+
58+
export BACKEND=kind
59+
export GARDEN_ROOTFS_DRIVER=test
60+
make buildir scf-gen-config
61+
62+
VALUES_FILE="$(cat $ROOT_DIR/buildtest/scf-config-values.yaml)"
63+
assertContains 'generates correctly GARDEN_ROOTFS_DRIVER ' "$VALUES_FILE" "GARDEN_ROOTFS_DRIVER: \"test\""
5664

57-
BACKEND=caasp4os make scf-gen-config
65+
66+
make clean
67+
68+
unset GARDEN_ROOTFS_DRIVER
69+
export BACKEND=caasp4os
70+
make buildir scf-gen-config
5871
VALUES_FILE="$(cat $ROOT_DIR/buildtest/scf-config-values.yaml)"
5972
assertContains 'generates correctly GARDEN_ROOTFS_DRIVER for caasp' "$VALUES_FILE" "GARDEN_ROOTFS_DRIVER: \"btrfs\""
73+
6074
}
6175

6276
# Tests backend switch

0 commit comments

Comments
 (0)