From f5cebddc9db7de9d71184b8f570f6b7f7d2ea800 Mon Sep 17 00:00:00 2001 From: Jonathan Hall Date: Mon, 22 Jul 2024 17:02:56 +0200 Subject: [PATCH] debug --- .github/workflows/test.yaml | 5 +---- script/complete_couch2.sh | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index dc83d773e..0fe06e36e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,10 +29,7 @@ jobs: go-version: ${{ matrix.go-version }} - name: Prepare CouchDB run: | - echo user: ${COUCHDB_USER} - echo password: ${COUCHDB_PASSWORD} - export KIVIK_TEST_DSN_COUCH22=http://$COUCHDB_USER:${COUCHDB_PASSWORD}@couch2.2.0:5984/ - echo dsn ${KIVIK_TEST_DSN_COUCH22} | base64 + export KIVIK_TEST_DSN_COUCH22=http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@couch2.2.0:5984/ ./script/complete_couch2.sh ${KIVIK_TEST_DSN_COUCH22} - name: Run tests run: | diff --git a/script/complete_couch2.sh b/script/complete_couch2.sh index 587ee4de7..86b38cf10 100755 --- a/script/complete_couch2.sh +++ b/script/complete_couch2.sh @@ -1,5 +1,7 @@ #!/bin/sh -e +set -x + for db in _users _replicator _global_changes; do echo ${1}/${db} status=$(curl --silent --write-out "%{http_code}" -o /dev/null -u ${COUCHDB_USER}:${COUCHDB_PASSWORD} -X PUT "${1}/${db}")