Add refresh, close, open integ-test
@@ -105,6 +105,19 @@ total_shards 1 test2 2 2
total_shards 2 test2 2 2
total_shards 3 test2 2 2
+# test refresh
+curl -H 'Content-Type: application/json' -XPUT "http://127.0.0.1:9200/testrefresh" -d'{"settings":{"index.refresh_interval":-1}}' 2>/dev/null
+curl -H 'Content-Type: application/json' -XPOST "http://127.0.0.1:9200/testrefresh/doc?wait_for_active_shards=all" -d'{"foo":"bar"}' 2>/dev/null
+total_hit 1 testrefresh 0
+curl -XPOST "http://127.0.0.2:9200/testrefresh/_refresh"
+total_hit 1 testrefresh 1
+
+# test close/open
+curl -XPOST "http://127.0.0.1:9200/testrefresh/_close"
+curl -XPOST "http://127.0.0.2:9200/testrefresh/_open"
+total_hit 1 testrefresh 1
+
+curl -XPUT "http://127.0.0.1:9200/test/_refresh"
echo "### Repair test, with RF=3"
alter_rf test 3
repair 1 test
