11package indexset
22
33import (
4- "io/ioutil "
4+ "io"
55 "net/http"
66 "strings"
77 "testing"
@@ -30,7 +30,7 @@ func TestAccIndexSet(t *testing.T) {
3030 Response : func (req * http.Request ) (* http.Response , error ) {
3131 return & http.Response {
3232 StatusCode : 200 ,
33- Body : ioutil .NopCloser (strings .NewReader (`{
33+ Body : io .NopCloser (strings .NewReader (`{
3434 "total": 3,
3535 "index_sets": [
3636 {
@@ -56,7 +56,9 @@ func TestAccIndexSet(t *testing.T) {
5656 "index_optimization_disabled": false,
5757 "field_type_refresh_interval": 5000,
5858 "writable": true,
59- "default": true
59+ "default": true,
60+ "data_tiering": null,
61+ "use_legacy_rotation": true
6062 },
6163 {
6264 "id": "5ea81cc02ab79c00129dbf1c",
@@ -81,7 +83,9 @@ func TestAccIndexSet(t *testing.T) {
8183 "index_optimization_disabled": false,
8284 "field_type_refresh_interval": 60000,
8385 "writable": true,
84- "default": false
86+ "default": false,
87+ "data_tiering": null,
88+ "use_legacy_rotation": true
8589 },
8690 {
8791 "id": "5ea81cc02ab79c00129dbf1f",
@@ -106,7 +110,9 @@ func TestAccIndexSet(t *testing.T) {
106110 "index_optimization_disabled": false,
107111 "field_type_refresh_interval": 60000,
108112 "writable": true,
109- "default": false
113+ "default": false,
114+ "data_tiering": null,
115+ "use_legacy_rotation": true
110116 }
111117 ],
112118 "stats": {}
@@ -175,7 +181,7 @@ func TestAccIndexSet_byIndexSetID(t *testing.T) {
175181 Response : func (req * http.Request ) (* http.Response , error ) {
176182 return & http.Response {
177183 StatusCode : 200 ,
178- Body : ioutil .NopCloser (strings .NewReader (`{
184+ Body : io .NopCloser (strings .NewReader (`{
179185 "id": "5ea81cc02ab79c00129dbf1c",
180186 "title": "Graylog Events",
181187 "description": "Stores Graylog events.",
@@ -198,7 +204,9 @@ func TestAccIndexSet_byIndexSetID(t *testing.T) {
198204 "index_optimization_disabled": false,
199205 "field_type_refresh_interval": 60000,
200206 "writable": true,
201- "default": false
207+ "default": false,
208+ "data_tiering": null,
209+ "use_legacy_rotation": true
202210}` )),
203211 }, nil
204212 },
0 commit comments