test: less fragile integration suite [ci skip]
See coop-cloud/organising#584 See coop-cloud/organising#595
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user