mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user