test storage gateway better: make sure the client only stores to the blockstack server gateway (and not to disk as well)

This commit is contained in:
Jude Nelson
2017-04-27 19:36:47 -04:00
parent c4185dcb9c
commit 5989fc7650

View File

@@ -142,14 +142,18 @@ def scenario( wallets, **kw ):
time.sleep(1)
put_result = testlib.blockstack_cli_put_mutable( "foo.test", "hello_world_2", json.dumps(datasets[1]), password="0123456789abcdef")
put_result = testlib.blockstack_cli_put_mutable( "foo.test", "hello_world_2", json.dumps(datasets[1]), password="0123456789abcdef", \
storage_drivers=['blockstack_server'], storage_drivers_exclusive=True)
if 'error' in put_result:
print json.dumps(put_result, indent=4, sort_keys=True)
return False
time.sleep(2)
put_result = testlib.blockstack_cli_put_mutable( "foo.test", "hello_world_3", json.dumps(datasets[2]), password="0123456789abcdef")
put_result = testlib.blockstack_cli_put_mutable( "foo.test", "hello_world_3", json.dumps(datasets[2]), password="0123456789abcdef", \
storage_drivers=['blockstack_server'], storage_drivers_exclusive=True)
if 'error' in put_result:
print json.dumps(put_result, indent=4, sort_keys=True)
return False
@@ -162,7 +166,9 @@ def scenario( wallets, **kw ):
datasets[0]["dataset_change"] = dataset_change
datasets[0]['buf'].append(i)
put_result = testlib.blockstack_cli_put_mutable( "foo.test", "hello_world_1", json.dumps(datasets[0]), password="0123456789abcdef")
put_result = testlib.blockstack_cli_put_mutable( "foo.test", "hello_world_1", json.dumps(datasets[0]), password="0123456789abcdef", \
storage_drivers=['blockstack_server'], storage_drivers_exclusive=True)
if 'error' in put_result:
print json.dumps(put_result, indent=4, sort_keys=True )
return False