mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-14 06:51:56 +00:00
21 lines
710 B
YAML
21 lines
710 B
YAML
desc: 2767 -- Evaulate secondary index function with pristine env.
|
|
table_variable_name: tbl
|
|
tests:
|
|
- py: tbl.index_create('foo', lambda x:(x['a']+[1,2,3,4,5]+[6,7,8,9,10]).count())
|
|
runopts:
|
|
array_limit: 6
|
|
ot: {'created':1}
|
|
- py: tbl.index_wait()
|
|
- py: tbl.insert({'id':1,'a':[1,2,3,4,5]})
|
|
runopts:
|
|
array_limit: 6
|
|
ot: {'deleted':0,'replaced':0,'unchanged':0,'errors':0,'skipped':0,'inserted':1}
|
|
- py: tbl.coerce_to('array')
|
|
ot: [{'id':1,'a':[1,2,3,4,5]}]
|
|
- py: tbl.get_all(15, index='foo').coerce_to('array')
|
|
ot: [{'id':1,'a':[1,2,3,4,5]}]
|
|
- py: tbl.get_all(15, index='foo').coerce_to('array')
|
|
runopts:
|
|
array_limit: 6
|
|
ot: [{'id':1,'a':[1,2,3,4,5]}]
|