File: disable-network-tests.patch

package info (click to toggle)
golang-gopkg-olivere-elastic.v3 3.0.41-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,364 kB
  • sloc: makefile: 16
file content (855 lines) | stat: -rw-r--r-- 25,816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
Description: Disable network tests
 A number of the tests in this package require a running elasticserach
 server on localhost.  These tests have been disabled.
Author: Tim Potter <tpot@hpe.com>
Forwarded: no
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: golang-gopkg-olivere-elastic.v3/setup_test.go
===================================================================
--- golang-gopkg-olivere-elastic.v3.orig/setup_test.go
+++ golang-gopkg-olivere-elastic.v3/setup_test.go
@@ -117,6 +117,7 @@ func travisGoVersion() string {
 }
 
 type logger interface {
+	Skip(args ...interface{})
 	Error(args ...interface{})
 	Errorf(format string, args ...interface{})
 	Fatal(args ...interface{})
@@ -128,6 +129,7 @@ type logger interface {
 }
 
 func setupTestClient(t logger, options ...ClientOptionFunc) (client *Client) {
+	t.Skip("DM - network tests disabled")
 	var err error
 
 	client, err = NewClient(options...)
Index: golang-gopkg-olivere-elastic.v3/nodes_info_test.go
===================================================================
--- golang-gopkg-olivere-elastic.v3.orig/nodes_info_test.go
+++ golang-gopkg-olivere-elastic.v3/nodes_info_test.go
@@ -7,6 +7,7 @@ package elastic
 import "testing"
 
 func TestNodesInfo(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
Index: golang-gopkg-olivere-elastic.v3/plugins_test.go
===================================================================
--- golang-gopkg-olivere-elastic.v3.orig/plugins_test.go
+++ golang-gopkg-olivere-elastic.v3/plugins_test.go
@@ -7,6 +7,7 @@ package elastic
 import "testing"
 
 func TestClientPlugins(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -18,6 +19,7 @@ func TestClientPlugins(t *testing.T) {
 }
 
 func TestClientHasPlugin(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
Index: golang-gopkg-olivere-elastic.v3/example_test.go
===================================================================
--- golang-gopkg-olivere-elastic.v3.orig/example_test.go
+++ /dev/null
@@ -1,547 +0,0 @@
-// Copyright 2012-present Oliver Eilhard. All rights reserved.
-// Use of this source code is governed by a MIT-license.
-// See http://olivere.mit-license.org/license.txt for details.
-
-package elastic_test
-
-import (
-	"encoding/json"
-	"fmt"
-	"log"
-	"os"
-	"reflect"
-	"time"
-
-	elastic "gopkg.in/olivere/elastic.v3"
-)
-
-type Tweet struct {
-	User     string                `json:"user"`
-	Message  string                `json:"message"`
-	Retweets int                   `json:"retweets"`
-	Image    string                `json:"image,omitempty"`
-	Created  time.Time             `json:"created,omitempty"`
-	Tags     []string              `json:"tags,omitempty"`
-	Location string                `json:"location,omitempty"`
-	Suggest  *elastic.SuggestField `json:"suggest_field,omitempty"`
-}
-
-func Example() {
-	errorlog := log.New(os.Stdout, "APP ", log.LstdFlags)
-
-	// Obtain a client. You can also provide your own HTTP client here.
-	client, err := elastic.NewClient(elastic.SetErrorLog(errorlog))
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-
-	// Trace request and response details like this
-	//client.SetTracer(log.New(os.Stdout, "", 0))
-
-	// Ping the Elasticsearch server to get e.g. the version number
-	info, code, err := client.Ping("http://127.0.0.1:9200").Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	fmt.Printf("Elasticsearch returned with code %d and version %s", code, info.Version.Number)
-
-	// Getting the ES version number is quite common, so there's a shortcut
-	esversion, err := client.ElasticsearchVersion("http://127.0.0.1:9200")
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	fmt.Printf("Elasticsearch version %s", esversion)
-
-	// Use the IndexExists service to check if a specified index exists.
-	exists, err := client.IndexExists("twitter").Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	if !exists {
-		// Create a new index.
-		createIndex, err := client.CreateIndex("twitter").Do()
-		if err != nil {
-			// Handle error
-			panic(err)
-		}
-		if !createIndex.Acknowledged {
-			// Not acknowledged
-		}
-	}
-
-	// Index a tweet (using JSON serialization)
-	tweet1 := Tweet{User: "olivere", Message: "Take Five", Retweets: 0}
-	put1, err := client.Index().
-		Index("twitter").
-		Type("tweet").
-		Id("1").
-		BodyJson(tweet1).
-		Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	fmt.Printf("Indexed tweet %s to index %s, type %s\n", put1.Id, put1.Index, put1.Type)
-
-	// Index a second tweet (by string)
-	tweet2 := `{"user" : "olivere", "message" : "It's a Raggy Waltz"}`
-	put2, err := client.Index().
-		Index("twitter").
-		Type("tweet").
-		Id("2").
-		BodyString(tweet2).
-		Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	fmt.Printf("Indexed tweet %s to index %s, type %s\n", put2.Id, put2.Index, put2.Type)
-
-	// Get tweet with specified ID
-	get1, err := client.Get().
-		Index("twitter").
-		Type("tweet").
-		Id("1").
-		Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	if get1.Found {
-		fmt.Printf("Got document %s in version %d from index %s, type %s\n", get1.Id, get1.Version, get1.Index, get1.Type)
-	}
-
-	// Flush to make sure the documents got written.
-	_, err = client.Flush().Index("twitter").Do()
-	if err != nil {
-		panic(err)
-	}
-
-	// Search with a term query
-	termQuery := elastic.NewTermQuery("user", "olivere")
-	searchResult, err := client.Search().
-		Index("twitter").   // search in index "twitter"
-		Query(termQuery).   // specify the query
-		Sort("user", true). // sort by "user" field, ascending
-		From(0).Size(10).   // take documents 0-9
-		Pretty(true).       // pretty print request and response JSON
-		Do()                // execute
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-
-	// searchResult is of type SearchResult and returns hits, suggestions,
-	// and all kinds of other information from Elasticsearch.
-	fmt.Printf("Query took %d milliseconds\n", searchResult.TookInMillis)
-
-	// Each is a convenience function that iterates over hits in a search result.
-	// It makes sure you don't need to check for nil values in the response.
-	// However, it ignores errors in serialization. If you want full control
-	// over iterating the hits, see below.
-	var ttyp Tweet
-	for _, item := range searchResult.Each(reflect.TypeOf(ttyp)) {
-		t := item.(Tweet)
-		fmt.Printf("Tweet by %s: %s\n", t.User, t.Message)
-	}
-	// TotalHits is another convenience function that works even when something goes wrong.
-	fmt.Printf("Found a total of %d tweets\n", searchResult.TotalHits())
-
-	// Here's how you iterate through results with full control over each step.
-	if searchResult.Hits.TotalHits > 0 {
-		fmt.Printf("Found a total of %d tweets\n", searchResult.Hits.TotalHits)
-
-		// Iterate through results
-		for _, hit := range searchResult.Hits.Hits {
-			// hit.Index contains the name of the index
-
-			// Deserialize hit.Source into a Tweet (could also be just a map[string]interface{}).
-			var t Tweet
-			err := json.Unmarshal(*hit.Source, &t)
-			if err != nil {
-				// Deserialization failed
-			}
-
-			// Work with tweet
-			fmt.Printf("Tweet by %s: %s\n", t.User, t.Message)
-		}
-	} else {
-		// No hits
-		fmt.Print("Found no tweets\n")
-	}
-
-	// Update a tweet by the update API of Elasticsearch.
-	// We just increment the number of retweets.
-	script := elastic.NewScript("ctx._source.retweets += num").Param("num", 1)
-	update, err := client.Update().Index("twitter").Type("tweet").Id("1").
-		Script(script).
-		Upsert(map[string]interface{}{"retweets": 0}).
-		Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	fmt.Printf("New version of tweet %q is now %d", update.Id, update.Version)
-
-	// ...
-
-	// Delete an index.
-	deleteIndex, err := client.DeleteIndex("twitter").Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	if !deleteIndex.Acknowledged {
-		// Not acknowledged
-	}
-}
-
-func ExampleClient_NewClient_default() {
-	// Obtain a client to the Elasticsearch instance on http://127.0.0.1:9200.
-	client, err := elastic.NewClient()
-	if err != nil {
-		// Handle error
-		fmt.Printf("connection failed: %v\n", err)
-	} else {
-		fmt.Println("connected")
-	}
-	_ = client
-	// Output:
-	// connected
-}
-
-func ExampleClient_NewClient_cluster() {
-	// Obtain a client for an Elasticsearch cluster of two nodes,
-	// running on 10.0.1.1 and 10.0.1.2.
-	client, err := elastic.NewClient(elastic.SetURL("http://10.0.1.1:9200", "http://10.0.1.2:9200"))
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	_ = client
-}
-
-func ExampleClient_NewClient_manyOptions() {
-	// Obtain a client for an Elasticsearch cluster of two nodes,
-	// running on 10.0.1.1 and 10.0.1.2. Do not run the sniffer.
-	// Set the healthcheck interval to 10s. When requests fail,
-	// retry 5 times. Print error messages to os.Stderr and informational
-	// messages to os.Stdout.
-	client, err := elastic.NewClient(
-		elastic.SetURL("http://10.0.1.1:9200", "http://10.0.1.2:9200"),
-		elastic.SetSniff(false),
-		elastic.SetHealthcheckInterval(10*time.Second),
-		elastic.SetMaxRetries(5),
-		elastic.SetErrorLog(log.New(os.Stderr, "ELASTIC ", log.LstdFlags)),
-		elastic.SetInfoLog(log.New(os.Stdout, "", log.LstdFlags)))
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	_ = client
-}
-
-func ExampleIndexExistsService() {
-	// Get a client to the local Elasticsearch instance.
-	client, err := elastic.NewClient()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	// Use the IndexExists service to check if the index "twitter" exists.
-	exists, err := client.IndexExists("twitter").Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	if exists {
-		// ...
-	}
-}
-
-func ExampleCreateIndexService() {
-	// Get a client to the local Elasticsearch instance.
-	client, err := elastic.NewClient()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	// Create a new index.
-	createIndex, err := client.CreateIndex("twitter").Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	if !createIndex.Acknowledged {
-		// Not acknowledged
-	}
-}
-
-func ExampleDeleteIndexService() {
-	// Get a client to the local Elasticsearch instance.
-	client, err := elastic.NewClient()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	// Delete an index.
-	deleteIndex, err := client.DeleteIndex("twitter").Do()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-	if !deleteIndex.Acknowledged {
-		// Not acknowledged
-	}
-}
-
-func ExampleSearchService() {
-	// Get a client to the local Elasticsearch instance.
-	client, err := elastic.NewClient()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-
-	// Search with a term query
-	termQuery := elastic.NewTermQuery("user", "olivere")
-	searchResult, err := client.Search().
-		Index("twitter").   // search in index "twitter"
-		Query(termQuery).   // specify the query
-		Sort("user", true). // sort by "user" field, ascending
-		From(0).Size(10).   // take documents 0-9
-		Pretty(true).       // pretty print request and response JSON
-		Do()                // execute
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-
-	// searchResult is of type SearchResult and returns hits, suggestions,
-	// and all kinds of other information from Elasticsearch.
-	fmt.Printf("Query took %d milliseconds\n", searchResult.TookInMillis)
-
-	// Number of hits
-	if searchResult.Hits.TotalHits > 0 {
-		fmt.Printf("Found a total of %d tweets\n", searchResult.Hits.TotalHits)
-
-		// Iterate through results
-		for _, hit := range searchResult.Hits.Hits {
-			// hit.Index contains the name of the index
-
-			// Deserialize hit.Source into a Tweet (could also be just a map[string]interface{}).
-			var t Tweet
-			err := json.Unmarshal(*hit.Source, &t)
-			if err != nil {
-				// Deserialization failed
-			}
-
-			// Work with tweet
-			fmt.Printf("Tweet by %s: %s\n", t.User, t.Message)
-		}
-	} else {
-		// No hits
-		fmt.Print("Found no tweets\n")
-	}
-}
-
-func ExampleAggregations() {
-	// Get a client to the local Elasticsearch instance.
-	client, err := elastic.NewClient()
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-
-	// Create an aggregation for users and a sub-aggregation for a date histogram of tweets (per year).
-	timeline := elastic.NewTermsAggregation().Field("user").Size(10).OrderByCountDesc()
-	histogram := elastic.NewDateHistogramAggregation().Field("created").Interval("year")
-	timeline = timeline.SubAggregation("history", histogram)
-
-	// Search with a term query
-	searchResult, err := client.Search().
-		Index("twitter").                  // search in index "twitter"
-		Query(elastic.NewMatchAllQuery()). // return all results, but ...
-		SearchType("count").               // ... do not return hits, just the count
-		Aggregation("timeline", timeline). // add our aggregation to the query
-		Pretty(true).                      // pretty print request and response JSON
-		Do()                               // execute
-	if err != nil {
-		// Handle error
-		panic(err)
-	}
-
-	// Access "timeline" aggregate in search result.
-	agg, found := searchResult.Aggregations.Terms("timeline")
-	if !found {
-		log.Fatalf("we sould have a terms aggregation called %q", "timeline")
-	}
-	for _, userBucket := range agg.Buckets {
-		// Every bucket should have the user field as key.
-		user := userBucket.Key
-
-		// The sub-aggregation history should have the number of tweets per year.
-		histogram, found := userBucket.DateHistogram("history")
-		if found {
-			for _, year := range histogram.Buckets {
-				fmt.Printf("user %q has %d tweets in %q\n", user, year.DocCount, year.KeyAsString)
-			}
-		}
-	}
-}
-
-func ExampleSearchResult() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Do a search
-	searchResult, err := client.Search().Index("twitter").Query(elastic.NewMatchAllQuery()).Do()
-	if err != nil {
-		panic(err)
-	}
-
-	// searchResult is of type SearchResult and returns hits, suggestions,
-	// and all kinds of other information from Elasticsearch.
-	fmt.Printf("Query took %d milliseconds\n", searchResult.TookInMillis)
-
-	// Each is a utility function that iterates over hits in a search result.
-	// It makes sure you don't need to check for nil values in the response.
-	// However, it ignores errors in serialization. If you want full control
-	// over iterating the hits, see below.
-	var ttyp Tweet
-	for _, item := range searchResult.Each(reflect.TypeOf(ttyp)) {
-		t := item.(Tweet)
-		fmt.Printf("Tweet by %s: %s\n", t.User, t.Message)
-	}
-	fmt.Printf("Found a total of %d tweets\n", searchResult.TotalHits())
-
-	// Here's how you iterate hits with full control.
-	if searchResult.Hits.TotalHits > 0 {
-		fmt.Printf("Found a total of %d tweets\n", searchResult.Hits.TotalHits)
-
-		// Iterate through results
-		for _, hit := range searchResult.Hits.Hits {
-			// hit.Index contains the name of the index
-
-			// Deserialize hit.Source into a Tweet (could also be just a map[string]interface{}).
-			var t Tweet
-			err := json.Unmarshal(*hit.Source, &t)
-			if err != nil {
-				// Deserialization failed
-			}
-
-			// Work with tweet
-			fmt.Printf("Tweet by %s: %s\n", t.User, t.Message)
-		}
-	} else {
-		// No hits
-		fmt.Print("Found no tweets\n")
-	}
-}
-
-func ExamplePutTemplateService() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Create search template
-	tmpl := `{"template":{"query":{"match":{"title":"{{query_string}}"}}}}`
-
-	// Create template
-	resp, err := client.PutTemplate().
-		Id("my-search-template"). // Name of the template
-		BodyString(tmpl).         // Search template itself
-		Do()                      // Execute
-	if err != nil {
-		panic(err)
-	}
-	if resp.Created {
-		fmt.Println("search template created")
-	}
-}
-
-func ExampleGetTemplateService() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Get template stored under "my-search-template"
-	resp, err := client.GetTemplate().Id("my-search-template").Do()
-	if err != nil {
-		panic(err)
-	}
-	fmt.Printf("search template is: %q\n", resp.Template)
-}
-
-func ExampleDeleteTemplateService() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Delete template
-	resp, err := client.DeleteTemplate().Id("my-search-template").Do()
-	if err != nil {
-		panic(err)
-	}
-	if resp != nil && resp.Found {
-		fmt.Println("template deleted")
-	}
-}
-
-func ExampleClusterHealthService() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Get cluster health
-	res, err := client.ClusterHealth().Index("twitter").Do()
-	if err != nil {
-		panic(err)
-	}
-	if res == nil {
-		panic(err)
-	}
-	fmt.Printf("Cluster status is %q\n", res.Status)
-}
-
-func ExampleClusterHealthService_WaitForGreen() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Wait for status green
-	res, err := client.ClusterHealth().WaitForStatus("green").Timeout("15s").Do()
-	if err != nil {
-		panic(err)
-	}
-	if res.TimedOut {
-		fmt.Printf("time out waiting for cluster status %q\n", "green")
-	} else {
-		fmt.Printf("cluster status is %q\n", res.Status)
-	}
-}
-
-func ExampleClusterStateService() {
-	client, err := elastic.NewClient()
-	if err != nil {
-		panic(err)
-	}
-
-	// Get cluster state
-	res, err := client.ClusterState().Metric("version").Do()
-	if err != nil {
-		panic(err)
-	}
-	fmt.Printf("Cluster %q has version %d", res.ClusterName, res.Version)
-}
Index: golang-gopkg-olivere-elastic.v3/client_test.go
===================================================================
--- golang-gopkg-olivere-elastic.v3.orig/client_test.go
+++ golang-gopkg-olivere-elastic.v3/client_test.go
@@ -29,6 +29,7 @@ func findConn(s string, slice ...*conn)
 // -- NewClient --
 
 func TestClientDefaults(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -72,6 +73,7 @@ func TestClientDefaults(t *testing.T) {
 }
 
 func TestClientWithoutURL(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -90,6 +92,7 @@ func TestClientWithoutURL(t *testing.T)
 }
 
 func TestClientWithSingleURL(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetURL("http://127.0.0.1:9200"))
 	if err != nil {
 		t.Fatal(err)
@@ -108,6 +111,7 @@ func TestClientWithSingleURL(t *testing.
 }
 
 func TestClientWithMultipleURLs(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetURL("http://127.0.0.1:9200", "http://127.0.0.1:9201"))
 	if err != nil {
 		t.Fatal(err)
@@ -124,6 +128,7 @@ func TestClientWithMultipleURLs(t *testi
 }
 
 func TestClientWithBasicAuth(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetBasicAuth("user", "secret"))
 	if err != nil {
 		t.Fatal(err)
@@ -140,6 +145,7 @@ func TestClientWithBasicAuth(t *testing.
 }
 
 func TestClientSniffSuccess(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetURL("http://127.0.0.1:19200", "http://127.0.0.1:9200"))
 	if err != nil {
 		t.Fatal(err)
@@ -151,6 +157,7 @@ func TestClientSniffSuccess(t *testing.T
 }
 
 func TestClientSniffFailure(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	_, err := NewClient(SetURL("http://127.0.0.1:19200", "http://127.0.0.1:19201"))
 	if err == nil {
 		t.Fatalf("expected cluster to fail with no nodes found")
@@ -158,6 +165,7 @@ func TestClientSniffFailure(t *testing.T
 }
 
 func TestClientSniffDisabled(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetSniff(false), SetURL("http://127.0.0.1:9200", "http://127.0.0.1:9201"))
 	if err != nil {
 		t.Fatal(err)
@@ -189,6 +197,7 @@ func TestClientSniffDisabled(t *testing.
 }
 
 func TestClientWillMarkConnectionsAsAliveWhenAllAreDead(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetURL("http://127.0.0.1:9201"),
 		SetSniff(false), SetHealthcheck(false), SetMaxRetries(0))
 	if err != nil {
@@ -224,6 +233,7 @@ func TestClientWillMarkConnectionsAsAliv
 }
 
 func TestClientWithRequiredPlugins(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	_, err := NewClient(SetRequiredPlugins("no-such-plugin"))
 	if err == nil {
 		t.Fatal("expected error when creating client")
@@ -235,6 +245,7 @@ func TestClientWithRequiredPlugins(t *te
 
 func TestClientHealthcheckStartupTimeout(t *testing.T) {
 	start := time.Now()
+	t.Skip("DM - network tests disabled")
 	_, err := NewClient(SetURL("http://localhost:9299"), SetHealthcheckTimeoutStartup(5*time.Second))
 	duration := time.Now().Sub(start)
 	if err != ErrNoClient {
@@ -248,6 +259,7 @@ func TestClientHealthcheckStartupTimeout
 // -- NewSimpleClient --
 
 func TestSimpleClientDefaults(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewSimpleClient()
 	if err != nil {
 		t.Fatal(err)
@@ -293,6 +305,7 @@ func TestSimpleClientDefaults(t *testing
 // -- Start and stop --
 
 func TestClientStartAndStop(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -333,6 +346,7 @@ func TestClientStartAndStop(t *testing.T
 }
 
 func TestClientStartAndStopWithSnifferAndHealthchecksDisabled(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetSniff(false), SetHealthcheck(false))
 	if err != nil {
 		t.Fatal(err)
@@ -375,6 +389,7 @@ func TestClientStartAndStopWithSnifferAn
 // -- Sniffing --
 
 func TestClientSniffNode(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -403,6 +418,7 @@ func TestClientSniffNode(t *testing.T) {
 }
 
 func TestClientSniffOnDefaultURL(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, _ := NewClient()
 	if client == nil {
 		t.Fatal("no client returned")
@@ -468,6 +484,7 @@ func TestClientExtractHostname(t *testin
 		},
 	}
 
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetSniff(false), SetHealthcheck(false))
 	if err != nil {
 		t.Fatal(err)
@@ -483,6 +500,7 @@ func TestClientExtractHostname(t *testin
 // -- Selector --
 
 func TestClientSelectConnHealthy(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(
 		SetSniff(false),
 		SetHealthcheck(false),
@@ -522,6 +540,7 @@ func TestClientSelectConnHealthy(t *test
 }
 
 func TestClientSelectConnHealthyAndDead(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(
 		SetSniff(false),
 		SetHealthcheck(false),
@@ -561,6 +580,7 @@ func TestClientSelectConnHealthyAndDead(
 }
 
 func TestClientSelectConnDeadAndHealthy(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(
 		SetSniff(false),
 		SetHealthcheck(false),
@@ -600,6 +620,7 @@ func TestClientSelectConnDeadAndHealthy(
 }
 
 func TestClientSelectConnAllDead(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(
 		SetSniff(false),
 		SetHealthcheck(false),
@@ -642,6 +663,7 @@ func TestClientSelectConnAllDead(t *test
 // -- ElasticsearchVersion --
 
 func TestElasticsearchVersion(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -681,6 +703,7 @@ func TestIndexNames(t *testing.T) {
 // -- PerformRequest --
 
 func TestPerformRequest(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)
@@ -703,6 +726,7 @@ func TestPerformRequest(t *testing.T) {
 }
 
 func TestPerformRequestWithSimpleClient(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewSimpleClient()
 	if err != nil {
 		t.Fatal(err)
@@ -728,6 +752,7 @@ func TestPerformRequestWithLogger(t *tes
 	var w bytes.Buffer
 	out := log.New(&w, "LOGGER ", log.LstdFlags)
 
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetInfoLog(out), SetSniff(false))
 	if err != nil {
 		t.Fatal(err)
@@ -767,6 +792,7 @@ func TestPerformRequestWithLoggerAndTrac
 	var tw bytes.Buffer
 	tout := log.New(&tw, "TRACER ", log.LstdFlags)
 
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetInfoLog(lout), SetTraceLog(tout), SetSniff(false))
 	if err != nil {
 		t.Fatal(err)
@@ -810,6 +836,7 @@ func (l *customLogger) Printf(format str
 func TestPerformRequestWithCustomLogger(t *testing.T) {
 	logger := &customLogger{}
 
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetInfoLog(logger), SetSniff(false))
 	if err != nil {
 		t.Fatal(err)
@@ -873,6 +900,7 @@ func TestPerformRequestRetryOnHttpError(
 	tr := &failingTransport{path: "/fail", fail: fail}
 	httpClient := &http.Client{Transport: tr}
 
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetHttpClient(httpClient), SetMaxRetries(5), SetHealthcheck(false))
 	if err != nil {
 		t.Fatal(err)
@@ -903,6 +931,7 @@ func TestPerformRequestNoRetryOnValidBut
 	tr := &failingTransport{path: "/fail", fail: fail}
 	httpClient := &http.Client{Transport: tr}
 
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient(SetHttpClient(httpClient), SetMaxRetries(5), SetHealthcheck(false))
 	if err != nil {
 		t.Fatal(err)
@@ -930,6 +959,7 @@ func (fb failingBody) MarshalJSON() ([]b
 }
 
 func TestPerformRequestWithSetBodyError(t *testing.T) {
+	t.Skip("DM - network tests disabled")
 	client, err := NewClient()
 	if err != nil {
 		t.Fatal(err)