Client: added bash test for raw_context rpc call

This commit is contained in:
Marco Stronati 2018-02-20 09:09:38 +01:00 committed by Benjamin Canou
parent d1c1ced970
commit ce93c266e5

View File

@ -9,6 +9,18 @@ start_node 1
activate_alpha activate_alpha
sleep 2 sleep 2
#tests for the rpc service raw_context
$client rpc call '/blocks/head/raw_context/version' | assert '{ "content": "67656e65736973" }'
$client rpc call '/blocks/head/raw_context/non-existent' | assert 'No service found at this URL'
$client rpc call '/blocks/head/raw_context?depth=2' | assert '{ "content":
{ "genesis_key":
"68b4bf512517497dbd944de6825ab0a0fed7ff51bdd6b77596a19cc9175ddd55",
"v1": { "sandboxed": null }, "version": "67656e65736973" } }'
$client rpc call '/blocks/head/raw_context/non-existent?depth=-1' | assert 'No service found at this URL'
$client rpc call '/blocks/head/raw_context/non-existent?depth=0' | assert 'No service found at this URL'
$client bake for bootstrap1 -max-priority 512 $client bake for bootstrap1 -max-priority 512
key1=foo key1=foo