diff options
author | josef <josef.gson@gmail.com> | 2015-12-08 10:05:29 +0100 |
---|---|---|
committer | josef <josef.gson@gmail.com> | 2015-12-08 10:05:29 +0100 |
commit | 1cada068124a50b319ed67177b6c5b151948c256 (patch) | |
tree | fcf4db84db6549ed8184066ed63ef9e352fe1758 /monitor/gaol/gaol_test.py | |
parent | 934cbe0afe1bf1838bb32250f22057572d71abfe (diff) |
adding gaol
Diffstat (limited to 'monitor/gaol/gaol_test.py')
-rwxr-xr-x | monitor/gaol/gaol_test.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/monitor/gaol/gaol_test.py b/monitor/gaol/gaol_test.py new file mode 100755 index 0000000..dbcadc4 --- /dev/null +++ b/monitor/gaol/gaol_test.py @@ -0,0 +1,33 @@ +#!/usr/bin/python + +import base64 + +from gaol_conf import * +from gaol_lib import * + +def test_get_entry(url, idx): + print "Testing to fetch an entry..." + entry = get_entries(url,idx,idx)["entries"][0] + print "Received: " + extract_original_entry(entry)[0] + +def test_submission(url, data): + print "\nTesting to submitt a sample text..." + blob = make_blob(data) + res = add_blob(url,blob) + print res + +def test_consistency_proof(url, idx1, idx2): + print "\nTesing a consistency proof" + res = get_consistency_proof(url, idx1, idx2) + print res + +if __name__ == '__main__': + url = CTLOGS[0]["url"] + test_get_entry(url,1) + test_get_entry(url,2) + test_get_entry(url,3) + test_get_entry(url,4) + test_get_entry(url,5) + # test_get_entry(url,6) + # test_submission(url, "Progress (n.): The process through which the Internet has evolved from smart people in front of dumb terminals to dumb people in front of smart terminals.") + # test_consistency_proof(url, 2, 3)
\ No newline at end of file |