summaryrefslogtreecommitdiffstats
path: root/tester.sh
diff options
context:
space:
mode:
authorYigit Sever2021-04-14 00:09:45 +0300
committerYigit Sever2021-04-14 00:09:45 +0300
commit891d0cb87ad98052cbd26692b61f31da9902dee1 (patch)
tree50120a3f9d894ec1fd4e9f1bd03e76850f92533a /tester.sh
parent51d82346d53a9b435fbbdb65ab0fceb8ce130b32 (diff)
downloadgradecoin-891d0cb87ad98052cbd26692b61f31da9902dee1.tar.gz
gradecoin-891d0cb87ad98052cbd26692b61f31da9902dee1.tar.bz2
gradecoin-891d0cb87ad98052cbd26692b61f31da9902dee1.zip
Revise tests
Diffstat (limited to 'tester.sh')
-rwxr-xr-xtester.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/tester.sh b/tester.sh
index 44bd8de..0323dcb 100755
--- a/tester.sh
+++ b/tester.sh
@@ -96,3 +96,26 @@ curl localhost:8080/transaction
96 96
97printf "\n\nShould have only one block\n\n" 97printf "\n\nShould have only one block\n\n"
98curl localhost:8080/block 98curl localhost:8080/block
99
100## new registration request
101## this student can hold a gradecoin account
102curl --request POST \
103 --header 'Content-Type: application/json' \
104 --data '{
105 "student_id": "e254275",
106 "public_key": "not_implemented_yet"
107 }' \
108 http://localhost:8080/register
109
110curl --request POST \
111 --header 'Content-Type: application/json' \
112 --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aGEiOiIyYjY0OGZmYWI1ZDlhZjFkNWQ1ZmMwNTJmYzllNTFiODgyZmM0ZmIwYzk5ODYwOGM5OTIzMmY5MjgyMDAwMDAwIiwiaWF0IjoxNjE4MzYwNjQxLCJleHAiOjE3MTgyNjA2NDF9.P5L_uZ9lOhRZCbsG9GDXn_rmZat3dP9Y2lbk8GY4Kg4pOxJIklBUxot-TtJzB0vEJFcjnxVnT2lFLCgfdQLHTJvURiW0KRHi94e1Kj8aDXxJ0qjlq4-c1JCZnAIbDpvkFtHNKz04yfyeSR2htJ6kOjlqVpeUhLVokHhi1x-ZUZZSpeGnlIXgi-AcmkEoyOypZGSZgQ1hjID2f18zgfbshgPK4Dr0hiN36wYMB0y0YiikRbvDuGgDzRLN2nitih46-CXTGZMqIRz3eAfM2wuUSH1yhdKi5_vavz8L3EPVCGMO-CKlPUDkYA-duQZf_q3tG2fkdaFlTAcCik_kVMprdw' \
113 --data '{
114 "transaction_list": [
115 "e254275"
116 ],
117 "nonce": 2151653522,
118 "timestamp": "2021-04-13T23:38:00",
119 "hash": "000000a996ab57b3aff1ad1d009767278f819895b28ef860a8ec3b6560d6ed0e"
120}' \
121 http://localhost:8080/block