Skip to content

Commit

Permalink
chore: stablize the smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
mabels committed Dec 5, 2024
1 parent 9e0023a commit eb5af34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion package-fireproof-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"@adviser/cement": "from-package-json",
"@fireproof/vendor": "from-package-json",
"@ipld/unixfs": "from-package-json",
"cborg": "from-package-json",
"multiformats": "from-package-json",
"charwise": "from-package-json",
"prolly-trees": "from-package-json",
Expand Down
6 changes: 4 additions & 2 deletions smoke/esm/it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ fi
$dockerCompose up -d
packageDir=../../dist/fireproof-core

user="admin$(date +%s)"
token=$(curl \
--retry 10 --retry-max-time 30 --retry-all-errors \
-X PUT \
-H "Content-type: application/json" \
-d '{ "name": "admin", "password": "admin" }' \
'http://localhost:4873/-/user/org.couchdb.user:admin' | jq .token)
-d "{ \"name\": \"$user\", \"password\": \"admin\" }" \
'http://localhost:4873/-/user/org.couchdb.user:$user' | jq .token)

echo "Token: $user:$token"
cat <<EOF > $packageDir/.npmrc
; .npmrc
enable-pre-post-scripts=true
Expand Down

0 comments on commit eb5af34

Please sign in to comment.