Skip to content

Commit

Permalink
Merge pull request #72 from dyne/refactor-uniregistrar
Browse files Browse the repository at this point in the history
test(uniregistrar): 🚨 make easier to test flow also on uniregistrar.io
  • Loading branch information
andrea-dintino authored May 16, 2024
2 parents 9d369a8 + d64372e commit 8077471
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions universal-registrar/test/post.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
#!/bin/env bash

# path to keyring
key_path="universal-registrar/test/keyring.json"

# Used when testing on uniregistrar.io, may break testing of dockerimage
method="?method=dyne"

# Set endpoint to uni-registrar
# user "http://localhost:3000/1.0/" to test in localhost
endpoint="https://uniregistrar.io/1.0/"


call_api() {
curl -X 'POST' -o output.json \
"http://localhost:3000/1.0/${1}" \
"${endpoint}${1}${method}" \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Expand All @@ -18,7 +27,7 @@ call_api() {
zenroom -z -a output.json -k keyring.json sign.zen > res.json

curl -X 'POST' \
"http://localhost:3000/1.0/${1}" \
"${endpoint}${1}${method}" \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
Expand Down

0 comments on commit 8077471

Please sign in to comment.