test: separate test for git name/email
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

See coop-cloud/abra#405
This commit is contained in:
decentral1se 2024-06-22 18:46:28 +02:00
parent b2485cc122
commit 40517171f7
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -23,14 +23,14 @@ teardown(){
}
@test "create new recipe" {
run $ABRA recipe new foobar --git-name foo --git-email foo@example.com
run $ABRA recipe new foobar
assert_success
assert_output --partial 'Your new foobar recipe has been created'
assert_exists "$ABRA_DIR/recipes/foobar"
}
@test "create new app from new recipe" {
run $ABRA recipe new foobar --git-name foo --git-email foo@example.com
run $ABRA recipe new foobar
assert_success
run $ABRA app new foobar \
@ -40,3 +40,16 @@ teardown(){
assert_success
assert_output --partial 'A new foobar app has been created!'
}
@test "create new recipe with git credentials" {
run $ABRA recipe new foobar --git-name fooUser --git-email foo@example.com
assert_success
assert_output --partial 'Your new foobar recipe has been created'
assert_exists "$ABRA_DIR/recipes/foobar"
run bash -c 'git -C "$ABRA_DIR/recipes/foobar" log -n 1'
assert_success
assert_output --partial 'fooUser'
assert_output --partial 'foo@example.com'
}