Merge pull request #8135 from dokku/8093-client-remote-parsing

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-20 03:35:23 -05:00
committed by GitHub
4 changed files with 208 additions and 18 deletions

View File

@@ -148,7 +148,7 @@ assert_output_contains() {
input="${input/$expected/}"
found=$((found + 1))
done
assert_equal "$count" "$found"
[[ "$count" -eq "$found" ]] || flunk "expected $count occurrences of '$expected', found $found"
}
assert_output_not_contains() {
@@ -374,20 +374,6 @@ deploy_app() {
git push target "master:${GIT_REMOTE_BRANCH}" || destroy_app $?
}
setup_client_repo() {
local TMP
TMP=$(mktemp -d "/tmp/${DOKKU_DOMAIN}.XXXXX")
rmdir "$TMP" && cp -r "${BATS_TEST_DIRNAME}/../../tests/apps/nodejs-express" "$TMP"
cd "$TMP" || exit 1
git init
git config user.email "robot@example.com"
git config user.name "Test Robot"
[[ -f gitignore ]] && mv gitignore .gitignore
git add .
git commit -m 'initial commit'
}
setup_test_tls() {
local TLS_TYPE="$1"
local TLS="/home/dokku/$TEST_APP/tls"