Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
flimzy committed Jul 22, 2024
1 parent 21089d2 commit 04d1afa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 6 additions & 0 deletions script/complete_couch2.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/sh -e

echo 1

sh -x

echo 2

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}")
Expand Down

0 comments on commit 04d1afa

Please sign in to comment.