Skip to content

Commit

Permalink
Merge pull request #120 from akakou/feature/release
Browse files Browse the repository at this point in the history
Feature/release
  • Loading branch information
akakou authored Sep 15, 2024
2 parents 9554b25 + a1a895a commit fa0426f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 305 deletions.
102 changes: 0 additions & 102 deletions test/api_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion test/env/ta.env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
RA_WEBS_TA_DOMAIN=
RA_WEBS_VERIFIER_BASE=
RA_WEBS_TA_REPOSITORY=
RA_WEBS_VERIFIER_BASE=
RA_WEBS_SERVICE_EMAIL=
RA_WEBS_SERVICE_TOKEN=
3 changes: 3 additions & 0 deletions test/env/verifier.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DB_CONFIG=file:db.sqlite3?_fk=1
RA_WEBS_VAPID_PUBLIC_KEY=
RA_WEBS_VAPID_PRIVATE_KEY=
56 changes: 0 additions & 56 deletions test/go.mod

This file was deleted.

143 changes: 0 additions & 143 deletions test/go.sum

This file was deleted.

3 changes: 3 additions & 0 deletions test/issue_service.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# ADMIN_TOKEN=""
# RA_WEBS_VERIFIER_BASE=""

export RA_WEBS_SERVICE_TOKEN=$(curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $ADMIN_TOKEN" $RA_WEBS_VERIFIER_BASE/api/service)

echo -en $RA_WEBS_SERVICE_TOKEN
Expand Down
8 changes: 5 additions & 3 deletions test/notify.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Verifier_BASE="http://localhost:8000"
ADMIN_TOKEN="5e3e410b035405a78ff7b40724f914cf8df49ddd6bf6f1554f11274a066ae8f37917e131800cdf6869e7c659b95bc2d5007bf9b5456bf36c072b3d7a88d1e952"
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $ADMIN_TOKEN" $Verifier_BASE/api/notifier -d '{"domain": "example.com", "body": "Hello, World!"}'
# ADMIN_TOKEN=""
# VERIFIER_BASE=""

DOMAIN=$1
MESSAGE=$2
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $ADMIN_TOKEN" $VERIFIER_BASE/api/notify -d "{\"domain\" : \"$DOMAIN\", \"body\" : \"$MESSAGE\"}"

0 comments on commit fa0426f

Please sign in to comment.