diff --git a/src/bin_client/test/test_basic.sh b/src/bin_client/test/test_basic.sh index 756483b87..72f5a6a70 100755 --- a/src/bin_client/test/test_basic.sh +++ b/src/bin_client/test/test_basic.sh @@ -9,6 +9,18 @@ start_node 1 activate_alpha 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 key1=foo