test: less fragile integration suite [ci skip]

See coop-cloud/organising#584
See coop-cloud/organising#595
This commit is contained in:
2024-06-22 16:40:07 +02:00
parent a9ce2106c6
commit 2014cd6622
39 changed files with 249 additions and 425 deletions

View File

@ -27,8 +27,9 @@ setup(){
@test "abra directory is created" {
run $ABRA app ls
# no servers yet, so will fail. however, it will run the required code which
# checks if it should create these base directories and that is what we want
# NOTE(d1): no servers yet, so will fail. however, it will run the required
# code which checks if it should create these base directories and that is
# what we want
assert_failure
assert_exists "$ABRA_DIR"
@ -36,16 +37,13 @@ setup(){
assert_exists "$ABRA_DIR/recipes"
assert_exists "$ABRA_DIR/backups"
assert_exists "$ABRA_DIR/vendor"
assert_exists "$ABRA_DIR/catalogue"
assert_not_exists "$ABRA_DIR/catalogue"
}
@test "catalogue recipe is a git repository" {
run $ABRA app ls
# no servers yet, so will fail. however, it will run the required code which
# checks if it should create these base directories and that is what we want
assert_failure
run $ABRA recipe fetch "$TEST_RECIPE"
assert_success
assert_output --partial 'local recipe catalogue is missing'
assert_exists "$ABRA_DIR/catalogue"