diff --git a/tests/cli/test_blueprints_sanity.sh b/tests/cli/test_blueprints_sanity.sh index 066c473c..4753b36c 100755 --- a/tests/cli/test_blueprints_sanity.sh +++ b/tests/cli/test_blueprints_sanity.sh @@ -41,6 +41,7 @@ __EOF__ rlRun -t -c "$CLI blueprints push beakerlib.toml" rlAssertEquals "pushed bp is found via list" "`$CLI blueprints list | grep beakerlib`" "beakerlib" + rlAssertExists "$BLUEPRINTS_DIR/git/workspace/master/beakerlib.toml" rlPhaseEnd rlPhaseStartTest "blueprints show" @@ -69,6 +70,7 @@ __EOF__ rlPhaseStartTest "blueprints delete" rlRun -t -c "$CLI blueprints delete beakerlib" rlAssertEquals "bp not found after delete" "`$CLI blueprints list | grep beakerlib`" "" + rlAssertNotExists "$BLUEPRINTS_DIR/git/workspace/master/beakerlib.toml" rlPhaseEnd rlPhaseStartTest "start a compose with deleted blueprint" diff --git a/tests/test_cli.sh b/tests/test_cli.sh index dc4c7d1b..0a668db9 100755 --- a/tests/test_cli.sh +++ b/tests/test_cli.sh @@ -48,6 +48,7 @@ if [ -z "$CLI" ]; then . ./tests/testenv.sh BLUEPRINTS_DIR=`mktemp -d '/tmp/composer-blueprints.XXXXX'` + export BLUEPRINTS_DIR cp ./tests/pylorax/blueprints/*.toml $BLUEPRINTS_DIR SHARE_DIR=`mktemp -d '/tmp/composer-share.XXXXX'` @@ -59,6 +60,7 @@ if [ -z "$CLI" ]; then ./src/sbin/lorax-composer --sharedir $SHARE_DIR $BLUEPRINTS_DIR & else export PACKAGE="composer-cli" + export BLUEPRINTS_DIR="/var/lib/lorax/composer/blueprints" systemctl stop lorax-composer setup_tests /usr/share/lorax /var/lib/lorax/composer/blueprints systemctl start lorax-composer