@@ -148,7 +148,7 @@ func TestListBucketEvents(t *testing.T) {
148148 LambdaConfigs : []notification.LambdaConfig {},
149149 TopicConfigs : []notification.TopicConfig {},
150150 QueueConfigs : []notification.QueueConfig {
151- notification. QueueConfig {
151+ {
152152 Queue : "arn:minio:sqs::test:postgresql" ,
153153 Config : notification.Config {
154154 ID : "" ,
@@ -160,11 +160,11 @@ func TestListBucketEvents(t *testing.T) {
160160 Filter : & notification.Filter {
161161 S3Key : notification.S3Key {
162162 FilterRules : []notification.FilterRule {
163- notification. FilterRule {
163+ {
164164 Name : "suffix" ,
165165 Value : ".jpg" ,
166166 },
167- notification. FilterRule {
167+ {
168168 Name : "prefix" ,
169169 Value : "file/" ,
170170 },
@@ -176,7 +176,7 @@ func TestListBucketEvents(t *testing.T) {
176176 },
177177 }
178178 expectedOutput := []* models.NotificationConfig {
179- & models. NotificationConfig {
179+ {
180180 Arn : swag .String ("arn:minio:sqs::test:postgresql" ),
181181 ID : "" ,
182182 Prefix : "file/" ,
@@ -213,7 +213,7 @@ func TestListBucketEvents(t *testing.T) {
213213 LambdaConfigs : []notification.LambdaConfig {},
214214 TopicConfigs : []notification.TopicConfig {},
215215 QueueConfigs : []notification.QueueConfig {
216- notification. QueueConfig {
216+ {
217217 Queue : "arn:minio:sqs::test:postgresql" ,
218218 Config : notification.Config {
219219 ID : "" ,
@@ -225,7 +225,7 @@ func TestListBucketEvents(t *testing.T) {
225225 },
226226 }
227227 expectedOutput = []* models.NotificationConfig {
228- & models. NotificationConfig {
228+ {
229229 Arn : swag .String ("arn:minio:sqs::test:postgresql" ),
230230 ID : "" ,
231231 Prefix : "" ,
@@ -258,7 +258,7 @@ func TestListBucketEvents(t *testing.T) {
258258 ////// Test-3 : listBucketEvents() get list of events
259259 mockBucketN = notification.Configuration {
260260 LambdaConfigs : []notification.LambdaConfig {
261- notification. LambdaConfig {
261+ {
262262 Lambda : "lambda" ,
263263 Config : notification.Config {
264264 ID : "" ,
@@ -268,11 +268,11 @@ func TestListBucketEvents(t *testing.T) {
268268 Filter : & notification.Filter {
269269 S3Key : notification.S3Key {
270270 FilterRules : []notification.FilterRule {
271- notification. FilterRule {
271+ {
272272 Name : "suffix" ,
273273 Value : ".png" ,
274274 },
275- notification. FilterRule {
275+ {
276276 Name : "prefix" ,
277277 Value : "lambda/" ,
278278 },
@@ -283,7 +283,7 @@ func TestListBucketEvents(t *testing.T) {
283283 },
284284 },
285285 TopicConfigs : []notification.TopicConfig {
286- notification. TopicConfig {
286+ {
287287 Topic : "topic" ,
288288 Config : notification.Config {
289289 ID : "" ,
@@ -293,11 +293,11 @@ func TestListBucketEvents(t *testing.T) {
293293 Filter : & notification.Filter {
294294 S3Key : notification.S3Key {
295295 FilterRules : []notification.FilterRule {
296- notification. FilterRule {
296+ {
297297 Name : "suffix" ,
298298 Value : ".gif" ,
299299 },
300- notification. FilterRule {
300+ {
301301 Name : "prefix" ,
302302 Value : "topic/" ,
303303 },
@@ -308,7 +308,7 @@ func TestListBucketEvents(t *testing.T) {
308308 },
309309 },
310310 QueueConfigs : []notification.QueueConfig {
311- notification. QueueConfig {
311+ {
312312 Queue : "arn:minio:sqs::test:postgresql" ,
313313 Config : notification.Config {
314314 ID : "" ,
@@ -326,7 +326,7 @@ func TestListBucketEvents(t *testing.T) {
326326 }
327327 // order matters in output: topic,queue then lambda are given respectively
328328 expectedOutput = []* models.NotificationConfig {
329- & models. NotificationConfig {
329+ {
330330 Arn : swag .String ("topic" ),
331331 ID : "" ,
332332 Prefix : "topic/" ,
@@ -335,7 +335,7 @@ func TestListBucketEvents(t *testing.T) {
335335 models .NotificationEventTypeDelete ,
336336 },
337337 },
338- & models. NotificationConfig {
338+ {
339339 Arn : swag .String ("arn:minio:sqs::test:postgresql" ),
340340 ID : "" ,
341341 Prefix : "" ,
@@ -344,7 +344,7 @@ func TestListBucketEvents(t *testing.T) {
344344 models .NotificationEventTypeDelete ,
345345 },
346346 },
347- & models. NotificationConfig {
347+ {
348348 Arn : swag .String ("lambda" ),
349349 ID : "" ,
350350 Prefix : "lambda/" ,
0 commit comments