Skip to content

Commit

Permalink
moar debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Feb 20, 2024
1 parent 0d38756 commit c9db0c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions providers/mittwald.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ auth_command:
mw context set --installation-id "${MITTWALD_APP_INSTALLATION_ID}"
mw context set --project-id "$(mw app get -ojson | jq -r '.projectId')"
ssh-add -l
mw app ssh --test
db_pull_command:
Expand All @@ -37,6 +38,8 @@ db_pull_command:
files_import_command:
command: |
set -e -o pipefail
set -x
mw app download --target "${DDEV_FILES_DIR}"
# push is a dangerous command. If not absolutely needed it's better to delete these lines.
Expand Down
10 changes: 7 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ teardown() {

@test "can pull code from remote" {
set -eu -o pipefail
set -x


cd ${TESTDIR}

export MITTWALD_SKIP_CONFIG=yes
Expand All @@ -60,8 +59,13 @@ teardown() {

echo "${MITTWALD_SSH_PRIVATE_KEY}" | docker exec -i ddev-ssh-agent ssh-add -

run docker exec ddev-ssh-agent ssh-add -l
echo $output

echo "# ddev pull with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev pull mittwald

run ddev pull mittwald >&3
echo $output

health_checks
}
Expand Down

0 comments on commit c9db0c4

Please sign in to comment.