1
1
package indexset
2
2
3
3
import (
4
- "io/ioutil "
4
+ "io"
5
5
"net/http"
6
6
"strings"
7
7
"testing"
@@ -30,7 +30,7 @@ func TestAccIndexSet(t *testing.T) {
30
30
Response : func (req * http.Request ) (* http.Response , error ) {
31
31
return & http.Response {
32
32
StatusCode : 200 ,
33
- Body : ioutil .NopCloser (strings .NewReader (`{
33
+ Body : io .NopCloser (strings .NewReader (`{
34
34
"total": 3,
35
35
"index_sets": [
36
36
{
@@ -56,7 +56,9 @@ func TestAccIndexSet(t *testing.T) {
56
56
"index_optimization_disabled": false,
57
57
"field_type_refresh_interval": 5000,
58
58
"writable": true,
59
- "default": true
59
+ "default": true,
60
+ "data_tiering": null,
61
+ "use_legacy_rotation": true
60
62
},
61
63
{
62
64
"id": "5ea81cc02ab79c00129dbf1c",
@@ -81,7 +83,9 @@ func TestAccIndexSet(t *testing.T) {
81
83
"index_optimization_disabled": false,
82
84
"field_type_refresh_interval": 60000,
83
85
"writable": true,
84
- "default": false
86
+ "default": false,
87
+ "data_tiering": null,
88
+ "use_legacy_rotation": true
85
89
},
86
90
{
87
91
"id": "5ea81cc02ab79c00129dbf1f",
@@ -106,7 +110,9 @@ func TestAccIndexSet(t *testing.T) {
106
110
"index_optimization_disabled": false,
107
111
"field_type_refresh_interval": 60000,
108
112
"writable": true,
109
- "default": false
113
+ "default": false,
114
+ "data_tiering": null,
115
+ "use_legacy_rotation": true
110
116
}
111
117
],
112
118
"stats": {}
@@ -175,7 +181,7 @@ func TestAccIndexSet_byIndexSetID(t *testing.T) {
175
181
Response : func (req * http.Request ) (* http.Response , error ) {
176
182
return & http.Response {
177
183
StatusCode : 200 ,
178
- Body : ioutil .NopCloser (strings .NewReader (`{
184
+ Body : io .NopCloser (strings .NewReader (`{
179
185
"id": "5ea81cc02ab79c00129dbf1c",
180
186
"title": "Graylog Events",
181
187
"description": "Stores Graylog events.",
@@ -198,7 +204,9 @@ func TestAccIndexSet_byIndexSetID(t *testing.T) {
198
204
"index_optimization_disabled": false,
199
205
"field_type_refresh_interval": 60000,
200
206
"writable": true,
201
- "default": false
207
+ "default": false,
208
+ "data_tiering": null,
209
+ "use_legacy_rotation": true
202
210
}` )),
203
211
}, nil
204
212
},
0 commit comments