Add a qa/rolling-upgrade test that does single-document index and deletes
Original commit: elastic/x-pack-elasticsearch@5850439b222019a68e130d36da95a5198edbec1d
- '{"index": {"_index": "test_index", "_type": "test_type"}}'
- '{"f1": "v5_mixed", "f2": 9}'
+ - do:
+ index:
+ index: test_index
+ type: test_type
+ id: d10
+ body: {"f1": "v6_mixed", "f2": 10}
+
+ - do:
+ index:
+ index: test_index
+ type: test_type
+ id: d11
+ body: {"f1": "v7_mixed", "f2": 11}
+
+ - do:
+ index:
+ index: test_index
+ type: test_type
+ id: d12
+ body: {"f1": "v8_mixed", "f2": 12}
+
- do:
indices.flush:
index: test_index
search:
index: test_index
- - match: { hits.total: 10 } # 5 docs from old cluster, 5 docs from mixed cluster
+ - match: { hits.total: 13 } # 5 docs from old cluster, 8 docs from mixed cluster
+
+ - do:
+ delete:
+ index: test_index
+ type: test_type
+ id: d10
+
+ - do:
+ delete:
+ index: test_index
+ type: test_type
+ id: d11
+
+ - do:
+ delete:
+ index: test_index
+ type: test_type
+ id: d12
