summaryrefslogtreecommitdiff
path: root/ext/librethinkdbxx/test/upstream/regression/665.yaml
blob: ea6caada1ca0b253abec9d4501d57fbbceec7350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
desc: Regression tests for issue #665.  Makes sharding not depend on operation's region.
tests:
    # Create a table and do an insertion.
    - cd: r.db('test').table_create('t665')
      def: t = r.db('test').table('t665')

    # Keys 1 and 4 are sharded to hash shards that, of the four hash
    # shards, are not adjacent.
    - cd: t.insert([{'id':1}, {'id':4}])
      ot: ({'unchanged':0,
            'skipped':0,
            'replaced':0,
            'inserted':2,
            'errors':0,
            'deleted':0
           })

    # clean up
    - cd: r.db('test').table_drop('t665')