Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Commit 1796b00

Browse files
committed
Add test script
1 parent 7a9e4ca commit 1796b00

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/test_create_index.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
curl -XPUT "$cluster_url/twitter?pretty" -H 'Content-Type: application/json' -d'
5+
{
6+
"settings" : {
7+
"index" : {
8+
"number_of_shards" : 3,
9+
"number_of_replicas" : 2
10+
}
11+
}
12+
}
13+
'
14+
15+
curl -XDELETE "$cluster_url/twitter"

0 commit comments

Comments
 (0)