chore: run shfmt against all test files

This commit is contained in:
Jose Diaz-Gonzalez
2022-07-21 14:57:42 -04:00
parent e6b9851b52
commit 9d332e9b2d
31 changed files with 85 additions and 92 deletions

View File

@@ -14,14 +14,17 @@ setup() {
create_key
# Test key without a trailing newline
echo -n "$KEY" > /tmp/testkey-no-newline.pub
echo -n "$KEY" >/tmp/testkey-no-newline.pub
# the temporary key is useful for adding in the file with two keys
# useful for a negative test
{ cat /tmp/testkey.pub ; echo "$KEY" ; } > /tmp/testkey-double.pub
{
cat /tmp/testkey.pub
echo "$KEY"
} >/tmp/testkey-double.pub
# another negative test input
echo 'invalid!' > /tmp/testkey-invalid.pub
echo 'invalid!' >/tmp/testkey-invalid.pub
# save current authorized_keys to remove all changes afterwards
cp "${DOKKU_ROOT:-/home/dokku}/.ssh/authorized_keys" /tmp/testkey-authorized_keys
@@ -294,7 +297,6 @@ teardown() {
assert_equal "$output" "1"
}
@test "(ssh-keys) ssh-keys:list --format invalid" {
run /bin/bash -c "dokku ssh-keys:list --format invalid"
echo "output: $output"